mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-09 07:01:28 +08:00
@@ -227,3 +227,12 @@ z = zipfile.ZipFile("foo")
|
||||
# It's too slow. So we don't run it at the moment.
|
||||
##? ['upper']
|
||||
z.read('name').upper
|
||||
|
||||
# -----------------
|
||||
# contextlib
|
||||
# -----------------
|
||||
|
||||
import contextlib
|
||||
with contextlib.closing('asd') as string:
|
||||
#? str()
|
||||
string
|
||||
|
||||
Reference in New Issue
Block a user