[Python-Dev] Empty keyword

Sylvain Hellegouarch sh at defuze.org
Mon Jun 7 09:32:18 EDT 2004


Hi all,

It miht sound stupid or useless, or maybe someone has already mentioned 
it but sometimes I wish Python could provdie an "Empty" keyword like The 
"None" one.

It would be usefull to validdate the emptyness of any scalar or sequence 
in an uniform way instead of using things such as :

if len(mylist) == 0:

which I really dislike.

It makes in my head but it might be stupid.

Thanks for your feedback.
- Sylvain




More information about the Python-Dev mailing list