]> granicus.if.org Git - python/commitdiff
Patch #523268, #522027: return enhanced tuples.
authorMartin v. Löwis <martin@v.loewis.de>
Fri, 1 Mar 2002 10:47:37 +0000 (10:47 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Fri, 1 Mar 2002 10:47:37 +0000 (10:47 +0000)
Doc/lib/libpwd.tex
Misc/NEWS

index ae2551b4d465924320f7fb1c8800b4d74fce339b..1e7a1c8a60adec6bd5f35018bd0eaa7bccceb6e1 100644 (file)
@@ -8,10 +8,11 @@
 This module provides access to the \UNIX{} user account and password
 database.  It is available on all \UNIX{} versions.
 
-Password database entries are reported as 7-tuples containing the
-following items from the password database (see \code{<pwd.h>}), in order:
+Password database entries are reported as a tuple-like object, whose
+attributes correspond to the members of the \code{passwd} structure
+(Attribute field below, see \code{<pwd.h>}):
 
-\begin{tableiii}{r|l|l}{textrm}{Index}{Field}{Meaning}
+\begin{tableiii}{r|l|l}{textrm}{Index}{Attribute}{Meaning}
   \lineiii{0}{\code{pw_name}}{Login name}
   \lineiii{1}{\code{pw_passwd}}{Optional encrypted password}
   \lineiii{2}{\code{pw_uid}}{Numerical user ID}
index 22b08444040a62ee9941c1b47bb75d5d3aa5c551..15644b8b58cdf29f4f10bf0feb8bea5d3bdade23 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -17,6 +17,8 @@ Core and builtins
 
 Extension modules
 
+- pwd and grp return enhanced tuples now, with symbolic field names.
+
 - array.array is now a type object. A new format character
   'u' indicates Py_UNICODE arrays. For those, .tounicode and
   .fromunicode methods are available. Arrays now support __iadd__