[issue23609] Export PyModuleObject in moduleobject.h

2021-07-05 Thread Stefan Behnel
Stefan Behnel added the comment: I only just noticed that the original request is from 2015. My guess is that this is a resolved problem, given the available options. I'll close this ticket as outdated. Please comment if this is still an issue. -- resolution: -> out of date stage:

[issue23609] Export PyModuleObject in moduleobject.h

2021-07-05 Thread Stefan Behnel
Change by Stefan Behnel : -- components: +C API -Interpreter Core type: -> enhancement versions: +Python 3.11 -Python 3.5 ___ Python tracker ___ __

[issue23609] Export PyModuleObject in moduleobject.h

2021-07-05 Thread Stefan Behnel
Stefan Behnel added the comment: Could you explain a bit why you want to subclass "PyModuleObject" in C? Why isn't a Python subclass or an independent (non-module) C extension type enough? -- ___ Python tracker

[issue23609] Export PyModuleObject in moduleobject.h

2021-07-05 Thread Irit Katriel
Irit Katriel added the comment: + PEP 489 authors. -- nosy: +iritkatriel, ncoghlan, petr.viktorin, scoder ___ Python tracker ___ __

[issue23609] Export PyModuleObject in moduleobject.h

2015-10-05 Thread Hristo Venev
Hristo Venev added the comment: Quote from PEP 489: The Py_mod_create slot is used to support custom module subclasses. There is no way to subclass PyModuleObject from C. -- versions: +Python 3.5 -Python 3.4 ___ Python tracker

[issue23609] Export PyModuleObject in moduleobject.h

2015-03-08 Thread Hristo Venev
New submission from Hristo Venev: Please export PyModuleObject in moduleobject.h. It's useful for subclassing module in C. -- components: Interpreter Core messages: 237543 nosy: h.venev priority: normal severity: normal status: open title: Export PyModuleObject in moduleobject.h version