diff options
author | Skip Montanaro <skip@pobox.com> | 2006-04-20 01:29:48 (GMT) |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2006-04-20 01:29:48 (GMT) |
commit | 94785ef14294e9d924c9ceee3d6f9082d4555f28 (patch) | |
tree | 5953b37130e2af4a1cd7ebd5f80784962e97b750 /Doc | |
parent | d0b8e83dc5b92e71d08d39298641d679be419dd8 (diff) | |
download | cpython-94785ef14294e9d924c9ceee3d6f9082d4555f28.zip cpython-94785ef14294e9d924c9ceee3d6f9082d4555f28.tar.gz cpython-94785ef14294e9d924c9ceee3d6f9082d4555f28.tar.bz2 |
Correct implementation and documentation of os.confstr. Add a simple test
case. I've yet to figure out how to provoke a None return I can test.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libos.tex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/lib/libos.tex b/Doc/lib/libos.tex index ebe3021..9ded3ae 100644 --- a/Doc/lib/libos.tex +++ b/Doc/lib/libos.tex @@ -1844,14 +1844,14 @@ Return string-valued system configuration values. string which is the name of a defined system value; these names are specified in a number of standards (\POSIX, \UNIX{} 95, \UNIX{} 98, and others). Some platforms define additional names as well. The names -known to the host operating system are given in the +known to the host operating system are given as the keys of the \code{confstr_names} dictionary. For configuration variables not included in that mapping, passing an integer for \var{name} is also accepted. Availability: Macintosh, \UNIX. -If the configuration value specified by \var{name} isn't defined, the -empty string is returned. +If the configuration value specified by \var{name} isn't defined, +\code{None} is returned. If \var{name} is a string and is not known, \exception{ValueError} is raised. If a specific value for \var{name} is not supported by the |