INADA Naoki added the comment:
This patch affects firstlineno and lnotab of module and class, but not
functions.
module:
-<code object <module> at 0x7f053a8f8b70, file "Lib/importlib/_bootstrap.py",
line 8>
+<code object <module> at 0x7fdefbf10340, file "Lib/importlib/_bootstrap.py",
line 25>
filename Lib/importlib/_bootstrap.py
-firstlineno: 8
+firstlineno: 25
-lnotab:
b'\x04\x11\x04\x02\x08\x08\x08\x07\x04\x02\x04\x03\x10\x04\x0eD\x0e\x15\x0e\x13\x08\x13\x08\x13\x08\x0b\x0e\x08\x08\x0b\x08\x0c\x08\x10\x08$\x0e\x1b\x0ee\x10\x1a\x06\x03\n-\x0e<\x08\x11\x08\x11\x08\x19\x08\x1d\x08\x17\x08\x10\x0eI\x0eM\x0e\r\x08\t\x08\t\n/\x08\x14\x04\x01\x08\x02\x08\x1b\x08\x06\n\x19\x08\x1f\x08\x1b\x12#\x08\x07\x08/'
- 8 0 LOAD_CONST 0 ('Core implementation of
import.\n\nThis module is NOT meant to be directly imported! It has been
designed such\nthat it can be bootstrapped into Python as the implementation of
import. As\nsuch it requires the injection of specific modules and attributes
in order to\nwork. One should use importlib as the public-facing version of
this module.\n\n')
+lnotab:
b'\x04\x00\x04\x02\x08\x08\x08\x07\x04\x02\x04\x03\x10\x04\x0eD\x0e\x15\x0e\x13\x08\x13\x08\x13\x08\x0b\x0e\x08\x08\x0b\x08\x0c\x08\x10\x08$\x0e\x1b\x0ee\x10\x1a\x06\x03\n-\x0e<\x08\x11\x08\x11\x08\x19\x08\x1d\x08\x17\x08\x10\x0eI\x0eM\x0e\r\x08\t\x08\t\n/\x08\x14\x04\x01\x08\x02\x08\x1b\x08\x06\n\x19\x08\x1f\x08\x1b\x12#\x08\x07\x08/'
+ 25 0 LOAD_CONST 0 ('Core implementation of
import.\n\nThis module is NOT meant to be directly imported! It has been
designed such\nthat it can be bootstrapped into Python as the implementation of
import. As\nsuch it requires the injection of specific modules and attributes
in order to\nwork. One should use importlib as the public-facing version of
this module.\n\n')
2 STORE_NAME 0 (__doc__)
-
- 25 4 LOAD_CONST 1 (None)
+ 4 LOAD_CONST 1 (None)
6 STORE_GLOBAL 1 (_bootstrap_external)
class:
-<code object _ModuleLock at 0x7f053ab61db0, file
"Lib/importlib/_bootstrap.py", line 51>
+<code object _ModuleLock at 0x7fdefc61c580, file
"Lib/importlib/_bootstrap.py", line 51>
filename Lib/importlib/_bootstrap.py
firstlineno: 51
-lnotab: b'\x08\x04\x04\x02\x08\x08\x08\x0c\x08\x19\x08\r'
+lnotab: b'\x0c\x06\x08\x08\x08\x0c\x08\x19\x08\r'
51 0 LOAD_NAME 0 (__name__)
2 STORE_NAME 1 (__module__)
4 LOAD_CONST 0 ('_ModuleLock')
6 STORE_NAME 2 (__qualname__)
-
- 55 8 LOAD_CONST 1 ('A recursive lock implementation
which is able to detect deadlocks\n (e.g. thread 1 trying to take locks A
then B, and thread 2 trying to\n take locks B then A).\n ')
+ 8 LOAD_CONST 1 ('A recursive lock implementation
which is able to detect deadlocks\n (e.g. thread 1 trying to take locks A
then B, and thread 2 trying to\n take locks B then A).\n ')
10 STORE_NAME 3 (__doc__)
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue29463>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com