Brett Cannon
3d25e16760
Issue #20152 : Port the pwd module to Argument Clinic.
12 years ago
Christian Heimes
af01f66817
Issue #16136 : Remove VMS support and VMS-related code
12 years ago
Victor Stinner
1c8f059019
Issue #18520 : Add a new PyStructSequence_InitType2() function, same than
PyStructSequence_InitType() except that it has a return value (0 on success,
-1 on error).
* PyStructSequence_InitType2() now raises MemoryError on memory allocation failure
* Fix also some calls to PyDict_SetItemString(): handle error
13 years ago
Serhiy Storchaka
da5c2a0646
Issue #4591 : Uid and gid values larger than 2**31 are supported now.
13 years ago
Serhiy Storchaka
e4ad8aacd1
Issue #4591 : Uid and gid values larger than 2**31 are supported now.
13 years ago
Serhiy Storchaka
55e2238272
Raise KeyError instead of OverflowError when getpwuid's argument is out of
uid_t range.
13 years ago
Serhiy Storchaka
7cf5599346
Issue #4591 : Uid and gid values larger than 2**31 are supported now.
13 years ago
Jesus Cea
14c81aba50
#16135 : Removal of OS/2 support (Modules/*)
13 years ago
Georg Brandl
71c23d4473
Include structseq.h in Python.h, and remove now-redundant includes in individual sources.
15 years ago
Alexander Belopolsky
b8de9fab30
Merged revisions 84106 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84106 | alexander.belopolsky | 2010-08-16 16:17:07 -0400 (Mon, 16 Aug 2010) | 1 line
Issue #8983 : Corrected docstrings.
........
16 years ago
Alexander Belopolsky
102594f7ff
Merged revisions 84106 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84106 | alexander.belopolsky | 2010-08-16 16:17:07 -0400 (Mon, 16 Aug 2010) | 1 line
Issue #8983 : Corrected docstrings.
........
16 years ago
Alexander Belopolsky
977a684c94
Issue #8983 : Corrected docstrings.
16 years ago
Victor Stinner
ae6265f8d0
Issue #8715 : Create PyUnicode_EncodeFSDefault() function: Encode a Unicode
object to Py_FileSystemDefaultEncoding with the "surrogateescape" error
handler, return a bytes object. If Py_FileSystemDefaultEncoding is not set,
fall back to UTF-8.
16 years ago
Antoine Pitrou
7f14f0d8a0
Recorded merge of revisions 81032 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r81032 | antoine.pitrou | 2010-05-09 17:52:27 +0200 (dim., 09 mai 2010) | 9 lines
Recorded merge of revisions 81029 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines
Untabify C files. Will watch buildbots.
........
................
16 years ago
Antoine Pitrou
f95a1b3c53
Recorded merge of revisions 81029 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines
Untabify C files. Will watch buildbots.
........
16 years ago
Antoine Pitrou
c7c96a90bc
Recorded merge of revisions 81029 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines
Untabify C files. Will watch buildbots.
........
16 years ago
Antoine Pitrou
c83ea137d7
Untabify C files. Will watch buildbots.
16 years ago
Benjamin Peterson
02a004ea1d
correct call
16 years ago
Victor Stinner
97c18ab6a5
Replace PyUnicode_Decode(buf, strlen(buf), Py_FileSystemDefaultEncoding,
"surrogateescape") by PyUnicode_DecodeFSDefault(val).
16 years ago
Benjamin Peterson
5cb038678f
Merged revisions 74727 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r74727 | benjamin.peterson | 2009-09-08 18:04:22 -0500 (Tue, 08 Sep 2009) | 1 line
#6865 fix ref counting in initialization of pwd module
........
17 years ago
Benjamin Peterson
8246968b12
tabbify
17 years ago
Benjamin Peterson
7f6d0834f9
#6865 fix ref counting in initialization of pwd module
17 years ago
Martin v. Löwis
e23c8683a5
Merged revisions 73016 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r73016 | martin.v.loewis | 2009-05-29 17:58:08 +0200 (Fr, 29 Mai 2009) | 2 lines
Issue #4873 : Fix resource leaks in error cases of pwd and grp.
........
17 years ago
Martin v. Löwis
416b262343
Merged revisions 73016 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r73016 | martin.v.loewis | 2009-05-29 17:58:08 +0200 (Fr, 29 Mai 2009) | 2 lines
Issue #4873 : Fix resource leaks in error cases of pwd and grp.
........
17 years ago
Martin v. Löwis
4f16d3b4ac
Issue #4873 : Fix resource leaks in error cases of pwd and grp.
17 years ago
Martin v. Löwis
b6a748b817
Issue #4859 : Implement PEP 383 for pwd, spwd, and grp.
17 years ago
Benjamin Peterson
e04b627a11
remove old undocumented compat interfaces in hashlib and pwd #5881
17 years ago
Martin v. Löwis
1a21451b1d
Implement PEP 3121: new module initialization and finalization API.
18 years ago
Gregory P. Smith
dd96db63f6
This reverts r63675 based on the discussion in this thread:
http://mail.python.org/pipermail/python-dev/2008-June/079988.html
Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names
in the spirit of 3.0 are available via a #define only. See the email thread.
18 years ago
Christian Heimes
593daf545b
Renamed PyString to PyBytes
18 years ago
Christian Heimes
217cfd1c86
Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases in intobject.h
18 years ago
Neal Norwitz
3d7a90dea1
Get the locale and pwd tests working on the Solaris box where there
are some unicode values used. I'm not sure if this is the correct
on all operating systems, but this works on Linux w/o unicode.
18 years ago
Neal Norwitz
eb8b3a6d61
Use unicode for password modules
19 years ago
Thomas Wouters
49fd7fa443
Merge p3yk branch with the trunk up to revision 45595. This breaks a fair
number of tests, all because of the codecs/_multibytecodecs issue described
here (it's not a Py3K issue, just something Py3K discovers):
http://mail.python.org/pipermail/python-dev/2006-April/064051.html
Hye-Shik Chang promised to look for a fix, so no need to fix it here. The
tests that are expected to break are:
test_codecencodings_cn
test_codecencodings_hk
test_codecencodings_jp
test_codecencodings_kr
test_codecencodings_tw
test_codecs
test_multibytecodec
This merge fixes an actual test failure (test_weakref) in this branch,
though, so I believe merging is the right thing to do anyway.
20 years ago
Martin v. Löwis
19ab6c98cf
Initialize structseq types only once.
20 years ago
Neal Norwitz
1ac754fa10
Check return result from Py_InitModule*(). This API can fail.
Probably should be backported.
20 years ago
Guido van Rossum
8ee3e5aa93
- Changes donated by Elemental Security to make it work on AIX 5.3
with IBM's 64-bit compiler (SF patch #1284289 ). This also closes SF
bug #105470 : test_pwd fails on 64bit system (Opteron).
21 years ago
Barry Warsaw
e1b1c87636
pwd_getpwuid(), pwd_getpwnam(): Patch # 868499, improvement to the error
messages.
22 years ago
Guido van Rossum
16b9fa8db3
- The pwd module incorrectly advertised its struct type as
struct_pwent; this has been renamed to struct_passwd. (The old name
is still supported for backwards compatibility.)
23 years ago
Martin v. Löwis
79acb9edfa
Patch #614055 : Support OpenVMS.
23 years ago
Martin v. Löwis
29275c9331
Deal with NULL fields in mkpwent.
24 years ago
Mark Hammond
fe51c6d66e
Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype
for Py_Main().
Thanks to Kalle Svensson and Skip Montanaro for the patches.
24 years ago
Martin v. Löwis
14f8b4cfcb
Patch #568124 : Add doc string macros.
24 years ago
Neal Norwitz
726e013eff
Remove unused variable reported by Walter Dörwald
24 years ago
Fred Drake
88c9344986
initpwd(): Clean up initialization, avoid PyModule_GetDict().
24 years ago
Neal Norwitz
ba3a16c6c3
Remove METH_OLDARGS:
Convert METH_OLDARGS -> METH_VARARGS: also PyArg_Parse -> PyArg_ParseTuple
Convert METH_OLDARGS -> METH_NOARGS: remove args parameter
Please review. All tests pass, but some modules don't have tests.
I spot checked various functions to try to make sure nothing broke.
24 years ago
Neil Schemenauer
cc07ec17a3
Add missing typecast.
24 years ago
Neal Norwitz
3a6f97850b
Remove many uses of PyArg_NoArgs macro, change METH_OLDARGS to METH_NOARGS.
24 years ago
Andrew MacIntyre
7bf6833e17
OS/2 EMX port changes (Modules part of patch #450267 ):
Modules/
_hotshot.c
dbmmodule.c
fcntlmodule.c
main.c
pwdmodule.c
readline.c
selectmodule.c
signalmodule.c
termios.c
timemodule.c
unicodedata.c
24 years ago
Martin v. Löwis
dbd55b3737
Patch #523268 , #522027 : return enhanced tuples.
24 years ago