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 belopolsky
Recipients belopolsky, exarkun, gvanrossum, lpd, rhettinger
Date 2008-03-08.14:12:10
SpamBayes Score 0.0558628
Marked as misclassified No
Message-id <1204985531.9.0.190916833347.issue1733184@psf.upfronthosting.co.za>
In-reply-to
Content
Note that L[:] and L[:] = [] are well-known idioms for making a copy of 
a list and emptying the list respectively. (For dictionaries we have 
D.copy() and D.clear().) Someone looking at x[:] or x[:] = [] should 
immediately recognize a list copy or clear operation.  Having to think 
of whether x may be a dictionary would make such code very confusing.
History
Date User Action Args
2008-03-08 14:12:12belopolskysetspambayes_score: 0.0558628 -> 0.0558628
recipients: + belopolsky, gvanrossum, rhettinger, lpd, exarkun
2008-03-08 14:12:11belopolskysetspambayes_score: 0.0558628 -> 0.0558628
messageid: <1204985531.9.0.190916833347.issue1733184@psf.upfronthosting.co.za>
2008-03-08 14:12:11belopolskylinkissue1733184 messages
2008-03-08 14:12:11belopolskycreate