Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 29001ff

Browse files
committed
Patch #523268, #522027: return enhanced tuples.
1 parent dbd55b3 commit 29001ff

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

Doc/lib/libpwd.tex

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ \section{\module{pwd} ---
88
This module provides access to the \UNIX{} user account and password
99
database. It is available on all \UNIX{} versions.
1010

11-
Password database entries are reported as 7-tuples containing the
12-
following items from the password database (see \code{<pwd.h>}), in order:
11+
Password database entries are reported as a tuple-like object, whose
12+
attributes correspond to the members of the \code{passwd} structure
13+
(Attribute field below, see \code{<pwd.h>}):
1314

14-
\begin{tableiii}{r|l|l}{textrm}{Index}{Field}{Meaning}
15+
\begin{tableiii}{r|l|l}{textrm}{Index}{Attribute}{Meaning}
1516
\lineiii{0}{\code{pw_name}}{Login name}
1617
\lineiii{1}{\code{pw_passwd}}{Optional encrypted password}
1718
\lineiii{2}{\code{pw_uid}}{Numerical user ID}

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Core and builtins
1717

1818
Extension modules
1919

20+
- pwd and grp return enhanced tuples now, with symbolic field names.
21+
2022
- array.array is now a type object. A new format character
2123
'u' indicates Py_UNICODE arrays. For those, .tounicode and
2224
.fromunicode methods are available. Arrays now support __iadd__

0 commit comments

Comments
 (0)