31 Jan
2008
31 Jan
'08
9:42 a.m.
Paul P Komkoff Jr wrote:
I'm porting my rlm_python to 2.0 right now and have noticed that _init and _destroy functions were removed from the module_t interface. What was the reasoning for that?
They weren't being used for any real purpose.
Can I rely on _instantiate/_detach calls being serialized or I need to build my own locking around them?
They are definitely serialized.
P.S. I assume that ideal solution will be to have no static data in the module and put everything into instance struct. However, in the real world real python has very basic support for multiple interpreters and still needs to be globally Py_Initialized....
A global variable is OK... Alan DeKok.