[docs] missing documentation on tempfile.NamedTempFile

Jelte Jansen jelte at isc.org
Tue May 18 17:27:56 CEST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi,

in the docs for python 3.1.2, the argument list for
tempfile.NamedTemporaryFile()
is incomplete on
http://docs.python.org/py3k/library/tempfile.html

It does not mention the encoding and newline arguments.

I haven't checked the other functions there but I assume this is not the
only one (nor have I checked other versions, sorry).

I found this out because I got quite unexpected errors when not using
named parameters, which I know I should, but I was trying to find out
why something else didn't work for me.

On a related note, another nice addition would be to mention that if the
prefix parameter is absolute, dir is ignored :)

Thanks,

Jelte
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvysfwACgkQ4nZCKsdOncX8owCg1wpMi3XSrSiHxWA8zDqvZGqx
5nAAn3kZ8y0vL1Eprh+0yyIgLYRbTb+S
=FFMD
-----END PGP SIGNATURE-----


More information about the docs mailing list