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
042cb465f6
Fix compiler warning on Windows 64-bit: asdl_seq_SET() stores the index parameter
...
into a Py_ssize_t, instead of an int
2013-11-16 00:16:58 +01:00
Victor Stinner
da062558db
Fix compiler warning (on Windows 64-bit): explicit cast Py_ssize_t to unsigned
...
char, n is in range [0; 255] (a tuple cannot have a negative length)
2013-11-16 00:13:29 +01:00
Victor Stinner
0c083461a5
Fix compiler warning in win32_urandom(): explicit cast to DWORD in
...
CryptGenRandom()
2013-11-15 23:26:25 +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
aa32779632
Issue #19544 , #6516 : no need to catch AttributeError on import pwd/grp
2013-11-15 23:13:17 +01:00
Christian Heimes
06afed07d1
Issue #19544 and Issue #6516 : quick workaround for failing builds
2013-11-15 23:08:21 +01:00
Vinay Sajip
56b04352f8
Issue #19504 : Used American spelling for 'customize'.
2013-11-15 20:58:47 +00:00
Vinay Sajip
9c10d6b800
Issue #19504 : Used American spelling for 'customize'.
2013-11-15 20:58:13 +00:00
Vinay Sajip
5e75829ec3
Closes #19523 : Merged fix from 3.3.
2013-11-15 20:42:47 +00:00
Vinay Sajip
a76157dca6
Issue #19523 : Closed FileHandler leak which occurred when delay was set.
2013-11-15 20:40:27 +00:00
Andrew Kuchling
5e2d45672c
Issue #19544 and Issue #6516 : Restore support for --user and --group parameters to sdist command as found in Python 2.7 and originally slated for Python 3.2 but accidentally rolled back as part of the distutils2 rollback. Closes Issue #6516 .
2013-11-15 13:01:52 -05:00
Victor Stinner
c31ebb60f9
(Merge 3.3) fileutils.c: use MAXPATHLEN instead of PATH_MAX
...
PATH_MAX is not declared on IRIX nor Windows.
2013-11-15 18:14:33 +01:00
Victor Stinner
b11d6cb711
fileutils.c: use MAXPATHLEN instead of PATH_MAX
...
PATH_MAX is not declared on IRIX nor Windows.
2013-11-15 18:14:11 +01:00
Victor Stinner
50e0157013
(Merge 3.3) sysmodule.c: fix sys_update_path(), use Py_ARRAY_LENGTH() to get
...
the size of the fullpath buffer, not PATH_MAX. fullpath is declared using
MAXPATHLEN or MAX_PATH depending on the OS, and PATH_MAX is not declared on
IRIX.
2013-11-15 17:35:31 +01:00
Victor Stinner
2384714819
sysmodule.c: fix sys_update_path(), use Py_ARRAY_LENGTH() to get the size of
...
the fullpath buffer, not PATH_MAX. fullpath is declared using MAXPATHLEN or
MAX_PATH depending on the OS, and PATH_MAX is not declared on IRIX.
2013-11-15 17:33:43 +01:00
Victor Stinner
b5a7a0aa3f
(Merge 3.3) pythonrun.c: fix Py_GetPythonHome(), use Py_ARRAY_LENGTH() to get
...
the size of the env_home buffer, not PATH_MAX+1. env_home is declared using
MAXPATHLEN+1, and PATH_MAX is not declared on IRIX.
2013-11-15 17:12:14 +01:00
Victor Stinner
2f5bbc6a12
pythonrun.c: fix Py_GetPythonHome(), use Py_ARRAY_LENGTH() to get the size of
...
the env_home buffer, not PATH_MAX+1. env_home is declared using MAXPATHLEN+1,
and PATH_MAX is not declared on IRIX.
2013-11-15 17:09:24 +01:00
Guido van Rossum
39ecf2ed13
asyncio: Longer timeout in Windows test_popen. Fixes issue 19598.
2013-11-15 07:41:10 -08:00
Nick Coghlan
4e553e2e52
Avoid triggering the refleak detector
2013-11-16 00:35:34 +10:00
Nick Coghlan
4b9b936429
Don't decref exc too soon
2013-11-16 00:34:13 +10:00
Nick Coghlan
c4c2580d43
Close 19609: narrow scope of codec exc chaining
2013-11-15 21:47:37 +10:00
Guido van Rossum
91d2c5674a
asyncio: Refactor waitpid mocks. Patch by Anthony Baire.
2013-11-14 16:16:29 -08:00
Serhiy Storchaka
8bdc130121
Issue #19592 : Use specific asserts in lib2to3 tests.
2013-11-14 23:49:58 +02:00
Victor Stinner
5eb4f59cd9
Issue #19437 : Fix init_builtin(), handle _PyImport_FindExtensionObject()
...
failure
2013-11-14 22:38:52 +01:00
Victor Stinner
46ef31953e
Issue #19429 , #19437 : fix error handling in the OSError constructor
2013-11-14 22:31:41 +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
Serhiy Storchaka
1eadd6a120
Issue #19592 : Use specific asserts in lib2to3 tests.
2013-11-14 23:50:51 +02:00
Serhiy Storchaka
e048addedc
Issue #19589 : Use specific asserts in asyncio tests.
2013-11-14 23:10:51 +02:00
Guido van Rossum
f38f7f3c7b
asyncio: Avoid ResourceWarning. Fix issue 19580 by Vajrasky Kok.
2013-11-14 10:06:18 -08:00
Stefan Krah
49d0479357
Add unused third arg for the benefit of Valgrind.
2013-11-14 15:35:47 +01:00
Benjamin Peterson
e109ee8205
fix refleaks
2013-11-13 23:49:49 -05:00
Benjamin Peterson
079c998872
adjust style
2013-11-13 23:25:01 -05:00
Guido van Rossum
8ff3e8af72
asyncio: Relax timing requirement. Fixes issue 19579.
2013-11-13 20:17:52 -08:00
Christian Heimes
c6ae813011
merge
2013-11-14 01:48:32 +01:00
Christian Heimes
6a3db25c70
Issue #17828 : _PyObject_GetDictPtr() may return NULL instead of a PyObject**
...
CID 1128792: Dereference null return value (NULL_RETURNS)
2013-11-14 01:47:14 +01:00
Christian Heimes
507eabdf11
Issue #17828 : va_start() must be accompanied by va_end()
...
CID 1128793: Missing varargs init or cleanup (VARARGS)
2013-11-14 01:39:35 +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
c82729e44f
Issue #19437 : Fix fold_unaryops_on_constants() of the peephole optimizer, clear
...
the exception when PyList_Append() fails
2013-11-14 01:21:00 +01:00
Guido van Rossum
2bcae708d8
asyncio: Fix from Anthony Baire for CPython issue 19566 (replaces earlier fix).
2013-11-13 15:50:08 -08:00
Ethan Furman
be3c2fea35
removed Enum.__eq__ as it added nothing
2013-11-13 14:25:45 -08:00
Guido van Rossum
82e9f32f17
asyncio: Temporary fix by Victor Stinner for issue 19566.
2013-11-13 11:08:34 -08:00
Nick Coghlan
d4fdbcc078
Issue #17839 : mention base64 change in What's New
2013-11-14 00:24:31 +10:00
Nick Coghlan
8b097b4ed7
Close #17828 : better handling of codec errors
...
- output type errors now redirect users to the type-neutral
convenience functions in the codecs module
- stateless errors that occur during encoding and decoding
will now be automatically wrapped in exceptions that give
the name of the codec involved
2013-11-13 23:49:21 +10:00