
Oct. 31, 2008
5:41 a.m.
We've just been having a discussion on the Cython list about implementing the __init__ file of a package as an extension module. It turns out that just putting an __init__.so file in a directory isn't enough to make Python recognise it as a package. However, if there is both an __init__.py and an __init__.so, it's recognised as a package, and the __init__.so gets loaded. So it's possible, but only by exploiting some undocumented and probably accidental behaviour. So how about officially recognising an __init__.so file as a package main file? -- Greg