mirror of
https://github.com/davidhalter/jedi.git
synced 2026-11-04 20:32:51 +08:00
1 parent
5ff7e3dbbe
commit
4c2d1ea7e7
4 files changed
+21
-1
No files matched your search
@@ -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