summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Should use posix_error here.Hirokazu Yamamoto2010-12-051-5/+3
|
* Sorry, I had introduced tab in source code.Hirokazu Yamamoto2010-12-051-1/+1
|
* issue6559: Adds a pass_fds parameter to subprocess.Popen that allows the callerGregory P. Smith2010-12-041-9/+33
| | | | to list exactly which file descriptors should be kept open.
* #1569291: speed up array.repeat() by making only O(log n) memcpy() calls; ↵Georg Brandl2010-12-041-9/+17
| | | | the code follows unicode_repeat.
* #1772833: add -q command line option.Georg Brandl2010-12-041-3/+10
|
* Fixed several corner case issues on os.stat/os.lstat related to reparseHirokazu Yamamoto2010-12-041-93/+110
| | | | | | | points. (Windows) - Set S_IEXEC via final path name not link name. - Set S_IFLNK also via FindFirstFile (when CreateFile fails)
* #6045: provide at least get() and setdefault() for all dbm modules.Georg Brandl2010-12-041-0/+47
|
* Merge branches/pep-0384.Martin v. Löwis2010-12-038-13/+296
|
* Issue #10272: The ssl module now raises socket.timeout instead of a genericAntoine Pitrou2010-12-033-7/+10
| | | | SSLError on socket timeouts.
* Issue #10478: Reentrant calls inside buffered IO objects (for example byAntoine Pitrou2010-12-031-19/+52
| | | | | way of a signal handler) now raise a RuntimeError instead of freezing the current process.
* Simplify the signature for itertools.accumulate() to match numpy. Handle ↵Raymond Hettinger2010-12-031-23/+15
| | | | one item iterable the same way as min()/max().
* Fix #9333. Expose os.symlink on Windows only when usable.Brian Curtin2010-12-021-8/+55
| | | | | | | | | | | | | | | | In order to create symlinks on Windows, SeCreateSymbolicLinkPrivilege is an account privilege that is required to be held by the user. Not only must the privilege be enabled for the account, the activated privileges for the currently running application must be adjusted to enable the requested privilege. Rather than exposing an additional function to be called prior to the user's first os.symlink call, we handle the AdjustTokenPrivileges Windows API call internally and only expose os.symlink when the privilege escalation was successful. Due to the change of only exposing os.symlink when it's available, we can go back to the original test skipping methods of checking via `hasattr`.
* Add itertools.accumulate().Raymond Hettinger2010-12-011-0/+142
|
* Issue #4113: Added custom __repr__ method to functools.partial.Alexander Belopolsky2010-12-011-1/+43
|
* Remove redundant includes of headers that are already included by Python.h.Georg Brandl2010-11-306-7/+0
|
* Include structseq.h in Python.h, and remove now-redundant includes in ↵Georg Brandl2010-11-308-8/+0
| | | | individual sources.
* Issue #10323: Predictable final state for slice().Raymond Hettinger2010-11-301-3/+4
|
* Fix for #8879.Brian Curtin2010-11-281-2/+18
| | | | | | | Amaury noticed that this was originally written in a way that would fail on names that can't be encoded with the mbcs codec. Restructured the function to work with wide names first then narrow names second, to fall in line with the way other functions are written in posixmodule.c.
* Windows: fix leak in posix_listdir.Stefan Krah2010-11-271-0/+1
|
* Fix additional leaks.Stefan Krah2010-11-271-0/+2
|
* Further indentation cleanup.Stefan Krah2010-11-261-49/+49
|
* Issue #10383: Fix two leaks.Stefan Krah2010-11-261-7/+11
|
* Fix compilation warnings seen on Windows.Amaury Forgeot d'Arc2010-11-251-7/+7
| | | | 'typecode' is always an ascii letter, there was no data lost.
* Fix #8879. Add os.link support to Windows.Brian Curtin2010-11-241-0/+32
| | | | | | | | Additionally, the st_ino attribute of stat structures was not being filled in. This was left out of the fix to #10027 and was noticed due to test_tarfile failing when applying the patch for this issue. An earlier version of the fix to #10027 included st_ino, but that attribute got lost in the shuffle of a few review/fix cycles. All tests pass.
* ifdef a Windows specific section.Brian Curtin2010-11-241-0/+2
|
* Fix #10027. st_nlink not set on Windows calls to os.stat/lstat.Brian Curtin2010-11-241-302/+279
| | | | | | Note: This patch has no tests because as of now there is no way to create links. #8879 adds that and the tests will go in there. I've manually observed that existing links on my system function properly with this.
* Issue #10459: Update CJK character names to Unicode 6.0.Martin v. Löwis2010-11-221-4/+7
|
* Issue #8078: Add constants for higher baud rates in the termios module.Antoine Pitrou2010-11-201-0/+37
| | | | Patch by Rodolpho Eckhardt.
* correct logic when pos is after the string #10467Benjamin Peterson2010-11-201-3/+8
|
* Issue #10443: Add the SSLContext.set_default_verify_paths() method.Antoine Pitrou2010-11-171-0/+12
|
* Issue #10440: Support RUSAGE_THREAD as a constant in the resource module.Antoine Pitrou2010-11-171-0/+4
| | | | Patch by Robert Collins.
* Modules/_io/bufferedio.c (buffered_dealloc_warn): Make it static.Matthias Klose2010-11-161-1/+1
|
* getpath.c: fix test to detech PyUnicode_AsWideChar() failureVictor Stinner2010-11-101-4/+4
| | | | | | PyUnicode_AsWideChar() result is signed, whereas it was stored in a unsigned variable, and then the test was "n >= 0" which is always true to an unsigned number. Patch written by Hallvard B Furuseth.
* Issue #10022: The dictionary returned by the `getpeercert()` methodAntoine Pitrou2010-11-091-53/+47
| | | | of SSL sockets now has additional items such as `issuer` and `notBefore`.
* Fix issue10324 - Modules/binascii.c: simplify expressionsSenthil Kumaran2010-11-091-2/+1
|
* Issue #10359: Remove useless (duplicate) initialization in _csvVictor Stinner2010-11-091-1/+1
|
* Issue #10359: Remove useless comma, invalid in ISO CVictor Stinner2010-11-091-2/+2
|
* Issue #10359: Use Py_UNICODE for the typecode in arrayVictor Stinner2010-11-091-7/+9
| | | | And don't create non constant array, invalid in ISO C.
* Issue #10359: Remove ";" after function definition, invalid in ISO CVictor Stinner2010-11-091-1/+1
|
* Issue #6011: decode PREFIX, EXEC_PREFIX and PYTHONPATH variables usingVictor Stinner2010-11-081-17/+30
| | | | | _Py_char2wchar(), instead of L"" VAR hack, to escape undecodable bytes using the surrogateescape error handler.
* PyUnicode_EncodeFS() raises an exception if _Py_wchar2char() failsVictor Stinner2010-11-081-1/+1
| | | | | | * Add error_pos optional argument to _Py_wchar2char() * PyUnicode_EncodeFS() raises a UnicodeEncodeError or MemoryError if _Py_wchar2char() fails
* Issue #10180: Pickling file objects is now explicitly forbidden, sinceAntoine Pitrou2010-11-053-0/+32
| | | | unpickling them produced nonsensical results.
* Issue #10311: The signal module now restores errno before returning fromAntoine Pitrou2010-11-051-14/+20
| | | | its low-level signal handler. Patch by Hallvard B Furuseth.
* Fixed socket_gethostname() on windows.Hirokazu Yamamoto2010-11-051-6/+9
|
* Issue #10279: fix test_gc under Win64.Antoine Pitrou2010-11-051-2/+2
|
* Issue #10314: improve performance of JSON encoding with sort_keys=TrueAntoine Pitrou2010-11-041-20/+25
|
* Issue #5391: mmap.read_byte() should return unsigned value [0, 255]Hirokazu Yamamoto2010-11-041-1/+1
| | | | instead of signed value [-127, 128].
* Fix Issue 10307 - compile error in readline.cSenthil Kumaran2010-11-041-1/+1
|
* No declarations in the middle of a block (fixes compile under Windows)Antoine Pitrou2010-10-311-3/+3
|
* Issue #10160: Speed up operator.attrgetter. Patch by Christos Georgiou.Antoine Pitrou2010-10-311-29/+104
|