Brett Cannon
b6855683cc
Check for errors in creating sub-interpreters when testing the C API.
14 years ago
Martin v. Löwis
9d6c66933a
Issue #13777 : Add PF_SYSTEM sockets on OS X.
Patch by Michael Goderbauer.
14 years ago
Charles-François Natali
6d0d24e359
Issue #13817 : After fork(), reinit the ad-hoc TLS implementation earlier to fix
a random deadlock when fork() is called in a multithreaded process in debug
mode, and make PyOS_AfterFork() more robust.
14 years ago
Petri Lehtinen
023fe334bb
sqlite3: Handle strings with embedded zeros correctly
Closes #13676 .
14 years ago
Gregory P. Smith
ab32066e65
Fix zip_import.c's read_directory() to use appropriate types for the values
being read from the header vs the values being used by fseek and ftell
(Py_ssize_t for those) and how they are computed. Py_ssize_t is used for
actual file offsets so that files greater than 2gigs could be supported.
Updates the Py_BuildValue format string to match (including several existing
wrong 'i's that should have been 'l's).
14 years ago
Antoine Pitrou
f3b2d88b67
Issue #8828 : Add new function os.replace(), for cross-platform renaming with overwriting.
14 years ago
Victor Stinner
a2477208c8
Issue #13874 : read_null() of faulthandler uses volatile to avoid optimisation
Clang 3.0 removes "y = *x;" instruction if the optimisation level is 3.
14 years ago
Antoine Pitrou
1334884ff2
Issue #13848 : open() and the FileIO constructor now check for NUL characters in the file name.
Patch by Hynek Schlawack.
14 years ago
Antoine Pitrou
75ff65ef96
Issue #13806 : The size check in audioop decompression functions was too strict and could reject valid compressed data.
Patch by Oleg Plakhotnyuk.
14 years ago
Antoine Pitrou
f2bf8a6ac5
Issue #13885 : CVE-2011-3389: the _ssl module would always disable the CBC IV attack countermeasure.
14 years ago
Victor Stinner
85fdfa85e1
Issue #13847 : time.clock() now raises a RuntimeError if the processor time used
is not available or its value cannot be represented
14 years ago
Victor Stinner
c1b5d34ede
Issue #13847 : time.localtime() and time.gmtime() now raise an OSError instead
of ValueError on failure. time.ctime() and time.asctime() now raises an
OSError if localtime() failed.
14 years ago
Meador Inge
65992c1c01
- Issue #13840 : Fix ctypes.create_string_buffer exception message and docs.
14 years ago
Antoine Pitrou
5311c1d7ab
Issue #13772 : In os.symlink() under Windows, do not try to guess the link
target's type (file or directory). The detection was buggy and made the
call non-atomic (therefore prone to race conditions).
14 years ago
Benjamin Peterson
91eef984fd
fix declaration style
14 years ago
Benjamin Peterson
ce79852077
use the static identifier api for looking up special methods
I had to move the static identifier code from unicodeobject.h to object.h in
order for this to work.
14 years ago
Gregory P. Smith
4842efcf97
Fix FreeBSD, NetBSD and OpenBSD behavior of the issue #8052 fix.
14 years ago
Gregory P. Smith
e9b7cab1da
Another issue #8052 bugfix (related to previous commit).
"oops" while rearranging the #defines.
14 years ago
Gregory P. Smith
e3f7848bc5
Bugfix for issue #8052 fix on *BSD variants.
Many lack readdir64, use readdir. Only use readdir64 on solaris where
it is required to work around a solaris bug.
14 years ago
Gregory P. Smith
8facece99a
Fixes issue #8052 : The posix subprocess module's close_fds behavior was
suboptimal by closing all possible file descriptors rather than just
the open ones in the child process before exec().
It now closes only the open fds when it is possible to safely determine what
those are.
14 years ago
Gregory P. Smith
12fdca59bb
Avoid the compiler warning about the unused return value.
14 years ago
Antoine Pitrou
fc1b6f0078
Fix the _io module leaking references when a sub-interpreter is created.
14 years ago
Ezio Melotti
acd5f7bceb
#13665 : s/string/bytes/ in error message.
14 years ago
Victor Stinner
855889b4bf
Issue #10278 : fix a typo in the doc
14 years ago
Victor Stinner
b94b266cfc
Close #10278 : Add time.wallclock() function, monotonic clock.
14 years ago
Antoine Pitrou
2c085604b7
Fix error handling in timemodule.c
14 years ago
Antoine Pitrou
2f828f2c88
Test running of code in a sub-interpreter
(prelude to issue #6531 ).
14 years ago
Ronald Oussoren
2a7fe03528
Add missing sentinel to PyCursesWindow_getsets
The PyCursesWindow_getsets array was introduced without sentinel in c3581ca21a57.
14 years ago
Gregory P. Smith
5831bd2f3b
Remove an unnecessary extra copy of the bytes hash function.
This copy also had a bug in it, it fails to incorporate the length
into the hash by using it as the loop variable so it'll always be -1
by the time it is XORed in.
As such: I'm doing this only in Python 3.3 and not backporting as it
would change the existing hash behavior of datetime objects.
14 years ago
Martin v. Löwis
50590f111b
Use GetModuleHandleW to avoid *A functions where possible.
14 years ago
Charles-François Natali
d612de10e5
Issue #12760 : Refer to the new 'x' open mode as "exclusive creation" mode.
14 years ago
Charles-François Natali
366999a011
Issue #9975 : socket: Fix incorrect use of flowinfo and scope_id. Patch by
Vilmos Nebehaj.
14 years ago
Ross Lagerwall
667d75d059
Don't redefine _GNU_SOURCE if it's already defined.
14 years ago
Ross Lagerwall
031bf95d32
Issue #11006 : Don't issue low level warning in subprocess when pipe2() fails.
14 years ago
Victor Stinner
bd206e27a4
Handle correctly _Py_fopen() error: don't replace the exception
14 years ago
Victor Stinner
e83f899364
Issue #13530 : Document os.lseek() result
Patch written by Jérémy Anger.
14 years ago
Victor Stinner
136ea49b39
Issue #10951 : Fix a compiler warning in timemodule.c
14 years ago
Amaury Forgeot d'Arc
7e447c8224
Fix compilation warning on Windows
14 years ago
Antoine Pitrou
5136ac0ca2
Issue #13645 : pyc files now contain the size of the corresponding source
code, to avoid timestamp collisions (especially on filesystems with a low
timestamp resolution) when checking for freshness of the bytecode.
14 years ago
Nick Coghlan
1f7ce62bd6
Implement PEP 380 - 'yield from' ( closes #11682 )
14 years ago
Victor Stinner
1134b0dbbd
Fix _PyFaulthandler_Fini() so it can be called before _PyFaulthandler_Init()
14 years ago
Charles-François Natali
76961faaa0
Issue #13757 : Change os.fdlistdir() so that it duplicates the passed file
descriptor (instead of closing it).
14 years ago
Charles-François Natali
dc3044c704
Issue #12760 : Add a create mode to open(). Patch by David Townshend.
14 years ago
Charles-François Natali
f2840a8890
Backed out changeset 36f2e236c601: For some reason, rewinddir() doesn't work as
it should on OpenIndiana.
14 years ago
Charles-François Natali
38f425e475
Issue #13739 : It's simpler and more direct to call rewinddir() at the
beginning.
14 years ago
Charles-François Natali
7546ad327d
Issue #13739 : In os.listdir(), rewind the directory stream (so that listdir()
can be called again on the same open file).
14 years ago
Benjamin Peterson
83251c1ecd
try to always use the old API
14 years ago
Benjamin Peterson
95c16629d3
fix for old kernels which don't have epoll_create1
14 years ago
Benjamin Peterson
2fb9ae9dfc
add a flags parameter to select.epoll
14 years ago
Charles-François Natali
8b759655d0
Issue #8623 : Fix some strict-aliasing warnings. Patch by David Watson.
14 years ago