Documentation? file/open with tea

Eric Pederson whereU at now.com
Sun Sep 19 16:50:10 EDT 2004


"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
:::::::::::::::::::::::::::::::::::



More information about the Python-list mailing list