mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-18 06:19:39 +08:00
builtin mixins support (functions custom defined)
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
|
||||
def next(iterator, default=None):
|
||||
if hasattr("next"):
|
||||
return iterator.next()
|
||||
else:
|
||||
return iterator.__next__()
|
||||
return default
|
||||
Reference in New Issue
Block a user