Prev: Extending objects by a method?
Next: inflect.py: generate plurals, ordinals, numbers to words...
From: Yingjie Lan on 15 Jul 2010 08:30 Hi there, Maybe somebody already suggested this: How about "{:}" for the empty dict, so that "{}" can denote the empty set? Yingjie
From: Tim Golden on 15 Jul 2010 08:44 On 15/07/2010 13:30, Yingjie Lan wrote: > Hi there, > > Maybe somebody already suggested this: > > How about "{:}" for the empty dict, > so that "{}" can denote the empty set? Well one thing is that {} has denoted the empty dict for many many releases of Python so a *lot* of code would break if you suddenly switched... TJG
From: Peter Otten on 15 Jul 2010 08:49 Yingjie Lan wrote: > Maybe somebody already suggested this: > > How about "{:}" for the empty dict, > so that "{}" can denote the empty set? http://mail.python.org/pipermail/python-3000/2007-April/006620.html
|
Pages: 1 Prev: Extending objects by a method? Next: inflect.py: generate plurals, ordinals, numbers to words... |