name of object inside it's methods?
gerrit at nl.linux.org
Mon Feb 28 09:25:44 CET 2000
<quote name="Moshe Zadka" date="951723805">
> On Mon, 28 Feb 2000, Michal Wallace (sabren) wrote:
> > A) you could recursively loop through all the namespaces
> > available to your program and do an "is" check against
> > everything you find....
> Which wouldn't work if the object doesn't have a Python visible name,
> like a Python object inside a list.
> > B) you could give the object a .Name attribute and just
> > use that instead. :)
> class foo():
> b = foo()
> b.Name = "b"
> a = b
> print a
File "<stdin>", line 1
SyntaxError: invalid syntax
Comparison Python GUI's: http://www.nl.linux.org/~gerrit/gui.html
More information about the Python-list