Re: Organizing Code - Packages

2007-09-09 Thread Bruno Desthuilliers
xkenneth a écrit : > On Sep 7, 2:04 pm, Wildemar Wildenburger > <[EMAIL PROTECTED]> wrote: > >>Paul Rudin wrote: >> >>>xkenneth <[EMAIL PROTECTED]> writes: >> >Ah, yes, a couple of things: >- avoid the 'one-class-per-file' syndrom. It's perfectly ok to have tens Yes but i find it

Re: Organizing Code - Packages

2007-09-09 Thread Bruno Desthuilliers
xkenneth a écrit : >>Ah, yes, a couple of things: >>- avoid the 'one-class-per-file' syndrom. It's perfectly ok to have tens > > > Yes but i find it hard to edit classes easily when I have more than > one class per file. Why so ? Could it be that your classes are growing too fat ? -- http://mai

Re: Organizing Code - Packages

2007-09-09 Thread GuillaumeC
On Sep 9, 1:04 am, xkenneth <[EMAIL PROTECTED]> wrote: > On Sep 8, 3:35 pm, David <[EMAIL PROTECTED]> wrote: > > > > How do import statements that are declared at the top of a python > > > module work? > > >http://docs.python.org/tut/node8.html > On Sat, 08 Sep 2007 12:42:19 -0700, xkenneth wrote:

Re: Organizing Code - Packages

2007-09-08 Thread Tommy Grav
On Sep 8, 2007, at 8:04 PM, xkenneth wrote: > > Code doesn't compile in python. This is pseudo code anyways. > Can't post actual code and tracebacks because the code is proprietary. > "MyModule" is pseudo code, and i forgot the arguments, the actual code > and errors are unimportant for this quest

Re: Organizing Code - Packages

2007-09-08 Thread xkenneth
On Sep 8, 3:35 pm, David <[EMAIL PROTECTED]> wrote: > > How do import statements that are declared at the top of a python > > module work? > > http://docs.python.org/tut/node8.html On Sat, 08 Sep 2007 12:42:19 -0700, xkenneth wrote: > How do import statements that are declared at the top of a pyth

Re: Organizing Code - Packages

2007-09-08 Thread David
> How do import statements that are declared at the top of a python > module work? http://docs.python.org/tut/node8.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Organizing Code - Packages

2007-09-08 Thread David
> > How do import statements that are declared at the top of a python > module work? > > for instance > > from MyModule.Objects import * > > class Class: > def function: >#here i cannot access the things that should have been > imported from the above statement >#i

Re: Organizing Code - Packages

2007-09-08 Thread Marc 'BlackJack' Rintsch
On Sat, 08 Sep 2007 12:42:19 -0700, xkenneth wrote: > How do import statements that are declared at the top of a python > module work? They import the module. ;-) > for instance > > from MyModule.Objects import * > > class Class: > def function: >#here i cannot access th

Re: Organizing Code - Packages

2007-09-08 Thread xkenneth
On Sep 7, 2:04 pm, Wildemar Wildenburger <[EMAIL PROTECTED]> wrote: > Paul Rudin wrote: > > xkenneth <[EMAIL PROTECTED]> writes: > > >>> Ah, yes, a couple of things: > >>> - avoid the 'one-class-per-file' syndrom. It's perfectly ok to have tens > >> Yes but i find it hard to edit classes easily whe

Re: Organizing Code - Packages

2007-09-07 Thread Wildemar Wildenburger
Paul Rudin wrote: > xkenneth <[EMAIL PROTECTED]> writes: > >>> Ah, yes, a couple of things: >>> - avoid the 'one-class-per-file' syndrom. It's perfectly ok to have tens >> Yes but i find it hard to edit classes easily when I have more than >> one class per file. > > Why? Scroll-Blindness would be

Re: Organizing Code - Packages

2007-09-07 Thread Paul Rudin
xkenneth <[EMAIL PROTECTED]> writes: >> Ah, yes, a couple of things: >> - avoid the 'one-class-per-file' syndrom. It's perfectly ok to have tens > > Yes but i find it hard to edit classes easily when I have more than > one class per file. Why? -- http://mail.python.org/mailman/listinfo/python-li

Re: Organizing Code - Packages

2007-09-07 Thread xkenneth
> Ah, yes, a couple of things: > - avoid the 'one-class-per-file' syndrom. It's perfectly ok to have tens Yes but i find it hard to edit classes easily when I have more than one class per file. Regards, Ken -- http://mail.python.org/mailman/listinfo/python-list

Re: Organizing Code - Packages

2007-09-07 Thread Bruno Desthuilliers
xkenneth a écrit : > All, > > I apologize if this is a commonly asked question, but I didn't > find anything that answered my question while searching. > > So what I have right now is a few packages that contain some commonly > used functions and another package that contains all of my custom