Since (boh) the module "keyword" chenged: there is no more a
dict called "kwdict". The following patch fixed the problem.
actually there is a difference w.r.t. the attribute
behaviour: if i define "aaaaa" and "aaaab", pressing
"aa<tab>" shows the possible completions, but it doesn't
complete up to "aaaa". When the prefix is not ambiguous, the
word is fully completed.
btw, is this project still alive?
@@ -339,7 +339,10 @@
"""return (interactive) global scope for a module."""
scope = vars(__builtin__)
scope.update(vars(module))
- scope.update(keyword.kwdict)
+ if hasattr(keyword, 'kwdict'):
+ scope.update(keyword.kwdict)
+ elif hasattr(keyword, 'kwlist'):
+ scope.update(dict([ (k, k) for k in keyword.kwlist ]))
return scope
def docstring(obj):
|