On 17.03.16 21:11, Guido van Rossum wrote: > This will raise SyntaxError if the encoding is unknown. That needs to > be caught in mypy's case and then it needs to get the line number from > the exception. Good point. "lineno" and "offset" attributes of SyntaxError is set to None by tokenize.detect_encoding() and to 0 by CPython interpreter. They should be set to useful values.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4