No constructor calls????

Gordon McMillan gmcm at hypernet.com
Thu Dec 30 10:36:00 EST 1999


Arinte writes:

> When I have this code the constructor is called
> 
> xpac=PossDevice.PossArg("12345678",21)
> devlist.append( xpac )
> 
> but, this code doesn't seem to function
> 
> devlist.append( PossDevice.PossArg("12345678",21) )
> 
> Is the second one invalid or something?  How can I do the first
> one in one call?

If the first one works, so does the second. More likely you 
changed something else that broke it.

- Gordon




More information about the Python-list mailing list