Morgan243 / python-on-a-chip

Automatically exported from code.google.com/p/python-on-a-chip
Other
0 stars 0 forks source link

Update dict.has_key() to return a boolean #177

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. make ipm
2. ipm> d = {1:"one"}
3. ipm> import dict; dict.has_key(d, 1)

What is the expected output? What do you see instead?
Expect: True / False
Get: 1 / 0

Please use labels and text to provide additional information.

Original issue reported on code.google.com by dwhall...@gmail.com on 26 Dec 2010 at 10:29

GoogleCodeExporter commented 8 years ago
rabfa79bed822
Updated dict.has_key() in src/lib/dict.c to return a boolean.
Added system test t377 as a regression test.

Original comment by dwhall...@gmail.com on 26 Dec 2010 at 10:48