Re: Copy an Object (Again?)

2006-01-06 Thread Ernst Noch
KraftDiner wrote: > I'm having trouble getting a copy of and object... (a deep copy) > > I'm writing a method that creates a mirror image of an object (on > screen) > In order to do this i need to get a copy of the object and then modify > some > of its attributes. > > I tried: > objs = myListOfO

Re: Is 'everything' a refrence or isn't it?

2006-01-06 Thread Ernst Noch
Mike Meyer wrote: > Ernst Noch <[EMAIL PROTECTED]> writes: > >>Maybe next time showing something like the following trivial snippet >>might help demonstrate that the core of the matter doesn't is not the >>way python treats parameters? > > > Did

Re: Is 'everything' a refrence or isn't it?

2006-01-06 Thread Ernst Noch
Mike Meyer wrote: > Steven D'Aprano <[EMAIL PROTECTED]> writes: > >>Thinking about Python's behaviour ("it always passes references to >>objects") will invoke misleading frames in many programmers' minds. The >>word "reference" is misleading and should be avoided, because what the >>average non-Py

Re: Occasional OSError: [Errno 13] Permission denied on Windows

2006-01-05 Thread Ernst Noch
Alec Wysoker wrote: >>>Using Python 2.3.5 on Windows XP, I occasionally get OSError: [Errno >>>13] Permission denied when calling os.remove(). This can occur with a >>>file that is not used by any other process on the machine, >> >>How do you know that? > > > Yeah, good point. I don't really kn

Re: Calling GPL code from a Python application

2006-01-04 Thread Ernst Noch
Heiko Wundram wrote: > Heiko Wundram wrote: > >>..., unless I convince the >>people at my univ to _release_ the code I've written under a >>GPL-compatible open source license itself. > > > The can of worms in this is basically that management at my uni doesn't want > employees to take the softwa

Re: Calling GPL code from a Python application

2006-01-04 Thread Ernst Noch
Mike Meyer wrote: > In my case, I get paid for building custom applications. If I use > GPL'ed software, I'm required to give my client the software under the > GPL (or, as you point out, a GPL-compatible license). I never bother - > I hand them a tarball and installation instructions and they ins

Re: Calling GPL code from a Python application

2006-01-04 Thread Ernst Noch
Mike Meyer wrote: > Heiko Wundram <[EMAIL PROTECTED]> writes: > >>I've asked TrollTech more than once for their stance on this, and each time >>they have told me that it's illegal for me to develop an inhouse >>application (such as a frontend to some webapp I've written that's only >>used by us an

Re: Calling GPL code from a Python application

2006-01-04 Thread Ernst Noch
Heiko Wundram wrote: > Terry Hancock wrote: > >>Given that Google has been using this fact extensively, and >>they have not been sued over it, I think it's a fairly >>clearly established interpretation, whether it is popular or >>not (but of course it's not a legal precedent until somebody >>does

Re: Visualisation Engine for Python

2006-01-03 Thread Ernst Noch
rodmc wrote: > I am looking for a 2D data visualisation or graphics library for > Python. Can anyone point me in the right direction? > > > Thanks in advance, > > rod > Maybe download and install the enthought python edition from http://code.enthought.com/enthon/ Contains the following librari

Re: Python article in Free Software Magazine

2006-01-01 Thread Ernst Noch
Steven D'Aprano wrote: > On Sun, 01 Jan 2006 06:09:14 -0500, Dan Sommers wrote: > > >>On Sun, 01 Jan 2006 18:06:10 +1100, >>Steven D'Aprano <[EMAIL PROTECTED]> wrote: >> >> >>>I don't want to nit-pick all my way through the article, which is very >>>decent and is worth reading, but I will say one

Re: Application architecture (long post - sorry)

2006-01-01 Thread Ernst Noch
[EMAIL PROTECTED] wrote: > Hi all, > > I want to create a mobile field worker data solution. > > Let me explain... > > I work for a company that has some software used by call takers to > enter information into a database about faults with electrical > appliances they manufacture, sell to custom

Re: predicting function calls?

2005-12-31 Thread Ernst Noch
Roy Smith wrote: > I think I know the answer to this, but I'll ask it just in case > there's something I hadn't considered... > > I'm working on a python interface to a OODB. Communication with the > DB is over a TCP connection, using a model vaguely based on CORBA. > I'll be creating object hand

Re: Providing 'default' value with raw_input()?

2005-12-28 Thread Ernst Noch
Alex Martelli wrote: > In some situations it may be impractical to rely on the editor closing; > for example, the user's favorite editor might be a multitab one that's > big, heavy, and slow to start, so that the user doesn't close the whole > process but rather just a specific tab. In such cases

Re: making fractals in python

2005-12-12 Thread Ernst Noch
evil_daffid wrote: > hi, > Im reseaching fractals, and how to make them in python using recursion. > I've written a bit of code to make the koch isalnd but something isn't > right, I have the basic shape but there's something wrong with the > recursion i've used, could someone help me. > > Her

Re: OO in Python? ^^

2005-12-11 Thread Ernst Noch
Matthias Kaeppler wrote: > Brian Beck wrote: > >> def foo(self): >> raise NotImplementedError("Subclasses must implement foo") > > > That's actually a good idea, though not as nice as a check at > "compile-time" (jesus, I'm probably talking in C++ speech again, is > there such a thing as c