[Python-Dev] [Python-checkins] cpython: Issue 12647: Add bool() method to the None object. (original) (raw)
Nick Coghlan ncoghlan at gmail.com
Sat Jul 30 18🔞15 CEST 2011
- Previous message: [Python-Dev] [Python-checkins] cpython: Issue 12647: Add __bool__() method to the None object.
- Next message: [Python-Dev] the history of tests being inside Lib/ in Python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sat, Jul 30, 2011 at 6:08 AM, Brett Cannon <brett at python.org> wrote:
Wasn't this change only in 3.3 where nonzero doesn't exist? So when PyPy eventually supports Python 3 they will have to update to support bool on None but this test won't exercise that for them. IOW I think the guard is wrong and should go.
The entire assertion was removed by Raymond's checkin, as the addition of None.bool made it false on CPython as well.
Cheers, Nick.
-- Nick Coghlan  |  ncoghlan at gmail.com  |  Brisbane, Australia
- Previous message: [Python-Dev] [Python-checkins] cpython: Issue 12647: Add __bool__() method to the None object.
- Next message: [Python-Dev] the history of tests being inside Lib/ in Python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]