Mark Dickinson
c4920e86ef
Issue #7272 : Add configure test to detect whether sem_open works
...
properly, and use this to skip test_multiprocessing on platforms
where sem_open raises a signal. This should fix some FreeBSD buildbot
failures for test_multiprocessing.
2009-11-20 19:30:22 +00:00
Raymond Hettinger
9eac119ba8
Fix docstrings for itertools combinatoric functions.
2009-11-19 01:22:04 +00:00
Mark Dickinson
82864d1ab1
Issue #7228 : Add '%lld' and '%llu' support to PyFormat_FromString,
...
PyFormat_FromStringV and PyErr_Format.
2009-11-15 16:18:58 +00:00
Antoine Pitrou
323b9da16d
Issue #7211 : Allow 64-bit values for the `ident` and `data` fields of kevent
...
objects on 64-bit systems. Patch by Michael Broghton.
I will revert this checkin if it causes problems on our BSD buildbots.
2009-11-04 19:25:14 +00:00
Georg Brandl
efc285880c
#7259 : show correct equivalent for operator.i* operations in docstring; fix minor issues in operator docs.
2009-11-04 07:38:12 +00:00
Raymond Hettinger
fa7dadd339
Fix exception handling in itertools.izip_longest().
2009-11-01 20:45:16 +00:00
Antoine Pitrou
e50efaad9f
Buffered I/O: optimize lock taking in the common non-contended case.
2009-11-01 11:58:22 +00:00
Gregory P. Smith
b2b92ea7bc
Define TCSASOFT if the flag exists.
2009-10-31 21:23:39 +00:00
Antoine Pitrou
2c970a2ba2
Remove official documentation entry for thread._count() and make the
...
docstring more descriptive instead.
2009-10-30 22:19:09 +00:00
Antoine Pitrou
59c44f36e0
Issue #7222 : Make thread "reaping" more reliable so that reference
...
leak-chasing test runs give sensible results. The previous method of
reaping threads could return successfully while some Thread objects were
still referenced. This also introduces a new private function:
:func:hread._count().
2009-10-30 17:07:08 +00:00
Georg Brandl
a8f8bed203
Use a single style for all the docstrings in the math module.
2009-10-29 20:54:03 +00:00
Georg Brandl
40777e6606
Use the correct function name in docstring.
2009-10-29 20:38:32 +00:00
Mark Dickinson
3ddb52717f
Roll back ill-considered attempts to fix printf specifier mismatch for off_t.
...
The sensible solution seems to be to implement %lld for PyString_FromFormat(V)
and PyErr_Format. See issue #7228 .
2009-10-29 09:46:04 +00:00
Eric Smith
129c97df02
Issue 7117: Replace PyOS_ascii_strtod with PyOS_string_to_double in _json.c as part of short float repr. Change made after consulting with Bob Ippolito. This completes the removal of calls to PyOS_ascii_strtod.
2009-10-28 08:44:37 +00:00
Mark Dickinson
e8486931b6
Fix format specifier for MSVC
2009-10-28 07:47:32 +00:00
Mark Dickinson
791181b0ff
Replace long long with PY_LONG_LONG
2009-10-28 07:23:49 +00:00
Mark Dickinson
bf1039d98c
Silence gcc warnings when trying to print an off_t using "lld", on platforms
...
where off_t has type long (e.g., 64-bit Linux).
2009-10-27 21:48:20 +00:00
Antoine Pitrou
dd62966a5f
Issue #7205 : Fix a possible deadlock when using a BZ2File object from several threads at once.
2009-10-27 17:41:58 +00:00
Eric Smith
b53e1a6ed3
Issue 7117: Replace PyOS_ascii_strtod with PyOS_string_to_double in stropmodule as part of short float repr.
2009-10-27 12:12:44 +00:00
Eric Smith
97be1ca1d9
Issue 7117: Replace PyOS_ascii_strtod with PyOS_string_to_double in cPickle as part of short float repr.
2009-10-27 11:32:11 +00:00
Mark Dickinson
e052b64def
Use correct conversion specifier and length modifier when printing an
...
integer of type off_t. Also, don't assume that long long is available.
2009-10-26 19:59:23 +00:00
Antoine Pitrou
d9ff74e51d
Some platforms have rl_completion_append_character but not rl_completion_suppress_append.
...
Reported by Mark D.
2009-10-26 19:16:46 +00:00
Eric Smith
b05d3be2f1
Continue removing _PyOS_double_to_string, as mentioned in issue 7117.
2009-10-26 15:06:39 +00:00
Antoine Pitrou
5e9f6676ea
Fix compilation error in debug mode.
2009-10-24 12:41:27 +00:00
Antoine Pitrou
f7820c1626
Manual py3k backport: [svn r74316] Issue #5449 : Fix io.BytesIO to not accept arbitrary keywords
2009-10-24 12:28:22 +00:00
Antoine Pitrou
fa94e80f3b
Manual py3k backport: [svn r74158] Issue #6218 : Make io.BytesIO and io.StringIO picklable.
2009-10-24 12:23:18 +00:00
Antoine Pitrou
f98a267be3
Manual py3k backport: [svn r74155] Issue #6242 : Fix deallocator of io.StringIO and io.BytesIO
2009-10-24 11:59:41 +00:00
Antoine Pitrou
efb60c0ceb
Issue #1722344 : threading._shutdown() is now called in Py_Finalize(), which
...
fixes the problem of some exceptions being thrown at shutdown when the
interpreter is killed. Patch by Adam Olsen.
2009-10-20 21:29:37 +00:00
Antoine Pitrou
119cdef9b4
Issue #5833 : Fix extra space character in readline completion with the
...
GNU readline library version 6.0.
2009-10-19 18:17:18 +00:00
Antoine Pitrou
5ba84910ae
Issue #7133 : SSL objects now support the new buffer API.
...
This fixes the test_ssl failure.
2009-10-19 17:59:07 +00:00
Georg Brandl
e363b1434d
Fix refleaks in _ctypes PyCSimpleType_New, which fixes the refleak seen in test___all__.
2009-10-17 08:57:43 +00:00
Neil Schemenauer
973f8b4ca6
Make cPickle.Unpickler.noload() handle dict subclasses. noload() is
...
an obscure, undocumentated feature so no test was added. Closes
issue #1101399 .
2009-10-14 19:33:31 +00:00
Mark Dickinson
3d830828de
Issue #7078 : _struct.__doc__ was being ignored. Import it into struct.
...
Also add description of '?' struct format character. Thanks Gabriel
Genellina for the patch.
2009-10-08 15:54:10 +00:00
Amaury Forgeot d'Arc
d0052d17b1
#1571184 : makeunicodedata.py now generates the functions _PyUnicode_ToNumeric,
...
_PyUnicode_IsLinebreak and _PyUnicode_IsWhitespace.
It now also parses the Unihan.txt for numeric values.
2009-10-06 19:56:32 +00:00
Amaury Forgeot d'Arc
3de4647022
Fix compilation warning on Windows, where size_t is 32bit but file offsets are 64bit.
2009-10-05 20:18:05 +00:00
Philip Jenvey
dbf3b258e7
#6990 : clear threading.local's key only after its thread state is removed:
...
fixes local subclasses leaving old state around after a ref cycle GC which
could be recycled by new locals
2009-09-29 04:32:44 +00:00
Mark Dickinson
b93fff0a57
Issue #3366 : Add gamma function to math module.
...
(lgamma, erf and erfc to follow).
2009-09-28 18:54:55 +00:00
Mark Dickinson
716a9ccd3d
Eliminate unnecessary get_wrapped_(u)long defines in struct module.
2009-09-27 16:39:28 +00:00
Andrew M. Kuchling
b49e53ee16
#6243 : fix segfault when keyname() returns a NULL pointer.
...
Bug noted by Trundle, patched by Trundle and Jerry Chen.
2009-09-25 22:23:54 +00:00
Kristján Valur Jónsson
2fcd03bb77
http://bugs.python.org/issue6971
...
Adding the SIO_KEEPALIVE_VALS command to socket.ioctl on windows
2009-09-25 15:19:51 +00:00
Brett Cannon
6ef9fd7c97
Fix whitespace.
2009-09-22 19:13:27 +00:00
Brett Cannon
4d94743c28
When range checking was added to time.strftime() a check was placed on tm_isdst
...
to make sure it fell within [-1, 1] just in case someone implementing
strftime() in libc was stupid enough to assume this. Turns out, though, some
OSs (e.g. zOS) are stupid enough to use values outside of this range for time
structs created by the system itself. So instead of throwing a ValueError,
tm_isdst is now normalized before being passed to strftime().
Fixes issue #6823 . Thanks Robert Shapiro for diagnosing the problem and
contributing an initial patch.
2009-09-22 00:29:48 +00:00
Antoine Pitrou
2a46658bee
Issue #6236 , #6348 : Fix various failures in the io module under AIX
...
and other platforms, when using a non-gcc compiler. Patch by egreen.
In addition, I made explicit the signedness of all bitfields in the
IO library.
2009-09-21 21:17:48 +00:00
Ronald Oussoren
16766d7cd6
Merge a newer version of libffi_osx, based on the
...
version of libffi in OSX 10.6.1.
This fixes issue6918
2009-09-20 18:54:16 +00:00
Ronald Oussoren
9f20d9d0ee
Issue 6877: this patch makes it possible to link the readline extension
...
to the libedit emulation of the readline API on OSX 10.5 or later.
This also adds a minimal testsuite for readline to check that the
history manipuation functions have the same interface with both
C libraries.
2009-09-20 14:18:15 +00:00
Thomas Heller
d25fb2ff1f
Remove unused variable and static function to fix compiler warnings.
2009-09-19 10:04:54 +00:00
Georg Brandl
ab849891ef
#6944 : the argument to PyArg_ParseTuple should be a tuple, otherwise a SystemError is set. Also clean up another usage of PyArg_ParseTuple.
2009-09-19 07:35:07 +00:00
Thomas Heller
6be522bfc2
Issue #4606 : Passing 'None' if ctypes argtype is set to POINTER(...)
...
does now always result in NULL.
2009-09-18 20:05:44 +00:00
Thomas Heller
7a352c0ed8
Issue #5042 : Structure sub-subclass does now initialize correctly with
...
base class positional arguments.
2009-09-18 18:55:17 +00:00
Mark Dickinson
4676048b43
Remove outdated include; this include was breaking OS X builds using
...
non-Apple gcc4.3 and gcc4.4 (because CoreFoundation/CoreFoundation.h
won't compile under non-Apple gcc).
2009-09-16 20:26:31 +00:00