[Python-Dev] Re: Bug 911080, string split oddness (original) (raw)
Guido van Rossum guido at python.org
Sun Mar 7 11:56:33 EST 2004
- Previous message: [Python-Dev] Re: Bug 911080, string split oddness
- Next message: [Python-Dev] Bug 911080, string split oddness
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> How about: > "If sep is not specified or None, then any sequence of whitespace is a > separator."
Yes. But a thing that I was always missing, that in this mode, I have no chance to specify what whitespace is. I would like to add a way to spell this out. Do you see any sane way for a syntax?
Use the re module.
Or would it be better to see the current behavior as a special case to be deprecated, and better have an extra method like "splitspan" or something?
No way. The current way is just right.
--Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] Re: Bug 911080, string split oddness
- Next message: [Python-Dev] Bug 911080, string split oddness
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]