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.
a1e9b9e8db
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 |
7 years ago | |
---|---|---|
ansible_mitogen | 7 years ago | |
docs | 7 years ago | |
examples | 7 years ago | |
mitogen | 7 years ago | |
tests | 7 years ago | |
.gitignore | 7 years ago | |
.lgtm.yml | 7 years ago | |
.travis.yml | 7 years ago | |
LICENSE | 7 years ago | |
README.md | 7 years ago | |
dev_requirements.txt | 7 years ago | |
preamble_size.py | 7 years ago | |
setup.cfg | 7 years ago | |
setup.py | 7 years ago | |
test.sh | 7 years ago | |
tox.ini | 7 years ago |