[Python-Dev] User's complaints (original) (raw)
Wolfgang Langner tds333+pydev at gmail.com
Thu Jul 13 09:37:45 CEST 2006
- Previous message: [Python-Dev] User's complaints
- Next message: [Python-Dev] User's complaints
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 7/13/06, Jeroen Ruigrok van der Werven <ashemedai at gmail.com> wrote:
Things that struck me as peculiar is the old:
if name == "main": whatever() This is so out of tune with the rest of python it becomes a nuisance.
It is not beautiful but very useful. In Python 3000 we can replace it with:
@main def whatever(): ...
to mark this function as main function if module executed directly.
-- bye by Wolfgang
- Previous message: [Python-Dev] User's complaints
- Next message: [Python-Dev] User's complaints
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]