From: Jorgo B. <re...@bu...> - 2011-06-15 08:06:39
|
New submission from Jorgo Bakker <jb...@sc...>: Consider the following code <<< class Foo: def __init__(self): self.return=1 self.other=2 return pass foo=Foo() print foo.return <<< Jython accepts and executes this code, but I believe it is wrong as it uses a reserved word. ---------- messages: 6551 nosy: babelmania severity: normal status: open title: bug: return as attribute? [2.5.2 and earlier] _______________________________________ Jython tracker <re...@bu...> <http://bugs.jython.org/issue1759> _______________________________________ |