• 2 min read
A hash inside a string is not a Python comment
The comment hook uses Python tokens to remove comments while preserving hashes in strings, docstrings, and its explicit shebang and coding exceptions.
The comment hook uses Python tokens to remove comments while preserving hashes in strings, docstrings, and its explicit shebang and coding exceptions.