mirror of https://github.com/python/cpython
Both kind of types are concerned.
This commit is contained in:
parent
901f200c81
commit
d708c8703e
|
@ -672,7 +672,7 @@ that may require changes to your code:
|
|||
* Because of an optimization for the :keyword:`with` statement, the special
|
||||
methods :meth:`__enter__` and :meth:`__exit__` must belong to the object's
|
||||
type, and cannot be directly attached to the object's instance. This
|
||||
affects new-styles classes (derived from :class:`object`) or C extension
|
||||
affects new-styles classes (derived from :class:`object`) and C extension
|
||||
types. (:issue:`6101`.)
|
||||
|
||||
.. ======================================================================
|
||||
|
|
Loading…
Reference in New Issue