Issue1839038

classification
Title: operations returning bools still return 1/0s
Type: Severity: normal
Components: Core Versions:
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: pjenvey
Priority: normal Keywords:

Created on 2007-11-26.22:34:24 by pjenvey, last changed 2008-01-05.21:14:36 by pjenvey.

Messages
msg2018 (view) Author: Philip Jenvey (pjenvey) Date: 2007-11-26.22:34:24
The migration to booleans didn't catch some places where bools (instead of 1s/0s) should be returned, such as:

sequences:

>>> () == ()
1
>>> () > ()
0

dicts:

>>> {} == {}
1

a grep for Py.One or Py.Zero would find these and maybe some more
msg2019 (view) Author: Philip Jenvey (pjenvey) Date: 2008-01-05.21:14:36
fixed in r3970
History
Date User Action Args
2007-11-26 22:34:24pjenveycreate