stringobject question

Al-Amerrho H. Amerin al_amerin at yahoo.com
Tue Jun 13 23:53:58 EDT 2000


Is this a bug or a feature?:

Python 1.6a2 (#4, Jun  9 2000, 02:22:41)  [GCC 2.95.2 19991024
(release)] on linux2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
Copyright 1995-2000 Corporation for National Research Initiatives (CNRI)

>>> ''.isdigit()
1
>>> ''.isspace()
1


Shouldn't both string methods return 0 when the string is empty?




More information about the Python-list mailing list