mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 06:24:27 +08:00
possible to return dynamic arrays
This commit is contained in:
@@ -89,3 +89,19 @@ class Counter:
|
||||
for c in Counter(3, 8):
|
||||
#? int()
|
||||
print c
|
||||
|
||||
# -----------------
|
||||
# tuples
|
||||
# -----------------
|
||||
def gen():
|
||||
if a:
|
||||
yield 1, ""
|
||||
else:
|
||||
yield 2, 1.0
|
||||
|
||||
|
||||
a, b = next(gen())
|
||||
#? int()
|
||||
a
|
||||
#? str() float()
|
||||
b
|
||||
|
||||
Reference in New Issue
Block a user