Author: Squeaky <squeaky...@gmx.com> Branch: simple-range-strategy Changeset: r69668:afa678215f7a Date: 2014-03-03 17:25 +0100 http://bitbucket.org/pypy/pypy/changeset/afa678215f7a/
Log: start small diff --git a/pypy/objspace/std/listobject.py b/pypy/objspace/std/listobject.py --- a/pypy/objspace/std/listobject.py +++ b/pypy/objspace/std/listobject.py @@ -999,7 +999,19 @@ self.sizehint = hint -class RangeListStrategy(ListStrategy): +class BaseRangeListStrategy(ListStrategy): + pass + + +class SimpleRangeListStrategy(BaseRangeListStrategy): + """SimpleRangeListStrategy is used when a list is created using the range + method providing only positive length. The storage is a positive integer + less than 2**31 - 1 storing length.""" + + _applevel_repr = "simple_range" + + +class RangeListStrategy(BaseRangeListStrategy): """RangeListStrategy is used when a list is created using the range method. The storage is a tuple containing only three integers start, step and length and elements are calculated based on these values. On any operation _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit