mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
more extensive __file__ tests, #408
This commit is contained in:
@@ -319,10 +319,18 @@ else:
|
||||
a
|
||||
|
||||
# -----------------
|
||||
# magic methods
|
||||
# module underscore descriptors
|
||||
# -----------------
|
||||
|
||||
def magic_method():
|
||||
def underscore():
|
||||
import 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