[issue22357] inspect module documentation makes no reference to __qualname__ attribute

2014-09-07 Thread Iestyn Elfick
Changes by Iestyn Elfick : -- title: inspect module documentation make no reference to __qualname__ attribute -> inspect module documentation makes no reference to __qualname__ attribute ___ Python tracker <http://bugs.python.org/issu

[issue22357] inspect module documentation make no reference to __qualname__ attribute

2014-09-07 Thread Iestyn Elfick
New submission from Iestyn Elfick: The documentation for the 'inspect' module should list the '__qualname__' attribute for 'method', 'function' and 'builtin' types in section '29.12.1 Types and members'. -- assignee: docs@

[issue22355] inconsistent results with inspect.getsource() / inspect.getsourcelines()

2014-09-07 Thread Iestyn Elfick
Iestyn Elfick added the comment: Possible fix: --- /usr/lib64/python3.3/inspect.py 2014-06-30 19:21:52.0 +0200 +++ inspect.py 2014-09-07 17:41:29.463936079 +0200 @@ -600,7 +600,8 @@ if not hasattr(object, 'co_firstlineno'): raise IOError('

[issue22355] inconsistent results with inspect.getsource() / inspect.getsourcelines()

2014-09-07 Thread Iestyn Elfick
New submission from Iestyn Elfick: The functions inspect.getsource() and inspect.getsourcelines() return inconsistent results for frames corresponding to class definitions within a function. Test code: import sys import inspect def case1(): class C: def __init__(self