Is there Python equivalent to Perl BEGIN{} block?
Aahz
aahz at pythoncraft.com
Thu Mar 13 16:20:25 EDT 2008
In article <hMWdnSLNjsLJH0TanZ2dnUVZ_qDinZ2d at comcast.com>,
Jeff Schwab <jeff at schwabcenter.com> wrote:
>
>I write maybe a dozen one-liners a day. It's not practical to do this
>with Python, or at least it's not nearly as convenient as Perl.
That is a defensible position, but my take is that writing the one-liners
in Python is more convenient than remembering enough Perl to make writing
one-liners useful. Especially when the one-liners often start expanding.
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"All problems in computer science can be solved by another level of
indirection." --Butler Lampson
More information about the Python-list
mailing list