A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2016-March/143538.html below:

[Python-Dev] What does a double coding cookie mean?

[Python-Dev] What does a double coding cookie mean? [Python-Dev] What does a double coding cookie mean?Serhiy Storchaka storchaka at gmail.com
Thu Mar 17 16:09:14 EDT 2016
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.


More information about the Python-Dev mailing list

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