A small suggestion for Python

Michael P. Soulier msoulier at nortelnetworks.com
Fri Jan 12 11:16:53 EST 2001


In article <3A5F27F7.30268D9A at erols.com>, Edward C. Jones wrote:
>I have been programming in Python for several years. I still
>occasionally make mistakes with functions (such as sort) that
>return only "None". I suggest that functions like sort should
>return either "Nothing" or nothing. "Nothing" would be exactly
>like "None" except it can't be assigned. Whether "Nothing" or
>nothing is used, the statement "x= y.sort()" would raise a
>run-time Exception.

    Or perhaps some kind of pragma to enable this behaviour?

    Mike

-- 
Michael P. Soulier, TD12, SKY  Tel: 613-765-4699 (ESN: 39-54699)
Optical Networks, Nortel Networks, SDE Pegasus
"...the word HACK is used as a verb to indicate a massive amount
of nerd-like effort."  -Harley Hahn, A Student's Guide to UNIX
Nortel Linux User's Group Ottawa: (internal) http://nlug.ca.nortel.com



More information about the Python-list mailing list