Ezio Melotti
a3ccb237c7
Fix rst markup in timeit docs.
2012-09-20 06:13:38 +03:00
Ezio Melotti
ab9b661fdd
#15970 : merge with 3.2.
2012-09-19 08:25:01 +03:00
Ezio Melotti
c90111f9ab
#15970 : xml.etree.ElementTree now serializes correctly the empty HTML elements "meta" and "param".
2012-09-19 08:19:12 +03:00
Trent Nelson
da064d0745
Silence compiler warnings on Solaris 10 via explicit (void *) casts.
2012-09-18 22:00:25 -04:00
Trent Nelson
ab02db23b1
Silence compiler warnings on Solaris 10 via explicit (void *) casts.
...
(Compiler: Solaris Studio 12.3)
2012-09-18 21:58:03 -04:00
Trent Nelson
9a46105a89
#15965 : Explicitly cast AT_FDCWD as (int).
...
Required on Solaris 10 (which defines AT_FDCWD as 0xffd19553),
harmless on other platforms.
2012-09-18 21:50:06 -04:00
Victor Stinner
1da769a302
What's New in Python 3.3: mention unittest.mock
2012-09-18 22:40:03 +02:00
Ezio Melotti
6d10b4d591
#15796 : merge with 3.2.
2012-09-18 07:21:18 +03:00
Ezio Melotti
16d2b47837
#15796 : Fix \n in readline docstring. Patch by Serhiy Storchaka.
2012-09-18 07:20:18 +03:00
Ezio Melotti
4a5fae1b79
#11643 : merge with 3.2.
2012-09-17 09:01:03 +02:00
Ezio Melotti
26e5878d6f
#11643 : fix rst markup error in site.rst.
2012-09-17 08:59:36 +02:00
Ezio Melotti
8646e8ea72
#15920 : merge with 3.2.
2012-09-17 05:30:58 +03:00
Ezio Melotti
13bec9b315
#15920 : fix doctests in Doc/howto/regex.rst. Patch by Chris Jerdonek.
2012-09-17 05:29:47 +03:00
Antoine Pitrou
07085332cf
Issue #15526 : try to fix test_startfile's inability to clean up after itself in time.
...
Patch by Jeremy Kloth.
2012-09-16 00:13:10 +02:00
Antoine Pitrou
8a53dbeb7a
Issue #15526 : try to fix test_startfile's inability to clean up after itself in time.
...
Patch by Jeremy Kloth.
2012-09-16 00:12:50 +02:00
Ezio Melotti
a5377cafea
#15789 : merge with 3.2.
2012-09-15 08:34:47 +03:00
Ezio Melotti
186d5238ea
#15789 : mention shell-like parts of the stdlib in the subprocess docs. Patch by Chris Rebert.
2012-09-15 08:34:08 +03:00
Ezio Melotti
711f093030
#15932 : merge with 3.2.
2012-09-15 05:52:36 +03:00
Ezio Melotti
e34f8a943b
#15932 : use with statement in csv doc examples. Patch by Dario Bertini.
2012-09-15 05:51:45 +03:00
Antoine Pitrou
9b1c84b586
Issue #15842 : the SocketIO.{readable,writable,seekable} methods now raise ValueError when the file-like object is closed.
...
Patch by Alessandro Moura.
2012-09-14 17:30:31 +02:00
Antoine Pitrou
1e7ee9dfa0
Issue #15842 : the SocketIO.{readable,writable,seekable} methods now raise ValueError when the file-like object is closed.
...
Patch by Alessandro Moura.
2012-09-14 17:28:10 +02:00
Ezio Melotti
8429b6784b
#15831 : merge with 3.2
2012-09-14 06:35:09 +03:00
Ezio Melotti
e0add76468
#15831 : document multiple signatures on different lines. Patch by Chris Jerdonek.
2012-09-14 06:32:35 +03:00
Ezio Melotti
c2085dd765
#15437 , #15439 : merge with 3.2.
2012-09-14 01:40:41 +03:00
Ezio Melotti
56f37aa965
#15437 , #15439 : merge Doc/ACKS.txt with Misc/ACKS and modify Doc/about.rst accordingly.
2012-09-14 01:24:44 +03:00
Richard Oudkerk
e8cd6bb127
Issue #15881 : Clarify comment in exit function
2012-09-13 17:27:15 +01:00
Stefan Krah
0b90d66342
Issue #15599 : FreeBSD on KVM cannot handle a very low switch interval.
2012-09-12 21:30:09 +02:00
Barry Warsaw
d89774e158
Merge 3.2 fix updates and tests for issue #15906 .
2012-09-12 15:31:38 -04:00
Barry Warsaw
2dceb359cb
Update merge from 2.7: s/basetring/str
2012-09-12 14:42:34 -04:00
Barry Warsaw
eaae1b76ae
A follow up for issue #15906 : change the test for calling the type conversion
...
on the action's default, reverting it back to previous behavior. Conversion
is only done on string defaults.
Add a test for this and another test that ensures such type conversions are
only called once.
2012-09-12 14:34:50 -04:00
Antoine Pitrou
77c45538f7
Merge
2012-09-12 18:02:18 +02:00
Antoine Pitrou
9d20e0edd9
Issue #15926 : Fix crash after multiple reinitializations of the interpreter.
2012-09-12 18:01:36 +02:00
Christian Heimes
10ca1fee8f
Cleanup 'k' when the creation of PySTEntryObject fails. ad3824a90261 used to decref 'k' in too many error cases.
2012-09-12 17:58:20 +02:00
Christian Heimes
55ad6515c9
Cleanup 'k' when the creation of PySTEntryObject fails. ad3824a90261 used to decref 'k' in too many error cases.
2012-09-12 17:58:10 +02:00
Christian Heimes
9c5b521c71
Partly revert ad3824a90261 and add comment about reference ownership
2012-09-12 17:53:15 +02:00
Christian Heimes
1526582df6
Partly revert ad3824a90261 and add comment about reference ownership
2012-09-12 17:52:46 +02:00
Christian Heimes
7ae251a025
Fix out of bounds read in long_new() for empty bytes with an explicit base. int(b'', somebase) calls PyLong_FromString() with char* of length 1 but the function accesses the first argument at offset 1. CID 715359
2012-09-12 15:32:06 +02:00
Christian Heimes
79b97ee2ab
Fix out of bounds read in long_new() for empty bytes with an explicit base. int(b'', somebase) calls PyLong_FromString() with char* of length 1 but the function accesses the first argument at offset 1. CID 715359
2012-09-12 15:31:43 +02:00
Barry Warsaw
0ae066b281
- Issue #15906 : Fix a regression in argparse caused by the preceding change,
...
when action='append', type='str' and default=[].
2012-09-12 00:12:29 -04:00
Barry Warsaw
4b2f9e914d
- Issue #15906 : Fix a regression in argparse caused by the preceding change,
...
when action='append', type='str' and default=[].
2012-09-11 22:38:47 -04:00
Christian Heimes
8f49456b4e
Updates NEWS for issue #15895
2012-09-11 19:28:42 +02:00
R David Murray
a96be78ed1
Merge #14617 : clarify discussion of interrelationship of __eq__ and __hash__.
2012-09-11 13:02:13 -04:00
R David Murray
d8bbde35fe
#14617 : clarify discussion of interrelationship of __eq__ and __hash__.
2012-09-11 13:01:43 -04:00
Benjamin Peterson
787269797e
merge heads
2012-09-11 12:05:18 -04:00
Benjamin Peterson
6f3e5e48d3
remove useless and defined initialization ( closes #15921 )
2012-09-11 12:05:05 -04:00
Christian Heimes
e9a6d62d9f
Fix null pointer dereferencing in structmember.c PyMember_SetOne() for T_CHAR. _PyUnicode_AsStringAndSize() can return NULL without touching the len argument. Also remove unnecessary PyUnicode_Check(), _PyUnicode_AsStringAndSize() performance the test again. CID 486815
2012-09-11 17:31:08 +02:00
Christian Heimes
5557a9c73f
Fix null pointer dereferencing in structmember.c PyMember_SetOne() for T_CHAR. _PyUnicode_AsStringAndSize() can return NULL without touching the len argument. Also remove unnecessary PyUnicode_Check(), _PyUnicode_AsStringAndSize() performance the test again. CID 486815
2012-09-11 17:30:53 +02:00
Christian Heimes
6d29352cfd
Issue #15895 : my analysis was slightly off. The FILE pointer is only leaked when set_main_loader() fails for a pyc file with closeit=0. In the success case run_pyc_file() does its own cleanup of the fp. I've changed the code to use another FILE ptr for pyc files and moved the fclose() to PyRun_SimpleFileExFlags() to make it more obvious what's happening.
2012-09-11 15:47:28 +02:00
Christian Heimes
6a77af690f
Issue #15895 : Fix FILE pointer leak in PyRun_SimpleFileExFlags() when filename points to a pyc/pyo file and closeit is false.
2012-09-11 14:11:03 +02:00
Christian Heimes
26b9f4b2f3
Spelling past tense -> present tense
2012-09-11 14:08:49 +02:00