New submission from Erick Tryzelaar <[EMAIL PROTECTED]>: I believe I found an unintentional syntax error with a combination of decorators, parenthesis, and dots. Here's a demonstration:
class C: def prop(self, function): return property(function) class F: @C().prop def foo(self): return 5 Which errors out with: File "foo.py", line 6 @C().prop ^ SyntaxError: invalid syntax I can't imagine why this would be desired, since these equivalent forms work: class D: def foo(self): return 5 foo = C().prop(foo) class E: c = C() @c.prop def foo(self): return 5 ---------- components: Interpreter Core messages: 75850 nosy: erickt severity: normal status: open title: unintended syntax error with decorators, parenthesis, and dots? type: compile error versions: Python 2.5.3, Python 3.0 _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4321> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com