[Python-ideas] Options parsing in the Tornado Web Server
Andrey Fedorov
anfedorov at gmail.com
Thu Sep 10 21:50:18 CEST 2009
I remember seeing a bit of discussion about improving Python's default
options parsing... Tornado's seems very impressive [1]:
> from tornado.options import define, options
>
> define("port", default=8888, help="run on the given port", type=int)
>
> print options.port
>
> What does everyone think?
- Andrey
1.
http://github.com/facebook/tornado/blob/9a8bd2fb6fd6279be16d6f0a2e57e49fe1b98f8f/demos/chat/chatdemo.py
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20090910/920d048c/attachment.html>
More information about the Python-ideas
mailing list