-
meyarivan committed revision 212 to the News Rack SVN repository, changing 1 files.
2009-10-14 21:55:19 UTC in News Rack
-
Logged In: YES
user_id=30470
Thats so counter intuitive.. :-(
At least the documentation should specify the fact that the
behaviour of "string".split for empty strings is so and so....
The reason this probably never came up ( or mostly ignored
by majority ) is that people probably check if the string is
empty before proceeding to process it..
I am not closing the bug...
2003-09-26 11:04:54 UTC in Python
-
Logged In: YES
user_id=30470
"".split(None) -> []
which is expected because in the case when no sep is
specified and when sep == None, split_whitespace is called..
2003-09-24 08:51:28 UTC in Python
-
"".split() -> []
"".split(' ') -> ['']
It is not clear from the documentation as to what is
the defined behaviour in the above case. To say the
least, it is
completely counter-intuitive..(splitting an empty
string should
return the list [''] in both cases).
From stringobject.c, the behaviour of split_whitespace
(i.e split called without sep) and string_s.
2003-09-24 08:20:19 UTC in Python
-
meyarivan committed patchset 5 of module scripts to the Indian Linux (IndLinux) CVS repository, changing 1 files.
2003-05-07 17:36:03 UTC in Indian Linux (IndLinux)
-
meyarivan committed revision 18 to the Indian Linux (IndLinux) SVN repository, changing 1 files.
2003-05-07 17:36:03 UTC in Indian Linux (IndLinux)
-
meyarivan committed patchset 4 of module scripts to the Indian Linux (IndLinux) CVS repository, changing 3 files.
2003-04-26 07:53:07 UTC in Indian Linux (IndLinux)
-
meyarivan committed revision 17 to the Indian Linux (IndLinux) SVN repository, changing 3 files.
2003-04-26 07:53:07 UTC in Indian Linux (IndLinux)
-
meyarivan committed patchset 2 of module evolve to the evolve CVS repository, changing 39 files.
2003-03-27 09:37:20 UTC in evolve
-
meyarivan committed patchset 1 of module evolve to the evolve CVS repository, changing 39 files.
2003-03-27 09:37:20 UTC in evolve