This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2015年03月08日 16:31 by h.venev, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Messages (5) | |||
|---|---|---|---|
| msg237543 - (view) | Author: Hristo Venev (h.venev) * | Date: 2015年03月08日 16:31 | |
Please export PyModuleObject in moduleobject.h. It's useful for subclassing module in C. |
|||
| msg252357 - (view) | Author: Hristo Venev (h.venev) * | Date: 2015年10月05日 19:51 | |
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. |
|||
| msg396990 - (view) | Author: Irit Katriel (iritkatriel) * (Python committer) | Date: 2021年07月05日 14:20 | |
+ PEP 489 authors. |
|||
| msg396991 - (view) | Author: Stefan Behnel (scoder) * (Python committer) | Date: 2021年07月05日 14:29 | |
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? |
|||
| msg396992 - (view) | Author: Stefan Behnel (scoder) * (Python committer) | Date: 2021年07月05日 14:33 | |
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. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:13 | admin | set | github: 67797 |
| 2021年07月05日 14:33:00 | scoder | set | status: open -> closed resolution: out of date messages: + msg396992 stage: resolved |
| 2021年07月05日 14:30:28 | scoder | set | type: enhancement components: + C API, - Interpreter Core versions: + Python 3.11, - Python 3.5 |
| 2021年07月05日 14:29:23 | scoder | set | messages: + msg396991 |
| 2021年07月05日 14:20:23 | iritkatriel | set | nosy:
+ petr.viktorin, iritkatriel, ncoghlan, scoder messages: + msg396990 |
| 2015年10月05日 19:51:32 | h.venev | set | messages:
+ msg252357 versions: + Python 3.5, - Python 3.4 |
| 2015年03月08日 16:31:57 | h.venev | create | |