On Thu, Jan 7, 2010 at 10:12 PM, Tres Seaver <tsea...@palladion.com> wrote: > The BOM should not be seekeable if the file is opened with the proposed > "guess encoding from BOM" mode: it isn't properly part of the stream at > all in that case.
This feels about right to me. There are still questions though: immediately after opening a file with a BOM, what should .tell() return? And regardless of that, .seek(0) should put the file in that same initial state. -- --Guido van Rossum (python.org/~guido) _______________________________________________ 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