[Python-Dev] Chaining seq1.pop().extend(seq2) does give wrong result (original) (raw)
Moore, Paul Paul.Moore at atosorigin.com
Tue Mar 23 10:00:07 EST 2004
- Previous message: [Python-Dev] Chaining seq1.pop().extend(seq2) does give wrong result
- Next message: [Python-Dev] order of decorator application?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: Jacek Trzmiel
Shouldn't those two give identical result?
No, because extend() does not return the modified list, but instead returns None (as you see). This question is actually more appropriate for python-list at python.org (also available as the newsgroup comp.lang.python). The python-dev list is for discussion of changes to the Python language.
If you find a genuine bug, you are best reporting it via the SourceForge bug tracker, as simply posting to the mailing list can result in it being lost. In this case, however, there is no bug, so that is not appropriate.
Regards, Paul.
- Previous message: [Python-Dev] Chaining seq1.pop().extend(seq2) does give wrong result
- Next message: [Python-Dev] order of decorator application?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]