[Python-Dev] eval and triple quoted strings (original) (raw)
Benjamin Peterson benjamin at python.org
Tue Jun 18 03:28:59 CEST 2013
- Previous message: [Python-Dev] eval and triple quoted strings
- Next message: [Python-Dev] eval and triple quoted strings
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
2013/6/17 Éric Araujo <merwok at netwok.org>:
Le 17/06/2013 20:49, Benjamin Peterson a écrit :
Reading Python coding cookies is outside the purview of TextIOWrapper. However, it would be good to have a function in the stdlib to read a python source file to Unicode; I've definitely implemented that several times. IIUC you want http://docs.python.org/3/library/tokenize#tokenize.open (3.2+).
Yep. :)
-- Regards, Benjamin
- Previous message: [Python-Dev] eval and triple quoted strings
- Next message: [Python-Dev] eval and triple quoted strings
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]