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+). Regards _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com