Documentation? file/open with tea
Eric Pederson
whereU at now.com
Sun Sep 19 16:50:10 EDT 2004
More information about the Python-list mailing list
Sun Sep 19 16:50:10 EDT 2004
- Previous message (by thread): Documentation? file/open with tea
- Next message (by thread): memory allocation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Thomas D'Tak" wrote: > Python's documentation on 'open()' (resp. 'file()') says, that the first > two arguments are the same as for C's stdio's 'fopen()'. And on Windows > you will often find that fopen() supports 't' as a mode extension (like > the well known 'b' for binary mode): > > 'b': open file in binary (untranslated) mode > > 't': open file in text (translated) mode; > (e.g. look for Ctrl-z as EOF marker) > > Links: > > Python's file() resp. open(): > http://www.python.org/doc/2.3.4/lib/built-in-funcs.html#built-in-funcs > > (E.g.) Visual C++'s fopen(): > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_fopen.2c_._wfopen.asp > > HTH, Th. Thanks everyone... HTH? Yes, it really does, providing the great hint that the code I am looking at right now may have been largely Windows oriented... and may not be UNIX ready. Thanks! Eric ::::::::::::::::::::::::::::::::::: domainNot="@something.com" domainIs=domainNot.replace("s","z") ePrefix="".join([chr(ord(x)+1) for x in "do"]) mailMeAt=ePrefix+domainIs :::::::::::::::::::::::::::::::::::
- Previous message (by thread): Documentation? file/open with tea
- Next message (by thread): memory allocation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list