You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Benefits: - More correct than re.sub() - Better handling of trailing whitespace - Recognises doc-strings regardless of quoting style Limitations: - Still not entirely correct - Creates a syntax error when function/class body is only a docstring - Doesn't handle indented docstrings yet - Slower by 50x - 8-10 ms vs 0.2 ms for re.sub() - Not much scope for improving this, tokenize is 100% pure Python - Complex state machine, harder to understand - Higher line count in parent.py - Untested with Mitogen parent on Python 2.x and child on Python 2.x+y No change - Only requires Python stdlib modules |
8 years ago | |
|---|---|---|
| ansible_mitogen | 8 years ago | |
| docs | 8 years ago | |
| examples | 8 years ago | |
| mitogen | 8 years ago | |
| tests | 8 years ago | |
| .gitignore | 8 years ago | |
| .lgtm.yml | 8 years ago | |
| .travis.yml | 8 years ago | |
| LICENSE | 8 years ago | |
| README.md | 8 years ago | |
| dev_requirements.txt | 8 years ago | |
| preamble_size.py | 8 years ago | |
| setup.cfg | 8 years ago | |
| setup.py | 8 years ago | |
| test.sh | 8 years ago | |
| tox.ini | 8 years ago | |