[issue14965] super() and property inheritance behavior

2012-05-31 Thread josmiley
josmiley added the comment: >>> class DerivedProp(BaseProp): ... @property ... def p(self): ... return super(DerivedProp, self).p * 2 ... @p.setter ... def p(self, value): ... BaseProp.p.__set__(self,value / 2) -- nosy:

[issue14972] listcomp with nested classes

2012-05-31 Thread josmiley
New submission from josmiley : # this runs with python2.7, not with python3.2 class Foo(object): class Bar(object): pass Attr = [Bar()for n in range(10)] # solved in this way ... class Foo(object): class Bar(object): pass Attr = [] for n in range(10