[Python-Dev] partition() (was: Remove str.find in 3.0?)
Nick Coghlan
ncoghlan at gmail.com
Wed Aug 31 11:10:48 CEST 2005
Ron Adam wrote:
> I don't feel there is a need to avoid numbers entirely. In this case I
> think it's the better way to find the n'th seperator and since it's an
> optional value I feel it doesn't add a lot of complication. Anyway...
> It's just a suggestion.
Avoid overengineering this without genuine use cases. Raymond's review of the
standard library shows that the basic version of str.partition provides
definite readability benefits and also makes it easier to write correct code -
enhancements can wait until we have some real experience with how people use
the method.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
http://boredomandlaziness.blogspot.com
More information about the Python-Dev
mailing list