[issue10335] tokenize.open(): open a file with encoding detected from a coding cookie
Éric Araujo
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.
3. Agreed.
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>
<http://bugs.python.org/issue10335>
_______________________________________
More information about the Python-bugs-list
mailing list