-
Notifications
You must be signed in to change notification settings - Fork 16.1k
Closed as not planned
Labels
inactiveDenotes the issue/PR has not seen activity in the last 90 days.Denotes the issue/PR has not seen activity in the last 90 days.python
Description
What language does this apply to?
Python
Describe the problem you are trying to solve.
Would like to be able to use the Python extension in subinterpreters or after reload.
Because of the assignment at
protobuf/python/google/protobuf/pyext/message.cc
Line 3053 in 6e34912
| PythonMessage_class = PyObject_GetAttrString(message_module, "Message"); |
protobuf/python/google/protobuf/pyext/message.cc
Lines 216 to 217 in 6e34912
| PyErr_SetString(PyExc_TypeError, | |
| "A Message class can only inherit from Message"); |
Describe the solution you'd like
Options:
- See PEP 3121. Start using module state instead of C-static state so it can be safely reloaded.
- Stop checking for module class extension using static state
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
inactiveDenotes the issue/PR has not seen activity in the last 90 days.Denotes the issue/PR has not seen activity in the last 90 days.python