[New-bugs-announce] [issue17722] 'round' function doesn't honour a descriptor __round__

Mark Dickinson report at bugs.python.org
Sat Apr 13 22:02:20 CEST 2013


New submission from Mark Dickinson:

Benjamin pointed out on #python-dev that the builtin round function should be using _PyObject_LookupSpecial to look up the __round__ method.  Here's a fix.

----------
components: Interpreter Core
files: round_descriptor.patch
keywords: patch
messages: 186813
nosy: mark.dickinson
priority: normal
severity: normal
stage: patch review
status: open
title: 'round' function doesn't honour a descriptor __round__
type: behavior
versions: Python 3.3, Python 3.4
Added file: http://bugs.python.org/file29820/round_descriptor.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17722>
_______________________________________


More information about the New-bugs-announce mailing list