[Python-Dev] RE: [Python-Dev] String methods... finally

Tim Peters tim_one at email.msn.com
Tue Jun 15 04:50:08 CEST 1999


>>     wink> + string.join(seq) [etc]

[Barry]
> Check the CVS branch.  It does seem pretty cool!

It's even more fun to play with than to argue about <wink>.  Thank you,
Barry!

A bug:

>>> 'ab'.endswith('b',0,1) # right
0
>>> 'ab'.endswith('ab',0,1) # wrong
1
>>> 'ab'.endswith('ab',0,0) # wrong
1
>>>

Two legit compiler warnings from a previous checkin:

Objects\intobject.c(236) : warning C4013: 'isspace' undefined;
    assuming extern returning int
Objects\intobject.c(243) : warning C4013: 'isalnum' undefined;
    assuming extern returning int

One docstring glitch ("very" -> "every"):

>>> print ''.join.__doc__
S.join(sequence) -> string

Return a string which is the concatenation of the string representation
of very element in the sequence.  The separator between elements is S.
>>>

"-".join("very nice indeed! ly".split()) + " y'rs  - tim"






More information about the Python-Dev mailing list