Re: [Tutor] question concerning deepcopy

2006-04-28 Thread Kent Johnson
Gregor Lingl wrote: > Hi all of you, > > I've some Vector class, which is a subclass of tuple and which is > working satisfactorily since long in different contexts. Now I've > constructed objects with attributes of Vec-type, which I wanted to > deepcopy. But that doesn't work, because I can't

[Tutor] question concerning deepcopy

2006-04-28 Thread Gregor Lingl
Hi all of you, I've some Vector class, which is a subclass of tuple and which is working satisfactorily since long in different contexts. Now I've constructed objects with attributes of Vec-type, which I wanted to deepcopy. But that doesn't work, because I can't (deep)copy Vec-s: >>> from cop

Re: [Tutor] Python and Oracle

2006-04-28 Thread Tino Dai
  On 4/27/06, Linda Kvam <[EMAIL PROTECTED]> wrote: I have Oracle 10g and Python 2.4 on my PC.  I just installed cx_Oracle andthen entered - import cx_Oracle -in PythonWin and got the following error - >>> import cx_OracleTraceback (most recent call last):File "", line 1, in ?ImportError: DLL load

Re: [Tutor] Setting a global variable on class initialisation

2006-04-28 Thread Alan Gauld
> Sorry I didn't make the problem I'm working with all too clear. Basically > I'm working with a class (Directory) that upon creation reads in a 3 files > and from these files populates one main list. > This bit is fine. > > The trickier bit was that I need to use two of the sublists (e.g the > con

Re: [Tutor] how to *really* copy a list

2006-04-28 Thread Ed Singleton
On 28/04/06, John Fouhy <[EMAIL PROTECTED]> wrote: > On 28/04/06, kevin parks <[EMAIL PROTECTED]> wrote: > > In most case you are fine operating on the list in place and altering the > > existing list. In some cases you want your code to stop molesting your poor > > mutables and really honestly sin

[Tutor] Setting a global variable on class initialisation

2006-04-28 Thread Max Russell
Hello again   Sorry I didn't make the problem I'm working with all too clear. Basically I'm working with a class (Directory) that upon creation reads in a 3 files and from these files populates one main list. This bit is fine.   The trickier bit was that I need to use two of the sublists (