In article <[EMAIL PROTECTED]>,
Steve Holden  <[EMAIL PROTECTED]> wrote:
>Aahz wrote:
>> In article <[EMAIL PROTECTED]>,
>> Steve Holden  <[EMAIL PROTECTED]> wrote:
>>> 
>>>(Part of) Python's credo (which you can read in context by typing
>>>
>>>    import this
>>>
>>>at an interactive command prompt) is "There should be one (and 
>>>preferably only one) way to do it".
>> 
>> Actually, I've gotten used to doing
>> 
>>     python -c 'import this'
>
>Faster:
>
>   python -m this

Only in Python 2.4 and later:

    starship:~> python2.3 -m this
    Unknown option: -m
    usage: python2.3 [option] ... [-c cmd | file | -] [arg] ...
    Try `python -h' for more information.

Why, oh why, do so many people on this newsgroup only consider the latest
version "correct"?  I've been guilty myself on occasion, but I do try to
label my suggestions with version warnings.
-- 
Aahz ([EMAIL PROTECTED])           <*>         http://www.pythoncraft.com/

"Don't listen to schmucks on USENET when making legal decisions.  Hire
yourself a competent schmuck."  --USENET schmuck (aka Robert Kern)
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to