Porting rlm_python to 2.0.0

Alan DeKok aland at deployingradius.com
Thu Jan 31 15:42:26 CET 2008

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.

More information about the Freeradius-Devel mailing list