[issue10335] tokenize.open(): open a file with encoding detected from a coding cookie
report at bugs.python.org
Mon Nov 8 16:35:48 CET 2010
Éric Araujo <merwok at netwok.org> added the comment:
1. Agreed on both. Extraneous blank lines seem to be favored by people who need to work around bugs in their editor.
2. Yes, “_” is recommended for a discarded object.
4. Even better: print('# coding:', encoding, file=fp). No intermediary string!
title: tokenize.open(): open a Python file with the right encoding -> tokenize.open(): open a file with encoding detected from a coding cookie
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list