I wrote a little library that does this a couple weeks ago, it's on pypi: http://pypi.python.org/pypi/Decorum/. It's pretty simple, the last example illustrates how to do what you want. After thinking about it though, I think it's probably not a great idea to allow the parenthesis to be omitted. -- http://mail.python.org/mailman/listinfo/python-list
- How to avoid "()" when writing a d... Giampaolo RodolĂ
- Re: How to avoid "()" when wr... Ian Kelly
- Re: How to avoid "()" when wr... Terry Reedy
- Re: How to avoid "()" when wr... bruno.desthuilli...@gmail.com
- Re: How to avoid "()" whe... Ian Kelly
- Re: How to avoid "()" whe... bruno.desthuilli...@gmail.com
- Re: How to avoid "()" when wr... Ethan Furman
- Re: How to avoid "()" when wr... zeekay