#103 Decorators stay in effect past correct scope

v3.0
closed-fixed
inspection (59)
5
2006-08-21
2006-06-06
No

Decorators like @staticmethod seem to stay in effect
for methods past the one to which they should apply.
In the 'index' view, 'say' is listed as a staticmethod
as well as 'create'

class Foo:
def __init__(self):
pass

@staticmethod
def create():
return Foo()

def say(self):
print repr(self)

Discussion

  • Edward Loper

    Edward Loper - 2006-08-21

    Logged In: YES
    user_id=195958

    Thanks for the bug report.

    Fixed in svn revision 1251.

     
  • Edward Loper

    Edward Loper - 2006-08-21
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks