Shreyan Avigyan <shreyan.avig...@gmail.com> added the comment:

Yes and it wouldn't be a problem. If struct member is 0 or NULL then use 
default behavior. If not then apply PyModule_AddType or PyModule_AddObject on 
all of those. Then after finishing set slot to NULL again since we don't want 
to add a type more than once. And yes after this also anyone can add more 
types. This will just introduce a handy way to add types.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue44099>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to