[Python-Dev] slice subscripts for sequences and mappings (original) (raw)

Nick Coghlan ncoghlan at gmail.com
Sun Mar 4 04:59:34 CET 2012


On Sun, Mar 4, 2012 at 12:24 PM, Thomas Wouters <thomas at python.org> wrote:

(Let's not forget about tpassequence.sqconcat, tpasnumber.nbadd, tpassequence.sqrepeat and tpasnumber.nbmul either.)

Indeed, let's not forget about those, which are a compatibility problem in and of themselves: http://bugs.python.org/issue11477

At most, the tp_mapping and tp_as_sequence overlap should be an FAQ entry in the devguide that says "yes, the implementation of this is weird. It's like that for historical reasons, and fixing it is a long way down the priority list for changes"

Cheers, Nick.

-- Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia



More information about the Python-Dev mailing list