gah! I hate the new string syntax
Sean 'Shaleh' Perry
shaleh at valinux.com
Fri Mar 2 23:34:29 CET 2001
On 02-Mar-2001 Magnus Lie Hetland wrote:
> "Sean 'Shaleh' Perry" <shaleh at valinux.com> wrote in message
> news:mailman.983551204.27573.python-list at python.org...
>> The point of all of this was 'join' especially,
>> but a few of the others (it
>> brother split) make for really ugly code.
>> " ".split(list) is another I have seen recently.
> What does *this* mean, then? (AFAIK it isn't valid
> Python unless list is a character...)
it was a snippet of code I saw somewhere. It turns out the person has it
The actual code would be:
s = 'This is a string'
which makes some amount of sense, although I still like the string module
More information about the Python-list