[Python-Dev] [Python-checkins] cpython: Issue 12647: Add __bool__() method to the None object.

Nick Coghlan ncoghlan at gmail.com
Sat Jul 30 18:18:15 CEST 2011


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


More information about the Python-Dev mailing list