mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-12 17:10:14 +08:00
Document api.Interpreter._genname
This commit is contained in:
1 parent
fc79f0e258
commit
af10891096
1 file changed
+5
-1
+5
-1
@@ -544,7 +544,11 @@ class Interpreter(Script):
|
|||||||
count = itertools.count()
|
count = itertools.count()
|
||||||
fmt = '*jedi-{0}*'.format
|
fmt = '*jedi-{0}*'.format
|
||||||
self._genname = lambda: fmt(next(count))
|
self._genname = lambda: fmt(next(count))
|
||||||
"""Generate unique variable names to avoid name collision."""
|
"""
|
||||||
|
Generate unique variable names to avoid name collision.
|
||||||
|
To avoid name collision to already defined names, generated
|
||||||
|
names are invalid as Python identifier.
|
||||||
|
"""
|
||||||
|
|
||||||
for ns in namespaces:
|
for ns in namespaces:
|
||||||
self._import_raw_namespace(ns)
|
self._import_raw_namespace(ns)
|
||||||
|
|||||||
Reference in new issue
Block a user