Property confusion

Peter Otten __peter__ at web.de
Wed Sep 8 10:15:52 CEST 2004


kepes.krisztian wrote:

[Same old question under a new subject]

If you don't receive an answer within a reasonable time span you should
consider rephrasing the problem, not just the header.

I tried the code you gave and could not perceive any difference in the
output of the two snippets. Maybe you can post an interactive session with
just the statements that produce different output? Or you rename one class,
to B, say, and add an assertion you expect to succeed but which fails, e.
g.:

class A(object):
    #...
class B(object):
    #...

assert A().some_attr == B().some_attr


Peter




More information about the Python-list mailing list