⇤ ← Revision 1 as of 2005-03-02 17:58:05
Size: 578
Comment:
|
Size: 578
Comment: converted to 1.6 markup
|
No differences found! |
A page for useful (or potentially abusive?) decorator ideas.
__main__
This decorator does not alter a function, but causes it to be executed if __name__ == '__main__'. This provides an experimental cleaner syntax to the traditional way of bootstrapping a python script. This should not be used on class methods.
The function gets a copied list of sys.argv arguments.