[issue16440] Exception type

New submission from Yongzhi Pan: http://docs.python.org/3/library/stdtypes.html#methods "Attempting to set a method attribute results in a TypeError being raised." But in the example, if we do c.method.whoami = 'c', we get AttributeError instead of TypeError. ---------- assignee: docs@python components: Documentation messages: 175174 nosy: docs@python, fossilet priority: normal severity: normal status: open title: Exception type versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16440> _______________________________________

Changes by Ezio Melotti <ezio.melotti@gmail.com>: ---------- assignee: docs@python -> ezio.melotti nosy: +ezio.melotti _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16440> _______________________________________

Roundup Robot added the comment: New changeset 8b181c75792f by Ezio Melotti in branch '2.7': #16440: fix exception type and clarify example. http://hg.python.org/cpython/rev/8b181c75792f New changeset bb39ca6bcd7a by Ezio Melotti in branch '3.2': #16440: fix exception type and clarify example. http://hg.python.org/cpython/rev/bb39ca6bcd7a New changeset 8c7f2f6f3375 by Ezio Melotti in branch '3.3': #16440: merge with 3.2. http://hg.python.org/cpython/rev/8c7f2f6f3375 New changeset d170844a363f by Ezio Melotti in branch 'default': #16440: merge with 3.3. http://hg.python.org/cpython/rev/d170844a363f ---------- nosy: +python-dev _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16440> _______________________________________

Ezio Melotti added the comment: Fixed, thanks for the report! ---------- resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> enhancement _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16440> _______________________________________
participants (3)
-
Ezio Melotti
-
Roundup Robot
-
Yongzhi Pan