Issue1759
Created on 2011-06-15.08:06:31 by babelmania, last changed 2013-02-26.18:04:26 by fwierzbicki.
msg6551 (view) |
Author: Jorgo Bakker (babelmania) |
Date: 2011-06-15.08:06:31 |
|
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.
|
msg7795 (view) |
Author: Frank Wierzbicki (fwierzbicki) |
Date: 2013-02-26.18:04:26 |
|
Thanks for the bug report! The code with "self.return" does look funny. We support the use of keywords after a dot on purpose because Jython translates Java code like:
Foo.getReturn()
to Foo.return
So this is a concession to our design.
|
|
Date |
User |
Action |
Args |
2013-02-26 18:04:26 | fwierzbicki | set | status: open -> closed resolution: wont fix messages:
+ msg7795 nosy:
+ fwierzbicki |
2011-06-15 08:06:47 | babelmania | set | components:
+ Core |
2011-06-15 08:06:31 | babelmania | create | |
|