[Python-Dev] Proposal for new core module: UserFIle (original) (raw)

Keith Dart kdart at kdart.com
Thu Dec 11 17:56:50 EST 2003


On Thu, 2003-12-11 at 14:51, Brett C. wrote:

Keith Dart wrote: > This module lets you explicitly create a text data file for any > platform. The universal newline feature of python is for Python modules > only, and lets you transparently import and exec Python source files > with the different line ending formats. That is a different thing. >

Not true. Python 2.3 added the "U" option for file opening to use universal newline support for any file you open. See http://www.python.org/doc/2.3/whatsnew/node7.html .

Whups, something new! Anyway, that link doesn't say anything about writing, only reading. It does not appear that you can specify what platform to write to with U mode.

-- -- ------------------------------------------------------------------------- Keith Dart <mailto:kdart at kdart.com> <http://www.kdart.com/>

Public key ID: B08B9D2C Public key: <http://www.kdart.com/~kdart/public.key>

-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mail.python.org/pipermail/python-dev/attachments/20031211/a6a5c62f/attachment.bin



More information about the Python-Dev mailing list