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 amaury.forgeotdarc
Recipients amaury.forgeotdarc, belopolsky, mark.dickinson
Date 2008-04-25.19:56:51
SpamBayes Score 0.09800341
Marked as misclassified No
Message-id <[email protected]>
In-reply-to
Content
I am currently working on a patch that allows large ranges and large
indices. The trick is to define tp_as_mapping->mp_subscript.
Then range_item() is rarely used, only by functions calling directly the
PySequence_* functions, instead of the abstract PyObject_*.

There is still a limit with len(), which seems bound by the size_t limit.
Most of the tests in test_builtin were re-enabled.

I join the current version of the patch.
I'm still working on further simplifications, and maybe supporting
slices on ranges...

Note: I found more useful to store a "range->end" member, which is the
multiple of "step" just beyond the "stop" limit.
History
Date User Action Args
2008-04-25 19:57:05amaury.forgeotdarcsetspambayes_score: 0.0980034 -> 0.09800341
recipients: + amaury.forgeotdarc, mark.dickinson, belopolsky
2008-04-25 19:57:03amaury.forgeotdarcsetspambayes_score: 0.0980034 -> 0.0980034
messageid: <[email protected]>
2008-04-25 19:57:02amaury.forgeotdarclinkissue2690 messages
2008-04-25 19:57:01amaury.forgeotdarccreate