Re: [Python-Dev] Built-in sub modules

2012-06-12 Thread Brett Cannon
On Mon, Jun 11, 2012 at 11:37 PM, Nick Coghlan wrote: > On Tue, Jun 12, 2012 at 1:17 PM, Albert Zeyer > wrote: > > I also searched a bit around and I didn't directly found any easier > > way to do this. Only a post from 2009 > > (http://mail.python.org/pipermail/cplusplus-sig/2009-January/014178

Re: [Python-Dev] Built-in sub modules

2012-06-11 Thread Nick Coghlan
On Tue, Jun 12, 2012 at 1:17 PM, Albert Zeyer wrote: > I also searched a bit around and I didn't directly found any easier > way to do this. Only a post from 2009 > (http://mail.python.org/pipermail/cplusplus-sig/2009-January/014178.html) > which seems like a much more ugly hack. Right, it isn't

[Python-Dev] Built-in sub modules

2012-06-11 Thread Albert Zeyer
Hi, I just created some code to support built-in sub modules. The naive way I tried first was just to add {"Mod.Sub1.Sub2", init_modsub1sub2} to _PyImport_Inittab. This didn't worked. Maybe it would be a nice addition so that this works. Mod itself, in my case, was a package directory with pure