Is it possible (and wise) to extend the None-type ?
Stef Mientki
stef.mientki at gmail.com
Wed Nov 26 12:55:16 EST 2008
hello,
I've the idea that I always have a lot of useless code in my programs,
like the next example.
def _On_Menu_File_Open ( self, event = None ):
if event :
event.Skip ()
instead of
def _On_Menu_File_Open ( self, event = None ):
event.Skip ()
So I would like to extend the None-type (if that's possible),
with a dummy Skip() method.
Is it wise to do ?
If not what are the disadvantages ?
thanks,
Stef Mientki
More information about the Python-list
mailing list