Commit d708c870 authored by Amaury Forgeot d'Arc's avatar Amaury Forgeot d'Arc

Both kind of types are concerned.

parent 901f200c
......@@ -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`.)
.. ======================================================================
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment