homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author py.user
Recipients py.user, terry.reedy
Date 2011年07月22日.00:22:43
SpamBayes Score 0.0026274708
Marked as misclassified No
Message-id <1311294165.48.0.234623784374.issue12606@psf.upfronthosting.co.za>
In-reply-to
Content
> I happen to prefer del myself
> but I agree that the two mutable sequence classes should behave the same.
del is not so flexible as assignement
>>> cmpr = [bytearray(i.encode('ascii')) for i in ('abcd', 'efgh', 'ijkl')]
>>> cmpr
[bytearray(b'abcd'), bytearray(b'efgh'), bytearray(b'ijkl')]
>>> cmpr[0][::-2] = cmpr[1][::2] = cmpr[2][1::2] = ()
>>> cmpr
[bytearray(b'ac'), bytearray(b'fh'), bytearray(b'ik')]
>>>
History
Date User Action Args
2011年07月22日 00:22:45py.usersetrecipients: + py.user, terry.reedy
2011年07月22日 00:22:45py.usersetmessageid: <1311294165.48.0.234623784374.issue12606@psf.upfronthosting.co.za>
2011年07月22日 00:22:44py.userlinkissue12606 messages
2011年07月22日 00:22:43py.usercreate

AltStyle によって変換されたページ (->オリジナル) /