mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 22:44:27 +08:00
more extensive __file__ tests, #408
This commit is contained in:
@@ -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