Author inada.naoki
Recipients benjamin.peterson, georg.brandl, inada.naoki, serhiy.storchaka, vstinner
Date 2017-02-08.09:08:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1486544892.3.0.51824922707.issue29463@psf.upfronthosting.co.za>
In-reply-to
Content
Oh, I misunderstood something.
patched Python 3.7 and system's Python 3.5 shows same output for code below.
I'll check what is actually changed.

inada-n@x250 ~/w/p/ast-docstring> cat -n x.py 
     1	"""module docstring"""
     2	
     3	def func():
     4	    """func docstring"""
     5	
     6	def func2():
     7	    """func docstring"""
     8	    1+1
     9	
    10	print(func.__code__.co_firstlineno)
    11	print(func.__code__.co_lnotab)
    12	print(func2.__code__.co_firstlineno)
    13	print(func2.__code__.co_lnotab)
inada-n@x250 ~/w/p/ast-docstring> ./python x.py 
3
b''
6
b'\x00\x02'
inada-n@x250 ~/w/p/ast-docstring> /usr/bin/python3 x.py 
3
b''
6
b'\x00\x02'
History
Date User Action Args
2017-02-08 09:08:12inada.naokisetrecipients: + inada.naoki, georg.brandl, vstinner, benjamin.peterson, serhiy.storchaka
2017-02-08 09:08:12inada.naokisetmessageid: <1486544892.3.0.51824922707.issue29463@psf.upfronthosting.co.za>
2017-02-08 09:08:12inada.naokilinkissue29463 messages
2017-02-08 09:08:12inada.naokicreate