[Python-Dev] slightly inconsistent set/list pop behaviour (original) (raw)
Andrea Griffini gripho66 at gmail.com
Wed Apr 8 13:58:04 CEST 2009
- Previous message: [Python-Dev] slightly inconsistent set/list pop behaviour
- Next message: [Python-Dev] slightly inconsistent set/list pop behaviour
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, Apr 8, 2009 at 12:57 PM, Jack diederich <jackdied at gmail.com> wrote:
You wrote a program to find the two smallest ints that would have a hash collision in the CPython set implementation? I'm impressed. And by impressed I mean frightened.
?
print set([0,8]).pop(), set([8,0]).pop()
Andrea
- Previous message: [Python-Dev] slightly inconsistent set/list pop behaviour
- Next message: [Python-Dev] slightly inconsistent set/list pop behaviour
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]