Antoine Pitrou
f0effe6379
Better resolution for issue #11849 : Ensure that free()d memory arenas are really released
...
on POSIX systems supporting anonymous memory mappings. Patch by Charles-François Natali.
2011-11-26 01:11:02 +01:00
Petri Lehtinen
61ea8a0d28
Add a "What's New" entry for #12170
2011-11-24 22:00:46 +02:00
Senthil Kumaran
5d036e1ccf
merge from 3.2 testFnNames is assigned twice.
2011-11-25 02:09:24 +08:00
Senthil Kumaran
f27be5c60b
testFnNames is assigned twice.
2011-11-25 02:08:39 +08:00
Victor Stinner
984890fcbb
Close #13415 : Test in configure if unsetenv() has a return value or not.
...
Patch written by Charles-François Natali.
2011-11-24 13:53:38 +01:00
Benjamin Peterson
1518e8713d
and back to the "magic" formula (with a comment) it is
2011-11-23 10:44:52 -06:00
Vinay Sajip
d2b0217944
Merged documentation addition from 3.2.
2011-11-23 14:29:01 +00:00
Vinay Sajip
631a7e23c5
Added a configuration dictionary example to the logging cookbook.
2011-11-23 14:27:54 +00:00
Vinay Sajip
ce378d1945
Closes #13459 : Merged fix from 3.2.
2011-11-23 08:55:59 +00:00
Vinay Sajip
287f24691d
Closes #13459 : Clarified documentation on Logger.propagate. Thanks to Mike Fogel for the patch.
2011-11-23 08:54:22 +00:00
Benjamin Peterson
759345ff8d
merge 3.2 (null)
2011-11-22 23:57:50 -06:00
Benjamin Peterson
06403cff16
decref correct object
2011-11-22 23:57:23 -06:00
Benjamin Peterson
e8eb0e82f3
merge 3.2
2011-11-22 23:14:47 -06:00
Benjamin Peterson
4bb867d3ec
plug refleak
2011-11-22 23:12:49 -06:00
Benjamin Peterson
e0bcca510a
merge heads
2011-11-22 19:06:23 -06:00
Benjamin Peterson
5944c36931
cave to those who like readable code
2011-11-22 19:05:49 -06:00
Antoine Pitrou
bc53032408
Issue #13458 : Fix a memory leak in the ssl module when decoding a certificate with a subjectAltName.
...
Patch by Robert Xiao.
2011-11-23 01:42:52 +01:00
Antoine Pitrou
116d6b98bf
Issue #13458 : Fix a memory leak in the ssl module when decoding a certificate with a subjectAltName.
...
Patch by Robert Xiao.
2011-11-23 01:39:19 +01:00
Giampaolo Rodola'
c8cf4dfa2f
revert cset 6a0da9b65e54 against sched.py committed by accident
2011-11-23 00:03:15 +01:00
Victor Stinner
9329029ed7
(Merge 3.2) Issue #13436 : Fix unsetenv() test on Windows
2011-11-22 22:32:28 +01:00
Victor Stinner
b3f8268031
Issue #13436 : Fix unsetenv() test on Windows
2011-11-22 22:30:19 +01:00
Victor Stinner
cbbd562f00
Merge branch default
2011-11-22 22:23:23 +01:00
Victor Stinner
896f4714f4
Merge branch 3.2
2011-11-22 22:22:26 +01:00
Victor Stinner
65170954e0
(Merge 3.2) Issue #13415 : os.unsetenv() doesn't ignore errors anymore.
2011-11-22 22:16:17 +01:00
Amaury Forgeot d'Arc
942d5ba125
Merge branch 3.2
2011-11-22 22:02:01 +01:00
Victor Stinner
60b385e813
Issue #13415 : os.unsetenv() doesn't ignore errors anymore.
2011-11-22 22:01:28 +01:00
Amaury Forgeot d'Arc
5e8f810411
Issue #13436 : commit regenerated Python-ast.c
2011-11-22 21:52:30 +01:00
Amaury Forgeot d'Arc
58e8761da6
Issue #13436 : Fix a bogus error message when an AST object was passed
...
an invalid integer value.
2011-11-22 21:51:55 +01:00
Benjamin Peterson
0268675193
fix compiler warning by implementing this more cleverly
2011-11-22 15:29:32 -05:00
Giampaolo Rodola'
f683700121
sort last committed name in alphabetical order
2011-11-22 21:19:37 +01:00
Charles-François Natali
23b0b9252e
Issue #13156 : _PyGILState_Reinit(): Re-associate the auto thread state with the
...
TLS key only if the thread that called fork() had an associated auto thread
state (this might not be the case for example for a thread created outside of
Python calling into a subinterpreter).
2011-11-22 19:51:14 +01:00
Charles-François Natali
a233df885b
Issue #13156 : _PyGILState_Reinit(): Re-associate the auto thread state with the
...
TLS key only if the thread that called fork() had an associated auto thread
state (this might not be the case for example for a thread created outside of
Python calling into a subinterpreter).
2011-11-22 19:49:51 +01:00
Amaury Forgeot d'Arc
3b1acf11e9
bytes() can't be used to get a representation of an object.
2011-11-22 19:34:08 +01:00
Charles-François Natali
221ef67fd6
Issue #12156 : Skip test_multiprocessing on systems which don't support enough
...
POSIX semaphores (among which FreeBSD < 8).
2011-11-22 18:55:22 +01:00
Charles-François Natali
98f22d2cf5
Issue #13093 : Perform a real merge.
2011-11-22 18:53:49 +01:00
Charles-François Natali
3be00953b2
Issue #12156 : Skip test_multiprocessing on systems which don't support enough
...
POSIX semaphores (among which FreeBSD < 8).
2011-11-22 18:36:39 +01:00
Giampaolo Rodola'
bc7ea5872b
fix wrong credit and issue id given in previous commit
2011-11-22 13:37:58 +01:00
Giampaolo Rodola'
be55d99b3d
Fix 13245:
...
sched.scheduler class constructor's timefunc and delayfunct parameters are now optional.
scheduler.enter and scheduler.enterabs methods gained a new kwargs parameter.
Patch contributed by Matt Mulsow.
2011-11-22 13:33:34 +01:00
Victor Stinner
ca4f20782e
find_maxchar_surrogates() reuses surrogate macros
2011-11-22 03:38:40 +01:00
Victor Stinner
63ab875cfe
Remove "#ifdef Py_UNICODE_WIDE": Python is now always wide
2011-11-22 03:31:20 +01:00
Victor Stinner
0d3721d986
Issue #13441 : Disable temporary the check on the maximum character until
...
the Solaris issue is solved.
But add assertion on the maximum character in various encoders: UTF-7, UTF-8,
wide character (wchar_t*, Py_UNICODE*), unicode-escape, raw-unicode-escape.
Fix also unicode_encode_ucs1() for backslashreplace error handler: Python is
now always "wide".
2011-11-22 03:27:53 +01:00
Victor Stinner
f8facacf30
Fix compiler warnings
2011-11-22 02:30:47 +01:00
Victor Stinner
9d3b93ba30
Use the new Unicode API
...
* Replace PyUnicode_FromUnicode(NULL, 0) by PyUnicode_New(0, 0)
* Replce PyUnicode_FromUnicode(str, len) by PyUnicode_FromWideChar(str, len)
* Replace Py_UNICODE by wchar_t
* posix_putenv() uses PyUnicode_FromFormat() to create the string, instead
of PyUnicode_FromUnicode() + _snwprintf()
2011-11-22 02:27:30 +01:00
Victor Stinner
b84d723509
(Merge 3.2) Issue #13093 : Fix error handling on PyUnicode_EncodeDecimal()
2011-11-22 01:50:07 +01:00
Victor Stinner
ab1d16b456
Issue #13093 : Fix error handling on PyUnicode_EncodeDecimal()
...
* Add tests for PyUnicode_EncodeDecimal() and PyUnicode_TransformDecimalToASCII()
* Remove the unused "e" variable in replace()
2011-11-22 01:45:37 +01:00
Victor Stinner
cfed46e00a
PyUnicode_FromKindAndData() fails with a ValueError if size < 0
2011-11-22 01:29:14 +01:00
Victor Stinner
42885206ec
UTF-8 decoder: set consumed value in the latin1 fast-path
2011-11-22 01:23:02 +01:00
Victor Stinner
d3df8ab377
Replace _PyUnicode_READY_REPLACE() and _PyUnicode_ReadyReplace() with unicode_ready()
...
* unicode_ready() has a simpler API
* try to reuse unicode_empty and latin1_char singleton everywhere
* Fix a reference leak in _PyUnicode_TranslateCharmap()
* PyUnicode_InternInPlace() doesn't try to get a singleton anymore, to avoid
having to handle a failure
2011-11-22 01:22:34 +01:00
Victor Stinner
c814a38f3f
Add a test on str.__getnewargs__()
...
It tests indirectly PyUnicode_Copy(): ensure that the string is a copy.
2011-11-22 01:06:15 +01:00
Victor Stinner
f01245067a
Rewrite PyUnicode_TransformDecimalToASCII() to use the new Unicode API
2011-11-21 23:12:56 +01:00