why python don't support "extended slice direct assignment" for lists?

Chris Rebert clp2 at rebertia.com
Fri Jul 2 22:43:01 EDT 2010


On Fri, Jul 2, 2010 at 7:19 PM, Robert William Hanks
<astroultraman at gmail.com> wrote:
> to say is "wrong" i think is a bit too much, its just a different type of
> usage, this type of sintax is extensively used in numpy arrays (extended
> slice came from numerical python), just asking why not extend the sintax to
> python list. (not sure if you can use None as in the code i posted in numpy
> but numbers are ok). I was just rewriting some numpy code in pure python (no
> numpy for python3 yet), personally i think the pure python way is just ugly
> and more expensive.
>
> On Fri, Jul 2, 2010 at 10:55 PM, <python-list-request at python.org> wrote:
>>
>> Send Python-list mailing list submissions to
>>        python-list at python.org
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>        http://mail.python.org/mailman/listinfo/python-list
>> or, via email, send a message with subject or body 'help' to
>>        python-list-request at python.org
>>
>> You can reach the person managing the list at
>>        python-list-owner at python.org
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of Python-list digest..."
>>
>> Today's Topics:

Please avoid replying to the list digest, especially without trimming,
as it adds noise to the conversation (and can screw up threading).

Cheers,
Chris



More information about the Python-list mailing list