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
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@
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('
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