map/filter/reduce/lambda opinions and background unscientific mini-survey

Dan Sommers me at privacy.net
Wed Jul 6 10:40:39 EDT 2005


On Wed, 06 Jul 2005 14:33:47 GMT,
Ron Adam <rrr at ronadam.com> wrote:

> Since this is a Python 3k item...  What would be the consequence of
> making None the default value of an undefined name?  And then assigning
> a name to None as a way to delete it?

[ ... ]

> Any drawbacks?

Lots more hard-to-find errors from code like this:

    filehandle = open( 'somefile' )
    do_something_with_an_open_file( file_handle )
    filehandle.close( )

Regards,
Dan

-- 
Dan Sommers
<http://www.tombstonezero.net/dan/>



More information about the Python-list mailing list