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 ocean-city
Recipients ocean-city, pitrou, r_mosaic
Date 2009-03-18.16:55:20
SpamBayes Score 9.724642e-07
Marked as misclassified No
Message-id <>
With following patch for investigation, (release30-maint)

Index: Lib/
--- Lib/	(revision 70450)
+++ Lib/	(working copy)
@@ -57,6 +57,7 @@
 import os
 import abc
+import sys
 import codecs
 import _fileio
 # Import _thread instead of threading to reduce startup cost
@@ -931,6 +932,7 @@
             while True:
                 # Read until EOF or until read() would block.
                 chunk =
+                print("============>", repr(chunk), file=sys.stderr)
                 if chunk in empty_values:
                     nodata_val = chunk


I got this result.

============> b'abc\n'
============> b''

To get empty chunk, we need to hit CTRL-Z twice.
Date User Action Args
2009-03-18 16:55:24ocean-citysetrecipients: + ocean-city, pitrou, r_mosaic
2009-03-18 16:55:23ocean-citysetmessageid: <>
2009-03-18 16:55:21ocean-citylinkissue5505 messages
2009-03-18 16:55:20ocean-citycreate