[Python-Dev] slightly inconsistent set/list pop behaviour (original) (raw)
"Martin v. Löwis" martin at v.loewis.de
Wed Apr 8 20:30:02 CEST 2009
- Previous message: [Python-Dev] slightly inconsistent set/list pop behaviour
- Next message: [Python-Dev] Dropping bytes "support" in json
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
foo = set([1, 65537]) foo.pop() 1 foo = set([65537, 1]) foo.pop() 65537 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.
Well, Mark is the guy who deals with floating point numbers for fun. That should frighten you :-)
Martin
- Previous message: [Python-Dev] slightly inconsistent set/list pop behaviour
- Next message: [Python-Dev] Dropping bytes "support" in json
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]