Skip to content

Commit d0002d5

Browse files
Mention support for C-API types. (#28)
1 parent 2c76730 commit d0002d5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pep-0520.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,16 @@ so. Instead, ``__definition_order__`` preserves this one bit of info
183183
from the class body so that it is universally available.
184184

185185

186+
Support for C-API Types
187+
=======================
188+
189+
Arguably, most C-defined Python types (e.g. built-in, extension modules)
190+
have a roughly equivalent concept of a definition order. So conceivably
191+
``__definition_order__`` could be set for such types automatically. This
192+
PEP does not introduce any such support. However, it does not prohibit
193+
it either.
194+
195+
186196
Compatibility
187197
=============
188198

0 commit comments

Comments
 (0)