[issue9771] add an optional "default" argument to tokenize.detect_encoding

2014-11-02 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailin

[issue9771] add an optional "default" argument to tokenize.detect_encoding

2012-10-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > I never understood the usage of the second item. IMO it should be None if no > cookie found. UTF-8 is the default source encoding for Python 3. -- nosy: +serhiy.storchaka ___ Python tracker

[issue9771] add an optional "default" argument to tokenize.detect_encoding

2012-07-21 Thread Florent Xicluna
Changes by Florent Xicluna : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9771] add an optional "default" argument to tokenize.detect_encoding

2010-12-30 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue9771] add an optional "default" argument to tokenize.detect_encoding

2010-11-22 Thread STINNER Victor
STINNER Victor added the comment: > no cookie found, returns ('utf-8', [line1, line2]) I never understood the usage of the second item. IMO it should be None if no cookie found. -- ___ Python tracker

[issue9771] add an optional "default" argument to tokenize.detect_encoding

2010-11-21 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue9771] add an optional "default" argument to tokenize.detect_encoding

2010-09-04 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue9771] add an optional "default" argument to tokenize.detect_encoding

2010-09-04 Thread Florent Xicluna
New submission from Florent Xicluna : The function tokenize.detect_encoding() detects the encoding either in the coding cookie or in the BOM. If no encoding is found, it returns 'utf-8': When result is 'utf-8', there's no (easy) way to know if the encoding was really detected in the file, or