[Python-Dev] syntactic shortcut - unpack to variably sized list

"Martin v. Löwis" martin at v.loewis.de
Sun Nov 14 20:38:18 CET 2004


Armin Rigo wrote:
> So who's wrong: the documentation of list.pop() or its implementation?  
> It would be nicely regular if we could pop slices.

That's an interesting observation. I was somewhat concerned that this
kind of overloading might be confusion, but given that it is even
already documented (with nobody noticing), I'm now very much in favour
of allowing to pop slices.

Of course, whoever implements the change should make sure that slices
are applicable consistently everwhere the documentation says they should
be.

Regards,
Martin





More information about the Python-Dev mailing list