Victor Stinner
f5cff56a1b
Issue #13088 : Add shared Py_hexdigits constant to format a number into base 16
2011-10-14 02:13:11 +02:00
Nadeem Vawda
72d6a13413
Merge #13159 : Replace FileIO's quadratic-time buffer growth algorithm with a linear-time one.
...
Also fix the bz2 module, which suffered from the same problem.
2011-10-13 13:38:14 +02:00
Nadeem Vawda
d41a98bdd9
Issue #13159 : Replace FileIO's quadratic-time buffer growth algorithm with a linear-time one.
...
Also fix the bz2 module, whose classes used the same algorithm.
2011-10-13 13:34:16 +02:00
Antoine Pitrou
6b4883dec0
PEP 3151 / issue #12555 : reworking the OS and IO exception hierarchy.
2011-10-12 02:54:14 +02:00
Victor Stinner
c5af7730e3
Fix FileIO.readall() (new_buffersize()) for large files
...
Truncate the buffer size to PY_SSIZE_T_MAX.
2011-10-11 23:00:31 +02:00
Victor Stinner
a2a6477ba0
Fix io.FileIO.readall() on Windows 64 bits
...
Use Py_off_t type (64 bits) instead of off_t (32 bits).
2011-10-11 22:45:02 +02:00
Victor Stinner
2c5d3cbfb8
Fix a compiler warning in _locale
2011-10-11 22:35:52 +02:00
Victor Stinner
3f528f0c1b
Fix a compiler warning in zipimport
2011-10-11 22:28:56 +02:00
Victor Stinner
d9c0631d77
Strip trailing spaces in _json.c
2011-10-11 21:56:19 +02:00
Victor Stinner
c4f281eba3
Fix misuse of PyUnicode_GET_SIZE, use PyUnicode_GET_LENGTH instead
2011-10-11 22:11:42 +02:00
Victor Stinner
beac78bb24
Use PyUnicode_AsUnicodeAndSize() instead of PyUnicode_GET_SIZE()
2011-10-11 21:55:01 +02:00
Antoine Pitrou
699cd9f7f1
Remove unused variable
2011-10-11 04:06:47 +02:00
Martin v. Löwis
1ee1b6fe0d
Use identifier API for PyObject_GetAttrString.
2011-10-10 18:11:30 +02:00
Martin v. Löwis
afe55bba33
Add API for static strings, primarily good for identifiers.
...
Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
2011-10-09 10:38:36 +02:00
Charles-François Natali
30589c9041
Issue #10141 : fix socketmodule compilation on Linux systems with <linux/can.h>
...
but without AF_CAN definition.
2011-10-07 22:47:08 +02:00
Martin v. Löwis
c47adb04b3
Change PyUnicode_KIND to 1,2,4. Drop _KIND_SIZE and _CHARACTER_SIZE.
2011-10-07 20:55:35 +02:00
Antoine Pitrou
72ca65dce4
Fix a Py_UCS4 / Py_UNICODE mixup.
...
This worked under Unix because wchar_t is 4 bytes wide.
2011-10-07 04:35:30 +02:00
Antoine Pitrou
77ea6409ef
Migrate the _csv module to the new unicode APIs
...
(except for a Py_UNICODE_strchr() call)
2011-10-07 04:26:55 +02:00
Benjamin Peterson
17a332ac1b
fix compiler warnings
2011-10-06 17:06:25 -04:00
Charles-François Natali
47413c1171
Issue #10141 : socket: add SocketCAN (PF_CAN) support. Initial patch by Matthias
...
Fuchs, updated by Tiago Gonçalves.
2011-10-06 19:47:44 +02:00
Antoine Pitrou
90c30e87be
Remove now duplicate code in _json.c; instead, reuse the new private lib
2011-10-06 19:09:51 +02:00
Antoine Pitrou
1d4bd25f56
Fix compilation warnings under 64-bit Windows
2011-10-06 15:44:15 +02:00
Antoine Pitrou
45d9c91d4b
Issue #3163 : The struct module gets new format characters 'n' and 'N'
...
supporting C integer types `ssize_t` and `size_t`, respectively.
2011-10-06 15:27:40 +02:00
Charles-François Natali
42c28cdd1d
Issue #13070 : Fix a crash when a TextIOWrapper caught in a reference cycle
...
would be finalized after the reference to its underlying BufferedRWPair's
writer got cleared by the GC.
2011-10-05 19:53:43 +02:00
Antoine Pitrou
ed8ba14441
Remove all other uses of the C tolower()/toupper() which could break with a Turkish locale.
2011-10-04 13:50:21 +02:00
Antoine Pitrou
1665d2c75f
Issue #13099 : Fix sqlite3.Cursor.lastrowid under a Turkish locale.
...
Reported and diagnosed by Thomas Kluyver.
2011-10-04 13:35:28 +02:00
Antoine Pitrou
1e44fecc52
Issue #13087 : BufferedReader.seek() now always raises UnsupportedOperation
...
if the underlying raw stream is unseekable, even if the seek could be
satisfied using the internal buffer. Patch by John O'Connor.
2011-10-04 12:26:20 +02:00
Antoine Pitrou
ffd41d9f10
Issue #7689 : Allow pickling of dynamically created classes when their
...
metaclass is registered with copyreg. Patch by Nicolas M. Thiéry and
Craig Citro.
2011-10-04 09:23:04 +02:00
Meador Inge
1efb33a682
Issue #12881 : ctypes: Fix segfault with large structure field names.
2011-10-03 21:44:22 -05:00
Charles-François Natali
b619bb27ed
Issue #13070 : Fix a crash when a TextIOWrapper caught in a reference cycle
...
would be finalized after the reference to its underlying BufferedRWPair's
writer got cleared by the GC.
2011-10-05 19:55:56 +02:00
Victor Stinner
e1335c711c
Fix usage og PyUnicode_READY()
2011-10-04 20:53:03 +02:00
Antoine Pitrou
061fe34262
Remove all other uses of the C tolower()/toupper() which could break with a Turkish locale.
2011-10-04 13:53:01 +02:00
Antoine Pitrou
8e4dd08f23
Issue #13099 : Fix sqlite3.Cursor.lastrowid under a Turkish locale.
...
Reported and diagnosed by Thomas Kluyver.
2011-10-04 13:37:06 +02:00
Antoine Pitrou
b244d075fb
Fix compilation error under Windows
2011-10-04 13:00:02 +02:00
Antoine Pitrou
bf009f0bce
Issue #13087 : BufferedReader.seek() now always raises UnsupportedOperation
...
if the underlying raw stream is unseekable, even if the seek could be
satisfied using the internal buffer. Patch by John OConnor.
2011-10-04 12:28:52 +02:00
Antoine Pitrou
75e78b6c77
Use the faulthandler module's infrastructure to write a GIL-less
...
memory watchdog for timely stats collection.
2011-10-04 11:51:23 +02:00
Antoine Pitrou
5a688dbf97
Issue #7689 : Allow pickling of dynamically created classes when their
...
metaclass is registered with copyreg. Patch by Nicolas M. Thiéry and
Craig Citro.
2011-10-04 09:25:28 +02:00
Meador Inge
29f43f7368
Issue #12881 : ctypes: Fix segfault with large structure field names.
2011-10-03 21:48:30 -05:00
Victor Stinner
67002af323
Check error when calling PyUnicode_AppendAndDel()
2011-10-02 20:35:10 +02:00
Antoine Pitrou
a02a12c517
Issue #13034 : When decoding some SSL certificates, the subjectAltName extension could be unreported.
2011-10-01 19:22:30 +02:00
Antoine Pitrou
d8c347a8de
Issue #13034 : When decoding some SSL certificates, the subjectAltName extension could be unreported.
2011-10-01 19:20:25 +02:00
Victor Stinner
9e5bd6c544
pyexat uses the new Unicode API
2011-10-01 01:05:40 +02:00
Victor Stinner
034f6cf10c
Add PyUnicode_Copy() function, include it to the public API
2011-09-30 02:26:44 +02:00
Victor Stinner
1fe99a2ea7
Fix a compiler warning
2011-09-30 01:55:49 +02:00
Victor Stinner
1fbcaeff55
Fix array.array('u') constructor
2011-09-30 01:54:04 +02:00
Victor Stinner
eb5657a0c5
posix module catches PyUnicode_AsUnicode() failure
...
* Replace PyUnicode_AS_UNICODE by PyUnicode_AsUnicode, PyUnicode_AS_UNICODE is
no more a real macro
* Replace Py_UNICODE by wchar_t in code specific to Windows
2011-09-30 01:44:27 +02:00
Victor Stinner
8dba4e004f
array module uses the new Unicode API
...
* Use Py_UCS4* buffer instead of Py_UNICODE*
* Use "I" or "L" format, instead of "u" format
2011-09-30 00:51:10 +02:00
Victor Stinner
f8bb7d02f6
array module stores the typecode in a char, instead of Py_UNICODE
2011-09-30 00:03:59 +02:00
Victor Stinner
c806fdcd8b
raw_unicode_escape() uses the new Unicode API
2011-09-29 23:50:23 +02:00
Victor Stinner
121aab4ba1
Strip trailing spaces of _pickle.c
2011-09-29 23:40:53 +02:00
Victor Stinner
6364927cec
PyLocale_strxfrm() uses the new Unicode API
2011-09-29 23:32:06 +02:00
Victor Stinner
fe9a861e74
fileio_init() checks for failure on conversion to Py_UNICODE*
2011-09-29 23:19:04 +02:00
Charles-François Natali
9624a764ff
Issue #13058 : ossaudiodev: fix a file descriptor leak on error. Patch by Thomas
...
Jarosch.
2011-09-29 19:49:37 +02:00
Charles-François Natali
5a4a109694
Issue #13058 : ossaudiodev: fix a file descriptor leak on error. Patch by Thomas
...
Jarosch.
2011-09-29 19:46:37 +02:00
Martin v. Löwis
22970667da
Port normalization to new API.
2011-09-29 13:39:38 +02:00
Victor Stinner
f7b8cb605d
_io.textio: fix character type, use Py_UCS4 instead of Py_UNICODE
2011-09-29 03:28:17 +02:00
Victor Stinner
0058b8603f
_sre: don't use Py_UNICODE anymore
...
* Downcasting from Py_UCS4 to Py_UNICODE is wrong is Py_UNICODE is 16-bit
wchar_t
* Remove old special case in getstring(), unicode is now handled separetely
2011-09-29 03:27:47 +02:00
Victor Stinner
639418812f
Use the new Py_ARRAY_LENGTH macro
2011-09-29 00:42:28 +02:00
Ezio Melotti
7c8c1ea3ec
Fix whitespace.
2011-09-29 01:00:19 +03:00
Ezio Melotti
2aa2b3b4d5
Clean up a few tabs that went in with PEP393.
2011-09-29 00:58:57 +03:00
Georg Brandl
4cb0de246c
Rename new macros to conform to naming rules (function macros have "Py" prefix, not "PY").
2011-09-28 21:49:49 +02:00
Martin v. Löwis
d63a3b8beb
Implement PEP 393.
2011-09-28 07:41:54 +02:00
Meador Inge
48d49497c5
Issue #13013 : ctypes: Fix a reference leak in PyCArrayType_from_ctype.
...
Thanks to Suman Saha for finding the bug and providing a patch.
2011-09-27 20:52:04 -05:00
Meador Inge
b86ecf4bd1
Issue #13013 : ctypes: Fix a reference leak in PyCArrayType_from_ctype.
...
Thanks to Suman Saha for finding the bug and providing a patch.
2011-09-27 20:45:30 -05:00
Mark Dickinson
c7d93b7614
Issue #1621 : Fix undefined behaviour from signed overflow in datetime module hashes, array and list iterations, and get_integer (stringlib/string_format.h)
2011-09-25 15:34:32 +01:00
Mark Dickinson
50203a69b3
Return +-Py_HUGE_VAL for tgamma(+-0) instead of risking FP exceptions by computing 1.0 / 0.0.
2011-09-25 15:26:43 +01:00
Charles-François Natali
dc863ddf79
Issue #12981 : rewrite multiprocessing_{sendfd,recvfd} in Python.
2011-09-24 20:04:29 +02:00
Mark Dickinson
a61b053e61
Merge #12973 itertools fix.
2011-09-24 08:57:00 +01:00
Mark Dickinson
b2f6bc72a2
Issue #12973 : Fix itertools bug caused by signed integer overflow. Thanks Stefan Krah.
2011-09-24 08:56:09 +01:00
Benjamin Peterson
3454d52434
merge 3.2
2011-09-23 13:53:06 -04:00
Benjamin Peterson
adde86d0e3
fix compiler compliant about \0 not being an opcode
2011-09-23 13:41:41 -04:00
Jesus Cea
41c98a3207
Close #13022 : _multiprocessing.recvfd() doesn't check that file descriptor was actually received
2011-09-21 03:56:05 +02:00
Jesus Cea
4507e6456e
Close #13022 : _multiprocessing.recvfd() doesn't check that file descriptor was actually received
2011-09-21 03:53:25 +02:00
Meador Inge
1c9f0c93ad
Issue #1172711 : Add 'long long' support to the array module.
...
Initial patch by Oren Tirosh and Hirokazu Yamamoto.
2011-09-20 19:55:51 -05:00
Victor Stinner
6fa6777503
os.statvfs() encodes the filename to the filesystem encoding
2011-09-20 04:04:33 +02:00
Ross Lagerwall
b1e5d595af
Issue #12517 : Silence warning on windows buildbots (from 7fd80c61ddaa).
2011-09-19 08:30:43 +02:00
Benjamin Peterson
9428d53eb4
only compile xattrs on glibc ( closes #12720 )
2011-09-14 11:45:52 -04:00
Benjamin Peterson
b77fe17320
Use xattr functions from sys/xattr.h instead of attr/xattr.h ( closes #12720 )
...
sys/xattr.h is glibc while attr/xattr.h is a separate library.
2011-09-13 17:20:47 -04:00
Amaury Forgeot d'Arc
65604b51e0
Merge 3.2: Issue #12483 : ctypes: Fix a crash when the destruction of a callback
...
object triggers the garbage collector.
2011-09-12 21:09:12 +02:00
Amaury Forgeot d'Arc
bbe46d63ee
Issue #12483 : ctypes: Fix a crash when the destruction of a callback
...
object triggers the garbage collector.
2011-09-12 21:03:36 +02:00
Nadeem Vawda
64d25ddb9c
Issue #12306 : Add ZLIB_RUNTIME_VERSION to the zlib module.
...
While we're at it, also document ZLIB_VERSION.
Patch by Torsten Landschoff.
2011-09-12 00:04:13 +02:00
Jesus Cea
ab7060e502
Close #12950 : multiprocessing "test_fd_transfer" fails under OpenIndiana
2011-09-10 04:04:09 +02:00
Jesus Cea
bbd8bec389
Close #12950 : multiprocessing "test_fd_transfer" fails under OpenIndiana
2011-09-10 04:04:09 +02:00
Jesus Cea
54b01498e3
Typo
2011-09-10 01:53:19 +02:00
Jesus Cea
9c82227277
Yet another fix for #12763 : test_posix failure on OpenIndiana
2011-09-10 01:40:52 +02:00
Jesus Cea
f2cb4e8b35
Close issue 12952: Solaris/Illumos (OpenIndiana) Scheduling policies
2011-09-09 23:55:42 +02:00
Larry Hastings
9e3e70b331
Issue #12904 : os.utime, os.futimes, os.lutimes, and os.futimesat now write
...
atime and mtime with nanosecond precision on modern POSIX platforms.
2011-09-08 19:29:07 -07:00
Nadeem Vawda
3d5881ec2b
Issue #12909 : Make PyLong_As* functions consistent in their use of exceptions.
...
PyLong_AsDouble() and PyLong_AsUnsignedLongLong() now raise TypeError (rather
than SystemError) when passed a non-integer argument, matching the behavior of
all the other PyLong_As*() functions.
2011-09-07 21:40:26 +02:00
Victor Stinner
425fcd3045
Issue #12929 : faulthandler now uses char* for arithmetic on pointers
...
instead of void*
2011-09-07 16:18:56 +02:00
Charles-François Natali
ea0d5fcb4a
Issue #12871 : sched_get_priority_(min|max) might not be defined even though
...
<sched.h> is available (most notably on OpenBSD when built without pthread):
add an explicit configure check.
2011-09-06 19:03:35 +02:00
Benjamin Peterson
388c0e2325
merge heads
2011-09-06 07:57:38 -04:00
Benjamin Peterson
6d8f744730
merge 3.2 ( #1616 )
2011-09-06 07:56:47 -04:00
Benjamin Peterson
f22913b8c3
cast to getter
2011-09-06 07:55:34 -04:00
Victor Stinner
71e44cb97f
Issue #12567 : Add curses.unget_wch() function
...
Push a character so the next get_wch() will return it.
2011-09-06 01:53:03 +02:00
Benjamin Peterson
9fd5374d4e
merge 3.2 ( #12878 )
2011-09-03 09:32:24 -04:00
Benjamin Peterson
f6f3a35447
add a __dict__ descr for IOBase ( closes #12878 )
2011-09-03 09:26:20 -04:00
Amaury Forgeot d'Arc
842d921a79
ctypes: Slightly better error message when a struct field name is not a string.
2011-09-02 23:07:54 +02:00
Amaury Forgeot d'Arc
9b20e27c01
Merge from 3.2: Issue #12764 : Fix a crash in ctypes when the name of a
...
Structure field is not a string.
2011-09-02 20:43:59 +02:00
Amaury Forgeot d'Arc
02dd539dbb
Issue #12764 : Fix a crash in ctypes when the name of a Structure field is not
...
a string.
2011-09-02 20:39:40 +02:00
Benjamin Peterson
799bd80d8a
expose linux extended file system attributes ( closes #12720 )
2011-08-31 22:15:17 -04:00
Amaury Forgeot d'Arc
dd2f8b0b77
Merge from 3.2:
...
- Issue #9651 : Fix a crash when ctypes.create_string_buffer(0) was passed to file.write()
- Issue #11241 : subclasses of ctypes.Array can now be subclassed.
2011-08-30 22:07:20 +02:00
Amaury Forgeot d'Arc
faecc38809
Issue #11241 : subclasses of ctypes.Array can now be subclassed.
2011-08-30 22:02:51 +02:00
Amaury Forgeot d'Arc
326e189410
Issue #9651 : Fix a crash when ctypes.create_string_buffer(0) was passed to
...
some functions like file.write().
2011-08-30 21:40:20 +02:00
Antoine Pitrou
a514eb95f3
Issue #12847 : Fix a crash with negative PUT and LONG_BINPUT arguments in
...
the C pickle implementation.
2011-08-30 00:28:40 +02:00
Antoine Pitrou
55549ec476
Issue #12847 : Fix a crash with negative PUT and LONG_BINPUT arguments in
...
the C pickle implementation.
2011-08-30 00:27:10 +02:00
Antoine Pitrou
ee763e2acc
Issue #11564 : Avoid crashes when trying to pickle huge objects or containers
...
(more than 2**31 items). Instead, in most cases, an OverflowError is raised.
2011-08-29 23:14:53 +02:00
Antoine Pitrou
82be19f889
Issue #11564 : Avoid crashes when trying to pickle huge objects or containers
...
(more than 2**31 items). Instead, in most cases, an OverflowError is raised.
2011-08-29 23:09:33 +02:00
Charles-François Natali
466517df0e
Issue #12837 : POSIX.1-2008 allows socklen_t to be a signed integer: re-enable
...
the check against negative values, and add a note on this surprising test.
Patch by David Watson.
2011-08-28 18:23:43 +02:00
Charles-François Natali
ac7e9e058d
Issue #12287 : Fix a stack corruption in ossaudiodev module when the FD is
...
greater than FD_SETSIZE.
2011-08-28 18:10:27 +02:00
Charles-François Natali
aa26b27503
Issue #12287 : Fix a stack corruption in ossaudiodev module when the FD is
...
greater than FD_SETSIZE.
2011-08-28 17:51:43 +02:00
Nadeem Vawda
44c6ef50af
Merge: #12839 : Fix crash in zlib module due to version mismatch.
...
If the version of zlib used to compile the zlib module is incompatible
with the one that is actually linked in, then calls into zlib will fail.
This can leave attributes of the z_stream uninitialized, so we must take
care to avoid segfaulting by trying to use an invalid pointer.
Fix by Richard M. Tew.
2011-08-28 11:29:35 +02:00
Nadeem Vawda
524148ad7a
Issue #12839 : Fix crash in zlib module due to version mismatch.
...
If the version of zlib used to compile the zlib module is incompatible
with the one that is actually linked in, then calls into zlib will fail.
This can leave attributes of the z_stream uninitialized, so we must take
care to avoid segfaulting by trying to use an invalid pointer.
Fix by Richard M. Tew.
2011-08-28 11:26:46 +02:00
Antoine Pitrou
4fd1e6a3ba
Issue #12803 : SSLContext.load_cert_chain() now accepts a password argument
...
to be used if the private key is encrypted. Patch by Adam Simpkins.
2011-08-25 14:39:44 +02:00
Charles-François Natali
e9e95ae93d
sock_sendmsg/sock_recvmsg: Use {0} to 0-initialize aggregate types with
...
automatic storage class.
2011-08-24 21:40:53 +02:00
Charles-François Natali
b09f25e9a3
Issue12810: Remove check for negative unsigned value in socketmodule.c. Patch
...
by Joel Stanley.
2011-08-24 20:07:54 +02:00
Antoine Pitrou
162fee109b
Issue #11657 : Fix sending file descriptors over 255 over a multiprocessing Pipe.
...
Also added some tests.
2011-08-23 19:48:34 +02:00
Antoine Pitrou
bcb39d4846
Issue #11657 : Fix sending file descriptors over 255 over a multiprocessing Pipe.
...
Also added some tests.
2011-08-23 19:46:22 +02:00
Victor Stinner
710d27e93a
Close #12826 : fix socketmodule.c for OpenBSD, include sys/uio.h
...
Patch written by Remi Pointel.
2011-08-23 10:57:32 +02:00
Nick Coghlan
4ecf6cfc20
Attempt to address Windows buildbot failures
2011-08-22 15:45:19 +10:00
Nick Coghlan
96fe56abec
Add support for the send/recvmsg API to the socket module. Patch by David Watson and Heiko Wundram. ( Closes #6560 )
2011-08-22 11:55:57 +10:00
Antoine Pitrou
e8bb1a0229
Issue #12213 : Fix a buffering bug with interleaved reads and writes that
...
could appear on BufferedRandom streams.
2011-08-20 14:52:04 +02:00
Antoine Pitrou
e05565ec5a
Issue #12213 : Fix a buffering bug with interleaved reads and writes that
...
could appear on BufferedRandom streams.
2011-08-20 14:39:23 +02:00
Antoine Pitrou
18bb330203
Fix compilation under Windows
2011-08-20 03:19:34 +02:00
Antoine Pitrou
df7fc9dda7
Issue #12778 : Reduce memory consumption when JSON-encoding a large container of many small objects.
2011-08-19 18:03:14 +02:00
Ezio Melotti
7ec7fc4c3b
#12725 : merge with 3.2.
2011-08-14 08:29:49 +03:00
Ezio Melotti
388c945e97
#12725 : fix working. Patch by Ben Hayden.
2011-08-14 08:28:57 +03:00
Antoine Pitrou
e58bffb8ae
Followup to 8e824e09924a: fix regression on 32-bit builds
2011-08-13 20:40:32 +02:00
Antoine Pitrou
3c7e928098
Issue #12744 : Fix inefficient representation of integers
...
between 2**31 and 2**63 on systems with a 64-bit C "long".
2011-08-13 20:15:19 +02:00
Nadeem Vawda
3bf71c54d8
Fix incorrect comment in zlib.Decompress.flush().
...
Reported by Oleg Oshmyan in issue #12646 .
2011-08-13 15:42:50 +02:00
Nadeem Vawda
1c38546e49
Issue #12646 : Add an 'eof' attribute to zlib.Decompress.
...
This will make it easier to detect truncated input streams.
Also, make zlib's error messages more consistent.
2011-08-13 15:22:40 +02:00
Antoine Pitrou
fdf4a27422
Issue #12687 : Fix a possible buffering bug when unpickling text mode (protocol 0, mostly) pickles.
2011-08-11 21:15:53 +02:00
Antoine Pitrou
f6c7a8595e
Issue #12687 : Fix a possible buffering bug when unpickling text mode (protocol 0, mostly) pickles.
2011-08-11 21:04:02 +02:00
Brian Curtin
dfc80e3d97
Replace Py_NotImplemented returns with the macro form Py_RETURN_NOTIMPLEMENTED.
...
The macro was introduced in #12724 .
2011-08-10 20:28:54 -05:00
Benjamin Peterson
a17a5d67b4
typo
2011-08-09 16:49:13 -05:00
Benjamin Peterson
087a2a951c
merge 3.2
2011-08-04 11:09:57 -05:00
Benjamin Peterson
fc9bbd1692
dosmodule is, thankfully, no more
2011-08-04 11:07:42 -05:00
Benjamin Peterson
7ac9214e43
fix arg strings
2011-08-03 08:54:26 -05:00
Benjamin Peterson
4e36d5ae88
need NULL sentinel
2011-08-02 19:56:11 -05:00
Benjamin Peterson
bad9c2f13a
avoid warning when SchedParamType is not used
2011-08-02 18:42:14 -05:00
Benjamin Peterson
e3298dda6d
only add sched_param if it is initialized
2011-08-02 18:40:46 -05:00
Benjamin Peterson
8f7bdd3208
I have been spoiled by chained comparisons in python
2011-08-02 18:34:30 -05:00
Benjamin Peterson
9b374bfa03
comparing on number of cpus makes more sense
2011-08-02 18:22:30 -05:00
Benjamin Peterson
0163c9aa0c
fix sched defines
2011-08-02 18:11:38 -05:00
Benjamin Peterson
c5fce4ded2
check individually for some for sched_ functions
2011-08-02 18:07:32 -05:00
Benjamin Peterson
e870fe601a
make_new_cpu_set takes the number of cpus
2011-08-02 17:44:26 -05:00
Benjamin Peterson
2740af8cc4
sched.h can exist without sched affinity support
2011-08-02 17:41:34 -05:00
Benjamin Peterson
94b580d423
expose sched.h functions ( closes #12655 )
2011-08-02 17:30:04 -05:00
Nadeem Vawda
9e2e99097c
Fix build error in _curses module when not using libncursesw.
...
Code extracted from Victor Stinner's patch for issue #12567 .
2011-07-31 15:01:11 +02:00
Eli Bendersky
906b88fb2a
Issue #12380 : PyArg_ParseTuple now accepts a bytearray for the 'c' format.
...
As a side effect, this now allows the rjust, ljust and center methods of
bytes and bytearray to accept a bytearray argument.
Patch by Petri Lehtinen
2011-07-29 07:05:08 +03:00
Ross Lagerwall
114f0e499d
Issue #12607 : Merge with 3.2.
2011-07-27 07:39:27 +02:00