This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients ned.deily, serhiy.storchaka, taleinat, terry.reedy
Date 2020-06-29.05:36:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1593408981.4.0.110043340245.issue41152@roundup.psfhosted.org>
In-reply-to
Content
I got the 'within iomenu' part a bit wrong.  To open a file to edit, iomenu.IOBinging('IO').open tells filelist to use IO.loadfile.  This reads bytes 'so that we can handle end-of-line convention ourselves'.  (I suspect that this predates 3.x and might not be needed any more.)  IO.loadfile calls IO._decode which looks for a utf-8 BOM, looks for a coding cookie, tries ascii (not needed in 3.x), tries utf-8, and asks the user for an encoding, using iomenu.encoding as the initial value in the query box.  This box is deprecated in the sense that for 3.x, a python file should either be utf-8 or have an encoding cookie.
History
Date User Action Args
2020-06-29 05:36:21terry.reedysetrecipients: + terry.reedy, taleinat, ned.deily, serhiy.storchaka
2020-06-29 05:36:21terry.reedysetmessageid: <1593408981.4.0.110043340245.issue41152@roundup.psfhosted.org>
2020-06-29 05:36:21terry.reedylinkissue41152 messages
2020-06-29 05:36:21terry.reedycreate