[Tutor] Class reference problem?
kent37 at tds.net
Sat Jun 4 03:30:53 CEST 2005
spartan-ii at tds.net wrote:
> for item in function1(args):
> object = class()
> if (function2(item)):
> if (condition):
> object.variable = value
> print object # debug
> print object #debug
> The above pseudo code (not really, but close enough) is essentially what
> I'm playing with. I hope it gives a sense of what I'm trying to do.
> Any way, the debug lines both print "<__main__.CLASSNAME instance at
> ADDRESS>" like they should, but the addresses never match up.
Can you post some working code that shows the problem?
More information about the Tutor