Gregory P. Smith
7c6309c6af
Update the embedded copy of the expat XML parser to 2.1.0. It brings
with it a vareity of bug fixes, both security and behavior. See
http://www.libexpat.org/ for the list.
NOTE: I already backported the expat hash randomization fix in March.
Fixes issue #14340 .
14 years ago
Stefan Krah
e574402bd6
Issue #7652 : Clean up _mpd_qinvroot() and mark it LIBMPDEC_ONLY. Use the
algorithm from decimal.py for mpd_qsqrt().
14 years ago
Florent Xicluna
109d57358e
Issue #13248 : io: Remove obsolete argument "max_buffer_size" of BufferedWriter and BufferedRWPair.
14 years ago
Antoine Pitrou
9235b254dc
Issue #15247 : FileIO now raises an error when given a file descriptor pointing to a directory.
14 years ago
Richard Oudkerk
2240ac1eae
Issue #15261 : Stop os.stat(fd) crashing on Windows when fd not open.
14 years ago
Senthil Kumaran
f01a337950
Fix issue # 15033 - Return the proper exitcode for failure when modules are invoked using -m switch. Patch contributed by Jeff Knupp
14 years ago
Stefan Krah
d57caf36bd
Remove ISSUES.txt.
14 years ago
doko@ubuntu.com
d4ea23f200
- Issue #15194 : check in the missing m4/ax_append_flag.m4 file.
Regenerate aclocalm4 and configure.
14 years ago
doko@ubuntu.com
49a7da30aa
- Issue #15194 : check in the missing m4/ax_check_compile_flag.m4 file.
Regenerate aclocalm4 and configure.
14 years ago
doko@ubuntu.com
cc5addd3b6
- Issue #14330 : Don't derive the include and library search dirs
from GCC for native builds
14 years ago
doko@ubuntu.com
36f98051af
- Regenerate the libffi configure file
14 years ago
Stefan Krah
5431e30853
After 79d2eb29c755 it is no longer necessary to zero the output array:
None of the _mpd_shortadd() or _mpd_shortmul() functions read uninitialized
values. Previously zeroing was required since _mpd_real_size() was called
on the output array.
14 years ago
Stefan Krah
c35a8e5c98
Proactive reliability fix for broken FPUs: The base conversion functions
use log10() to calculate the size of the output array. The current code
has been tested on x86/amd64 (and to a lesser extent on qemu-mips qemu-sparc)
and produces sufficiently large values for all inputs tested so far (coefficient
sizes of 10**18 - 1 are hard to test exhaustively).
The new code does not rely on the correctness of log10() and resizes
the output arrays if the allocated space is insufficient.
14 years ago
Antoine Pitrou
2d24e94bbe
Issue #5067 : improve some json error messages.
Patch by Serhiy Storchaka.
14 years ago
Victor Stinner
591c1cca32
Remove dead code
os.urandom() has now one unique implementation, posix_urandom() which
calls _PyOS_URandom(). _PyOS_URandom() uses RAND_pseudo_bytes() on VMS.
14 years ago
Matthias Klose
c02be613cc
- whitespace-normalize libffi file
14 years ago
doko@ubuntu.com
2a918768f1
- Issue #15194 : Update libffi to the 3.0.11 release.
14 years ago
Georg Brandl
969288e488
Use ValueError, not RuntimeError for a utime flag combination illegal on some systems.
14 years ago
Brett Cannon
0b1b9ce494
If main() is called and an argument cannot be decoded, make sure to
free the copy of the command-line.
Found using Clang's static analyzer.
14 years ago
Antoine Pitrou
0ab5cf9b46
Issue #15181 : importlib bytecode is unsigned and shouldn't have negative numbers.
This fixes a compiler warning with suncc.
14 years ago
Stefan Krah
1edab78859
Update test script to Visual Studio 2010.
14 years ago
Larry Hastings
fdaea06d3c
Issue #15176 : Clarified behavior, documentation, and implementation
of os.listdir().
14 years ago
Larry Hastings
48986d68c2
Minor grammar refinement for hmac.compare_digest().
14 years ago
Georg Brandl
db99dd0605
Small wording update from Larry.
14 years ago
Georg Brandl
a1bc35f07f
Improve hmac.compare_digest() docstring and documentation, courtesy of Larry H.
14 years ago
Antoine Pitrou
9df73dac84
Larry's suggested rewording of the compare_digest() docs.
14 years ago
Stefan Krah
39e810eb6c
Make the benchmark more fair for _decimal/decimal.py by setting context.prec
only once (float obviously doesn't set any context at all).
14 years ago
Georg Brandl
f78755968a
Whitespace cleanup.
14 years ago
Georg Brandl
9dcbfc353d
Remove unused variable.
14 years ago
Georg Brandl
93b7d7e4b9
Fix a refleak in c82451eeb595.
14 years ago
Christian Heimes
6cea65555c
Issue #15061 : Re-implemented hmac.compare_digest() in C
14 years ago
Larry Hastings
605a62ddb1
Issue #15118 : Change return value of os.uname() and os.times() from
plain tuples to immutable iterable objects with named attributes
(structseq objects).
14 years ago
Georg Brandl
306336bcda
Closes #15161 : add support for giving path as a fd for truncate() and pathconf().
14 years ago
Stefan Krah
78f075636c
Speed up _decimal by another 10-15% by caching the thread local context
that was last accessed. In the pi benchmark (64-bit platform, prec=9),
_decimal is now only 1.5x slower than float.
14 years ago
Larry Hastings
d60cd4295c
Issue #14815 : Bugfix: the PyLong fed into the seed generator must be unsigned.
14 years ago
Larry Hastings
49c15d4a5f
Issue #14815 : Use Py_ssize_t instead of long for the object hash, to
preserve all 64 bits of hash on Win64.
14 years ago
Gregory P. Smith
5135992164
Fixes issue #12268 : File readline, readlines and read() or readall() methods
no longer lose data when an underlying read system call is interrupted.
IOError is no longer raised due to a read system call returning EINTR
from within these methods.
14 years ago
Larry Hastings
b698d8e7e9
Issue #15154 : Add "dir_fd" parameter to os.rmdir, remove "rmdir"
parameter from os.remove / os.unlink.
Patch written by Georg Brandl. (I'm really looking forward to George
getting commit privileges so I don't have to keep doing checkins on his
behalf.)
14 years ago
Antoine Pitrou
766a16efe7
Fix test_re failure under Windows.
14 years ago
Georg Brandl
5bb7aa986e
Try to fix shutil.which() tests on Windows by fixing a typo introduced in 27f9c26fdd8b in posix_access().
14 years ago
Charles-François Natali
9b0c006eb0
Remove useless test (flowinfo is unsigned).
14 years ago
Larry Hastings
dbbc0c8bb3
Issue #14626 : Fix buildbot issue on OpenIndiana 3.x machines. (Hopefully.)
14 years ago
Larry Hastings
67cbf7bff9
Issue #14626 : Fix buildbot issue on x86 Tiger 3.x.
14 years ago
Larry Hastings
9cf065cfdc
Issue #14626 : Large refactoring of functions / parameters in the os module.
Many functions now support "dir_fd" and "follow_symlinks" parameters;
some also support accepting an open file descriptor in place of of a path
string. Added os.support_* collections as LBYL helpers. Removed many
functions only previously seen in 3.3 alpha releases (often starting with
"f" or "l", or ending with "at"). Originally suggested by Serhiy Storchaka;
implemented by Larry Hastings.
14 years ago
Stefan Krah
3077ab8237
Whitespace.
14 years ago
Alexander Belopolsky
93c9cd07b6
Issue #9527 : tm_gmtoff has 'correct' sign.
14 years ago
Antoine Pitrou
f7338f65fb
Add forgotten files for #14837 .
14 years ago
Antoine Pitrou
3b36fb1f53
Issue #14837 : SSL errors now have `library` and `reason` attributes describing precisely what happened and in which OpenSSL submodule.
The str() of a SSLError is also enhanced accordingly.
NOTE: this commit creates a reference leak. The leak seems tied to the
use of PyType_FromSpec() to create the SSLError type. The leak is on the
type object when it is instantiated:
>>> e = ssl.SSLError()
>>> sys.getrefcount(ssl.SSLError)
35
>>> e = ssl.SSLError()
>>> sys.getrefcount(ssl.SSLError)
36
>>> e = ssl.SSLError()
>>> sys.getrefcount(ssl.SSLError)
37
14 years ago
Kristjan Valur Jonsson
69cf913ba1
Issue #15124 : Optimize _thread.LockType deletion and acquisition when
not contested, similar to what _thread.RLock already has.
14 years ago
Alexander Belopolsky
878054e97b
Fixed compiler warnings in datetime_astimezone()
14 years ago