Dictionaries behaviour Linux vs. Windows
Piet van Oostrum
piet at cs.uu.nl
Mon Jul 31 14:35:04 EDT 2000
>>>>> Carsten Gaebler <cg at schlund.de> (CG) writes:
CG> Hi!
CG> I have the following problem with Python 1.5.2:
CG> dict = {}
CG> dict.get("test", []).append(1)
CG> On Windows 95: dict == {"test": [1]}
CG> On Linux: dict == {}
CG> What's the difference?
On Windows 95 I get {}, which is what it should be, as you don't change the
dictionary.
--
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.van.Oostrum at hccnet.nl
More information about the Python-list
mailing list