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

Serhiy Storchaka storchaka at gmail.com
Thu Mar 17 08:04:06 EDT 2016

On 17.03.16 02:29, Guido van Rossum wrote:
> I've updated the PEP. Please review. I decided not to update the
> Unicode howto (the thing is too obscure). Serhiy, you're probably in a
> better position to fix the code looking for cookies to pick the first
> one if there are two on the same line (or do whatever you think should
> be done there).


> Should we recommend that everyone use tokenize.detect_encoding()?

Likely. However the interface of tokenize.detect_encoding() is not very 

More information about the Python-Dev mailing list