This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients asmodai, dcbbcd, georg.brandl, rhettinger, terry.reedy
Date 2010-11-21.23:50:46
SpamBayes Score 6.375764e-08
Marked as misclassified No
Message-id <1290383448.45.0.119249575182.issue3292@psf.upfronthosting.co.za>
In-reply-to
Content
Added the i,j,k notes

Left out the processor word size and C-type specifications in-part because it is an implementation detail subject to change.  Another reason is that it doesn't apply to necessarily to all sequences.  Slices take arbitrary objects and with applied to an object's __getitem__, the object itself is responsible for handling it.  Also, the size limits are already reflected in the maximum sizes for the object (a list can't get bigger that Py_ssize_t, so of course, its indicies are similarly bounded).  Adding more text here is leaning towards over-specification of implementation specific details and make the docs harder to read while not adding anything truly helpful.

In particular, it is more harmful than helpful to focus on the edge case where "s.insert(i, x) is not the same as s[i:i] = [x]" when i==sys.maxsize-1.
History
Date User Action Args
2010-11-21 23:50:48rhettingersetrecipients: + rhettinger, georg.brandl, terry.reedy, dcbbcd, asmodai
2010-11-21 23:50:48rhettingersetmessageid: <1290383448.45.0.119249575182.issue3292@psf.upfronthosting.co.za>
2010-11-21 23:50:47rhettingerlinkissue3292 messages
2010-11-21 23:50:46rhettingercreate