Victor Stinner
72967a4c1a
calculate_path() now fails with a fatal error when it fails to allocate memory
...
for module_search_path. It was already the case on _Py_char2wchar() failure.
2013-11-16 01:22:04 +01:00
Victor Stinner
ce4179d022
Don't mix wide character strings and byte strings (L"lib/python" VERSION): use
...
_Py_char2wchar() to decode lib_python instead.
Some compilers don't support concatenating literals: L"wide" "bytes". Example:
IRIX compiler.
2013-11-16 00:45:54 +01:00
Victor Stinner
c1a57d306c
Fix compiler warnings on Windows 64 bit: add an explicit cast from Py_ssize_t
...
to int, password.len was checked for being smaller than INT_MAX.
2013-11-16 00:27:16 +01:00
Victor Stinner
e990c6e952
Fix sock_recvfrom_guts(): recvfrom() size is limited to an int on Windows, not
...
on other OSes!
2013-11-16 00:18:58 +01:00
Victor Stinner
3b5901143d
Fix compiler warning on Windows 64 bit: _init_pos_args() result type is
...
Py_ssize_t, not int
2013-11-16 00:17:22 +01:00
Victor Stinner
f558778f07
Fix compiler warning (especially on Windows 64-bit): don't truncate Py_ssize_t
...
to int
2013-11-15 23:21:11 +01:00
Victor Stinner
1109b54e03
Fix compiler warning on Windows 64-bit: explicit cast size_t to unsigned long
2013-11-15 23:16:15 +01:00
Victor Stinner
b03142782c
Issue #19437 : Fix parse_envlist() of the posix/nt module, don't call
...
PyMapping_Values() with an exception set, exit immediatly on error.
2013-11-14 21:37:05 +01:00
Victor Stinner
b80b378680
Issue #19437 : Fix parse_save_field() of the csv module, handle PyList_Append()
...
failure
2013-11-14 21:29:34 +01:00
Victor Stinner
541067a640
Issue #19437 : Fix array.buffer_info(), handle PyLong_FromVoidPtr() and
...
PyLong_FromLong() failure
2013-11-14 01:27:12 +01:00
Victor Stinner
804e05e800
Issue #19437 : Use an identifier for "__name__" string in pickle to improve
...
error handling
The following code didn't handle correctly the failure of
PyUnicode_InternFromString("__name__").
if (newobj_str == NULL) {
newobj_str = PyUnicode_InternFromString("__newobj__");
name_str = PyUnicode_InternFromString("__name__");
if (newobj_str == NULL || name_str == NULL)
return -1;
}
2013-11-14 01:26:17 +01:00
Victor Stinner
59799a8399
Don't use deprecated function PyUnicode_GET_SIZE()
...
Replace it with PyUnicode_GET_LENGTH() or PyUnicode_AsUnicodeAndSize()
2013-11-13 14:17:30 +01:00
Victor Stinner
e223439c13
Issue #19437 : Fix ctypes, handle PyCData_GetContainer() and GetKeepedObjects()
...
failures
2013-11-13 13:29:37 +01:00
Victor Stinner
588544d186
Issue #19437 : Fix GetKeepedObjects() of ctypes, handle PyCData_GetContainer()
...
failure
2013-11-13 13:24:50 +01:00
Victor Stinner
7184366dab
Issue #19437 : Fix PyCData_GetContainer() of ctypes, handle PyDict_New() failure
2013-11-13 13:23:35 +01:00
Victor Stinner
651f9f77f3
Issue #19515 : Remove duplicated identifiers in zipimport.c
2013-11-12 21:44:18 +01:00
Victor Stinner
3f36a5736b
Issue #19515 : Remove identifiers duplicated in the same file.
...
Patch written by Andrei Dorian Duma.
2013-11-12 21:39:02 +01:00
Tim Golden
bbe268f583
Issue13674 Correct crash with strftime %y format under Windows
2013-11-12 12:48:20 +00:00
Tim Golden
6e51b8ff0f
Issue13674 Correct crash with strftime %y format under Windows
2013-11-12 12:36:54 +00:00
Serhiy Storchaka
23a7827c45
Fixed compile error on Windows caused by arithmetic with void * pointers
...
(issue #16685 ).
2013-11-11 07:47:35 +02:00
Serhiy Storchaka
711e91b283
Issue #16685 : Added support for any bytes-like objects in the audioop module.
...
Removed support for strings.
2013-11-10 21:44:36 +02:00
Jason R. Coombs
8ec784c2df
Issue #7171 : Update syntax to replace MAX in favor of Py_MAX (matching implementation for Unix).
2013-11-10 13:43:22 -05:00
Stefan Krah
2fdf4e7b9b
Move PyErr_NoMemory() closer to the failure.
2013-11-08 18:05:02 +01:00
Stefan Krah
a0fd1f5a18
Change style to match the surrounding code (no early returns).
2013-11-08 17:48:58 +01:00
Victor Stinner
ac470854b8
Issue #19437 : Fix dec_format() of the _decimal module, handle dec_strdup()
...
failure (memory allocation failure): raise a MemoryError exception
2013-10-29 20:33:14 +01:00
Victor Stinner
a992e11fe3
Issue #19437 : Fix convert_op_cmp() of decimal.Decimal rich comparator, handle
...
PyObject_IsInstance() failure
2013-10-29 19:26:11 +01:00
R David Murray
d5a2f0b3a1
#18985 : Improve fcntl documentation.
...
Original patch by Vajrasky Kok, further improved (I hope) by me.
2013-11-07 10:51:07 -05:00
R David Murray
5fdb64b5a0
#19411 : Clarify that b2a_hex/hexlify returns a bytes object.
...
Initial patch by Vajrasky Kok.
2013-11-03 13:21:38 -05:00
Tim Golden
6374120750
Issue #19418 Fix some warnings on Win64
2013-10-31 17:38:24 +00:00
Christian Heimes
fb6b44e830
Issue #19227 / Issue #18747 : Remove pthread_atfork() handler to remove OpenSSL re-seeding
...
It is causing trouble like e.g. hanging processes.
2013-10-29 20:50:01 +01:00
Nadeem Vawda
3797065ac5
#19395 : Raise exception when pickling a (BZ2|LZMA)(Compressor|Decompressor).
...
The underlying C libraries provide no mechanism for serializing compressor and
decompressor objects, so actually pickling these classes is impractical.
Previously, these objects would be pickled without error, but attempting to use
a deserialized instance would segfault the interpreter.
2013-10-28 21:35:23 +01:00
Georg Brandl
81be27d53e
Issue #19227 : Try to fix deadlocks caused by re-seeding then OpenSSL
...
pseudo-random number generator on fork().
2013-10-27 07:56:11 +01:00
Serhiy Storchaka
efa5a39fa5
Issue #19405 : Fixed outdated comments in the _sre module.
2013-10-27 08:04:58 +02:00
Benjamin Peterson
89d8cd943b
just return toplevel symbol table rather than all blocks ( closes #19393 )
2013-10-26 13:13:51 -04:00
Serhiy Storchaka
7d6392c517
Issue #19288 : Fixed the "in" operator of dbm.gnu databases for string
...
argument. Original patch by Arfrever Frehtes Taifersar Arahesis.
2013-10-25 00:06:52 +03:00
Serhiy Storchaka
9da33ab193
Issue #19287 : Fixed the "in" operator of dbm.ndbm databases for string
...
argument. Original patch by Arfrever Frehtes Taifersar Arahesis.
2013-10-24 23:59:28 +03:00
Serhiy Storchaka
be80fc9a84
Issue #19327 : Fixed the working of regular expressions with too big charset.
2013-10-24 22:02:58 +03:00
Antoine Pitrou
09fcb72048
Issue #19356 : Avoid using a C variabled named "_self", it's a reserved word in some C compilers.
2013-10-23 19:20:21 +02:00
Ned Deily
5d4121a631
Issue #18458 : Prevent crashes with newer versions of libedit. Its readline
...
emulation has changed from 0-based indexing to 1-based like gnu readline.
Original patch by Ronald Oussoren.
2013-10-12 15:47:58 -07:00
Benjamin Peterson
8aa7b89983
replace hardcoded version
2013-10-10 20:22:10 -04:00
Benjamin Peterson
577dd61ff2
make sure the docstring is never out of date wrt unicode data version
2013-10-10 20:16:25 -04:00
Benjamin Peterson
a4cf1c87d0
remove url from docstring ( closes #19220 )
2013-10-10 17:39:56 -04:00
Raymond Hettinger
cb1d96f782
Issue #18594 : Make the C code more closely match the pure python code.
2013-10-04 16:51:02 -07:00
Ned Deily
2a8b3f26b9
Issue #19147 : Fix docstring for fcntl.flock to refer to correct man section.
2013-10-02 12:20:46 -07:00
Raymond Hettinger
224c87d60c
Issue #18594 : Fix the fallback path in collections.Counter().
2013-10-01 21:36:09 -07:00
Raymond Hettinger
2ff2190b62
Issue #18594 : Fix the fast path for collections.Counter().
...
The path wasn't being taken due to an over-restrictive type check.
2013-10-01 00:55:43 -07:00
Antoine Pitrou
860aee75b8
Properly initialize all fields of a SSL object after allocation.
2013-09-29 19:52:45 +02:00
Serhiy Storchaka
369606df2f
Issue #19028 : Fixed tkinter.Tkapp.merge() for non-string arguments.
2013-09-23 23:20:07 +03:00
Serhiy Storchaka
31f477c7eb
Issue #3015 : Fixed tkinter with wantobject=False. Any Tcl command call
...
returned empty string.
2013-09-20 23:21:44 +03:00
doko@ubuntu.com
0648bf795c
- followup for issue #18997 , make _clear_joined_ptr static.
2013-09-18 12:12:28 +02:00