a (temporary) solution for the __file__ access issues in imported modules, see #408

This commit is contained in:
Dave Halter
2014-05-19 01:01:56 +02:00
parent 709c53a679
commit 08b48807e9
5 changed files with 41 additions and 4 deletions

View File

@@ -46,8 +46,8 @@ def scope_nested():
#? ['sqrt']
import_tree.pkg.sqrt
#? ['a', 'pkg']
import_tree.
#? ['pkg']
import_tree.p
#? float()
import_tree.pkg.mod1.a
@@ -317,3 +317,12 @@ else:
a = not_existing_import
#?
a
# -----------------
# magic methods
# -----------------
def magic_method():
import keyword
#? ['__file__']
keyword.__file__