Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Dev
'text' mode rears its ugly head again
 

Index | Next | Previous | View Flat


janssen at parc

Sep 16, 2007, 4:01 PM


Views: 292
Permalink
'text' mode rears its ugly head again

I've checked in the asyncore SSL patch, and the Windows buildbots are
failing on the HTTPS test. I believe it's due to this insane
differentiation between between text files and binary files, a bad
idea introduced by Windows and perpetuated (apparently) by Python. I
can't believe this wasn't eliminated in py3k!

Anyway, I think what's going on is that the two data blobs the test
compares, one read from a file opened with "open(filename, 'r')", and
the other a data stream read from an HTTP response "file" returned
from urllib.urlopen(), have different line-endings. Of course, this
only matters on Windows; on UNIX, the faux differentiation doesn't
exist.

Bill

_______________________________________________
Python-Dev mailing list
Python-Dev[at]python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/list-python-dev%40lists.gossamer-threads.com

Subject User Time
'text' mode rears its ugly head again janssen at parc Sep 16, 2007, 4:01 PM
    Re: 'text' mode rears its ugly head again janssen at parc Sep 16, 2007, 5:16 PM
    Re: 'text' mode rears its ugly head again ncoghlan at gmail Sep 17, 2007, 3:53 AM
        Re: 'text' mode rears its ugly head again janssen at parc Sep 17, 2007, 11:08 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.