From 29001ff2341fe10a0f97c662b31c061cfad4fb5e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Fri, 1 Mar 2002 10:47:37 +0000 Subject: [PATCH] Patch #523268, #522027: return enhanced tuples. --- Doc/lib/libpwd.tex | 7 ++++--- Misc/NEWS | 2 ++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Doc/lib/libpwd.tex b/Doc/lib/libpwd.tex index ae2551b4d4..1e7a1c8a60 100644 --- a/Doc/lib/libpwd.tex +++ b/Doc/lib/libpwd.tex @@ -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{}), 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{}): -\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} diff --git a/Misc/NEWS b/Misc/NEWS index 22b0844404..15644b8b58 100644 --- 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__ -- 2.50.0