brainpy.tools
module
AST-to-Code
|
Decompiles an AST into Python code. |
Code Tools
|
|
|
|
|
Return all the identifiers in a given string |
|
|
|
|
|
Applies a dict of word substitutions. |
|
Check whether the function is a |
|
Get the main function _code string. |
|
|
|
New Dict
|
Python dictionaries with advanced dot notation access. |
- class brainpy.tools.DictPlus(*args, **kwargs)[source]
Python dictionaries with advanced dot notation access.
For example:
>>> d = DictPlus({'a': 10, 'b': 20}) >>> d.a 10 >>> d['a'] 10 >>> d.c # this will raise a KeyError KeyError: 'c' >>> d.c = 30 # but you can assign a value to a non-existing item >>> d.c 30
Name Checking
|
|
|
Other Tools
|