how to reuse class deinitions?

2006-10-01 Thread sam
hello all, pretty straightforward question here, i think. i'm experimenting with classes and have written a File class that looks like it's worth keeping for future use. however, i cannot work out where to put it for this purpose or how to get it in. i figured i'd try a bit of (un)inspired

Re: how to reuse class deinitions?

2006-10-01 Thread sam
should read 'definitions', of course. i hate stupid typos. -- http://mail.python.org/mailman/listinfo/python-list

Re: how to reuse class deinitions?

2006-10-01 Thread Scott David Daniels
sam wrote: pretty straightforward question here, i think. i'm experimenting with classes and have written a File class that looks like it's worth keeping for future use. however, i cannot work out where to put it for this purpose or how to get it in. What I do: For each new major version of

Re: how to reuse class deinitions?

2006-10-01 Thread James Stroud
sam wrote: hello all, pretty straightforward question here, i think. i'm experimenting with classes and have written a File class that looks like it's worth keeping for future use. however, i cannot work out where to put it for this purpose or how to get it in. i figured i'd try a bit of

Re: how to reuse class deinitions?

2006-10-01 Thread sam
What I do: For each new major version of python, in .../site-packages I make a directory sdd (my initials). In it I put an empty file named __init__.py. When I have things I want to reuse, I put them in files named things like .../site-packages/sdd/goodidea.py, and I get use of them in