Re: [Python-Dev] cpython: make the types of None and Ellipsis callable
Am 30.07.2011 01:20, schrieb benjamin.peterson:
http://hg.python.org/cpython/rev/84c3be27b4c7 changeset: 71614:84c3be27b4c7 parent: 71611:a6afd26caa8a user: Benjamin Peterson <benjamin@python.org> date: Fri Jul 29 18:19:43 2011 -0500 summary: make the types of None and Ellipsis callable
files: Lib/test/test_builtin.py | 7 +++++ Misc/NEWS | 3 ++ Objects/object.c | 34 ++++++++++++++++++++++++++++ Objects/sliceobject.c | 29 +++++++++++++++++++++++ 4 files changed, 73 insertions(+), 0 deletions(-)
Shouldn't there be a matching Doc change somewhere? Georg
2011/7/29 Georg Brandl <g.brandl@gmx.net>:
Am 30.07.2011 01:20, schrieb benjamin.peterson:
http://hg.python.org/cpython/rev/84c3be27b4c7 changeset: 71614:84c3be27b4c7 parent: 71611:a6afd26caa8a user: Benjamin Peterson <benjamin@python.org> date: Fri Jul 29 18:19:43 2011 -0500 summary: make the types of None and Ellipsis callable
files: Lib/test/test_builtin.py | 7 +++++ Misc/NEWS | 3 ++ Objects/object.c | 34 ++++++++++++++++++++++++++++ Objects/sliceobject.c | 29 +++++++++++++++++++++++ 4 files changed, 73 insertions(+), 0 deletions(-)
Shouldn't there be a matching Doc change somewhere?
Somewhere is the question! -- Regards, Benjamin
On Sun, Jul 31, 2011 at 12:12 AM, Benjamin Peterson <benjamin@python.org> wrote:
2011/7/29 Georg Brandl <g.brandl@gmx.net>:
Shouldn't there be a matching Doc change somewhere?
Somewhere is the question!
While None/NotImplemented/Ellipsis are all documented as singletons, the behaviour of calling their types is not specified anywhere. If this was to be detailed anywhere, then the sections on None/NotImplemented/Ellipsis in section 3.2 of the language reference would be the place. And on that note... was there any particular reason for leaving NotImplemented out for this change? Cheers, Nick. -- Nick Coghlan | ncoghlan@gmail.com | Brisbane, Australia
On Sun, Jul 31, 2011 at 1:30 AM, Nick Coghlan <ncoghlan@gmail.com> wrote:
And on that note... was there any particular reason for leaving NotImplemented out for this change?
Never mind, just noticed the subsequest checkin. Cheers, Nick. -- Nick Coghlan | ncoghlan@gmail.com | Brisbane, Australia
participants (3)
-
Benjamin Peterson -
Georg Brandl -
Nick Coghlan