more extensive __file__ tests, #408
This commit is contained in:
1 parent
08b48807e9
commit
a717981679
1 file changed
+10
-2
@@ -319,10 +319,18 @@ else:
|
|||||||
a
|
a
|
||||||
|
|
||||||
# -----------------
|
# -----------------
|
||||||
# magic methods
|
# module underscore descriptors
|
||||||
# -----------------
|
# -----------------
|
||||||
|
|
||||||
def magic_method():
|
def underscore():
|
||||||
import keyword
|
import keyword
|
||||||
#? ['__file__']
|
#? ['__file__']
|
||||||
keyword.__file__
|
keyword.__file__
|
||||||
|
#? str()
|
||||||
|
keyword.__file__
|
||||||
|
|
||||||
|
# Does that also work for the our own module?
|
||||||
|
#? ['__file__']
|
||||||
|
__file__
|
||||||
|
#? str()
|
||||||
|
__file__
|
||||||
Reference in new issue
Block a user