Message96291
The documentation says: "If the referenced object does not have a, b and
c attributes, of course, the end result is still a run-time exception."
For the given example, this is likely not true. Since the attributes are
being assigned to, they will be created. The example is equivalent to:
>>> class a(object): pass
...
>>> ref = a()
>>> ref.a = 21
>>> ref.b = 42
>>> ref.c = 63 |
|
Date |
User |
Action |
Args |
2009-12-12 12:16:37 | eric.smith | set | recipients:
+ eric.smith, georg.brandl |
2009-12-12 12:16:37 | eric.smith | set | messageid: <1260620197.76.0.962971657783.issue7485@psf.upfronthosting.co.za> |
2009-12-12 12:16:36 | eric.smith | link | issue7485 messages |
2009-12-12 12:16:35 | eric.smith | create | |
|