1 """Word completion for CMS Software. 2 Based on rlcompleter from Python 2.4.1. Included additional namespace for not loaded modules 3 Please read license in your lcg external python version 5 benedikt.hegner@cern.ch 8 from __future__
import absolute_import
9 from __future__
import print_function
17 __all__ = [
"CMSCompleter"]
22 if namespace
and not isinstance(namespace, dict):
23 raise TypeError(
'namespace must be a dictionary')
35 from .
import namespaceDict
38 print(
'Could not load CMS namespace')
42 """Compute matches when text is a simple name. 44 Return a list of all keywords, built-in functions and names currently 45 defined in self.namespace and self.cmsnamespace that match. 51 for list
in [keyword.kwlist,
55 if word[:n] == text
and word !=
"__builtins__":
61 readline.parse_and_bind(
'tab: complete')
def global_matches(self, text)
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
def __init__(self, namespace=None)