Re: Not understanding absolute_import

2007-04-07 Thread Nate Finch
On Apr 5, 8:33 am, "Nate Finch" <[EMAIL PROTECTED]> wrote: > I've been trying to use fromabsolute_importand it's giving me a hell > of a headache. I can't figure out what it's *supposed* to do, or > maybe rather, it doesn't seem to be doing wh

Re: "Plugin" architecture - how to do?

2007-04-06 Thread Nate Finch
On Apr 5, 10:57 am, [EMAIL PROTECTED] wrote: > I'm making a program that consists of a main engine + plugins. Both > are in Python. My question is, how do I go about importing arbitrary > code and have it be able to use the engine's functions, classes, etc? For a true plugin architecture, you do

Re: Why NOT only one class per file?

2007-04-05 Thread Nate Finch
On Apr 5, 10:48 am, Bruno Desthuilliers wrote: > Nate Finch a écrit : > > > So, here's a view from a guy who's not a python nut and has a long > > history of professional programming in other languages (C++, C, C#, > > Java) > > There are quite a few profe

Re: Why NOT only one class per file?

2007-04-05 Thread Nate Finch
So, here's a view from a guy who's not a python nut and has a long history of professional programming in other languages (C++, C, C#, Java) I think you're all going about this the wrong way. There's no reason to *always* have one class per file. However, there's also no reason to have 1600 line

Not understanding absolute_import

2007-04-05 Thread Nate Finch
I've been trying to use from absolute_import and it's giving me a hell of a headache. I can't figure out what it's *supposed* to do, or maybe rather, it doesn't seem to be doing what I *think* it's supposed to be doing. For example (actual example from my code, assume all files have "from __futur