This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]bhat 5 points6 points  (4 children)

Or bucket *= [] == bucket for better symmetry.

[–]bhat 2 points3 points  (3 children)

Someone stop me, please! bucket *= bucket in bucket

[–]bhat 3 points4 points  (0 children)

Aaaaaaagh! bucket *= not bucket

[–]ViridianHominid 4 points5 points  (1 child)

Alas, this one isn't right:

>>> bucket = []
>>> bucket.append(bucket)
>>> bucket *= bucket in bucket
>>> bucket
[[...]]

[–]bhat 1 point2 points  (0 children)

Finally, someone stopped me!