[issue19696] Merge all (non-syntactic) import-related tests into test_importlib

2019-06-16 Thread Gil Forcada Codinachs
Gil Forcada Codinachs added the comment: At least test_namespace_pkgs is already moved, see https://bugs.python.org/issue21097 Should then this issue be closed? I see that there are a few other tests that have import on its name and are outside either test_import or test_importlib

[issue9267] Update pickle opcode documentation in pickletools for 3.x

2019-06-16 Thread Gil Forcada Codinachs
Gil Forcada Codinachs added the comment: pickletools documentation is here: https://docs.python.org/3/library/pickletools.html#module-pickletools Sources are here: https://github.com/python/cpython/blob/master/Doc/library/pickletools.rst -- nosy: +gforcada

[issue33211] lineno and col_offset are wrong on function definitions with decorators

2018-04-02 Thread Gil Forcada
New submission from Gil Forcada <gil.gn...@gmail.com>: Given the following code: class MyClass(object): @property def my_function(self): pass Parsing it with ast module, the lineno and col_offset of the ast.FunctionDef is reported to be where the decorator starts (i.e. line 3