mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-31 04:05:21 +08:00
Document api.Interpreter._genname
This commit is contained in:
@@ -544,7 +544,11 @@ class Interpreter(Script):
|
||||
count = itertools.count()
|
||||
fmt = '*jedi-{0}*'.format
|
||||
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:
|
||||
self._import_raw_namespace(ns)
|
||||
|
||||
Reference in New Issue
Block a user