A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2011-July/112699.html below:

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

[Python-Dev] [Python-checkins] cpython: Issue 12647: Add __bool__() method to the None object. [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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4