[issue2735] range: lean and mean

Benjamin Peterson report at bugs.python.org
Thu May 1 22:48:57 CEST 2008


New submission from Benjamin Peterson <musiccomposition at gmail.com>:

Per discussions on Python-3000, I've stipped range down to a bare
minimum. Here's an overview of the patch:

1. No slicing.
2. Length is computed in constructor and is a PyLong in the object's
struct. __len__ simply tries to convert it to a Py_ssize_t.
3. start, stop, and, step are exposed as attributes

----------
assignee: gvanrossum
components: Interpreter Core
files: range_lean_and_mean.patch
keywords: patch
messages: 66042
nosy: benjamin.peterson, gvanrossum
severity: normal
status: open
title: range: lean and mean
type: behavior
versions: Python 3.0
Added file: http://bugs.python.org/file10152/range_lean_and_mean.patch

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2735>
__________________________________


More information about the Python-bugs-list mailing list