The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Newsgroups: comp.lang.python
From: j.m.dagenh...@gmail.com
Date: Tue, 11 Sep 2012 19:28:10 -0700 (PDT)
Local: Tues, Sep 11 2012 10:28 pm
Subject: generators as decorators simple issue
I'm trying to call SetName on an object to prevent me from ever having to call it explictly again on that object. Best explained by example.
def setname(cls):
class Trial:
@setname
print 'Yay! or Invalid.'
if __name__ == '__main__':
How can i fix this? You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||