[issue14638] pydoc error on instance of a custom class

2012-04-23 Thread R. David Murray

R. David Murray  added the comment:

Thanks Peter.

--
resolution:  -> fixed
stage: commit review -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14638] pydoc error on instance of a custom class

2012-04-23 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 2a35dfbe3d99 by R David Murray in branch '3.2':
#14638: pydoc now treats non-str __name__ as None instead of raising
http://hg.python.org/cpython/rev/2a35dfbe3d99

New changeset 86b4b54bb0fa by R David Murray in branch 'default':
merge #14638: pydoc now treats non-str __name__ as None instead of raising
http://hg.python.org/cpython/rev/86b4b54bb0fa

New changeset 501651b93cb0 by R David Murray in branch '2.7':
#14638: pydoc now treats non-str __name__ as None instead of raising
http://hg.python.org/cpython/rev/501651b93cb0

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14638] pydoc error on instance of a custom class

2012-04-23 Thread R. David Murray

Changes by R. David Murray :


--
assignee:  -> r.david.murray
nosy: +r.david.murray
stage:  -> commit review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14638] pydoc error on instance of a custom class

2012-04-21 Thread Peter Otten

Peter Otten <__pete...@web.de> added the comment:

Patch upload, second attempt.

--
keywords: +patch
nosy: +peter.otten
Added file: http://bugs.python.org/file25298/render_doc.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14638] pydoc error on instance of a custom class

2012-04-20 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +eric.araujo

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14638] pydoc error on instance of a custom class

2012-04-20 Thread Florent Xicluna

New submission from Florent Xicluna :

pydoc fails on custom instances in specific cases. (When instance __name__ does 
not resolve to a str).

This is a small example:

>>> import pydoc
>>> class A:
...   def __getattr__(self, name):
... return True
... 
>>> print(pydoc.render_doc(A))
Python Library Documentation: class A in module __main__
(...)
>>> print(pydoc.render_doc(A()))
Traceback (most recent call last):
  File "", line 1, in 
  File "./Lib/pydoc.py", line 1534, in render_doc
if name and '.' in name:
TypeError: argument of type 'bool' is not iterable

--
components: Library (Lib)
messages: 158887
nosy: flox
priority: normal
severity: normal
status: open
title: pydoc error on instance of a custom class
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com