On Mon, Sep 5, 2011 at 8:56 AM, Michael Foord <fuzzy...@voidspace.org.uk> wrote: > Hey all, > A while ago there was a discussion of the value of apis like str.swapcase, > and it was suggested that even though it was acknowledged to be useless the > effort of deprecating and removing it was thought to be more than the value > in removing it. > Earlier this year I was at a pypy sprint helping to work on Python 2.7 > compatibility. The bytearray type has much of the string interface, > including swapcase… So there was effort to implement this method with the > correct semantics for pypy. Doubtless the same has been true for IronPython, > and will also be true for Jython. > Whilst it is too late for Python 2.x, it *is* (in my opinion) worth removing > unused and unneeded APIs. Even if the effort to remove them is more than any > effort saved on the part of users it helps other implementations down the > road that no longer need to provide these APIs. > All the best, > Michael Foord >
On the other hand, for any users wanting to use this i n the future, if it is not there, they'd have to implement the logic for themselves. If it is a "burden" for someone in a sprint, looking at other implementations, and with all the unicode knowledge/documentation around, it would be pretty much undoable in the correct way by a casual user. Removing it would mean explicitly "batteries removal". If you get some traction o n that, at least consider moving it to a pure python function on the string module. js -><- > -- > http://www.voidspace.org.uk/ > > May you do good and not evil > May you find forgiveness for yourself and forgive others > May you share freely, never taking more than you give. > -- the sqlite blessing http://www.sqlite.org/different.html > > _______________________________________________ > Python-Dev mailing list > Python-Dev@python.org > http://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > http://mail.python.org/mailman/options/python-dev/jsbueno%40python.org.br > > _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com