classification
Title: Exception type
Type: enhancement Stage: resolved
Components: Documentation Versions: Python 3.2, Python 3.3, Python 3.4, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: ezio.melotti Nosy List: docs@python, ezio.melotti, fossilet, python-dev
Priority: normal Keywords:

Created on 2012-11-08 15:22 by fossilet, last changed 2012-11-08 23:10 by ezio.melotti. This issue is now closed.

Messages (3)
msg175174 - (view) Author: Yongzhi Pan (fossilet) * Date: 2012-11-08 15:22
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.
msg175204 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-11-08 23:09
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
msg175206 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2012-11-08 23:10
Fixed, thanks for the report!
History
Date User Action Args
2012-11-08 23:10:57ezio.melottisetstatus: open -> closed
type: enhancement
messages: + msg175206

resolution: fixed
stage: resolved
2012-11-08 23:09:48python-devsetnosy: + python-dev
messages: + msg175204
2012-11-08 22:29:03ezio.melottisetassignee: docs@python -> ezio.melotti

nosy: + ezio.melotti
2012-11-08 15:22:55fossiletcreate