A small suggestion for Python

Edward C. Jones edcjones at erols.com
Fri Jan 12 10:51:19 EST 2001


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.

Thanks,
Ed Jones





More information about the Python-list mailing list