Christian Heimes
47770ed914
Fixed memory leak in error branch of object_repr which may leak a reference to mod when type_name returns NULL. CID 715371
2012-09-10 16:57:36 +02:00
doko@ubuntu.com
7a8634d8d8
backport from the trunk, to fix test_tools with srcdir != builddir
...
changeset: 77827:c23b442b5d5e
user: Antoine Pitrou <solipsis@pitrou.net>
date: Thu Jun 28 01:20:26 2012 +0200
summary: Avoid using scrdir, it's broken.
changeset: 77826:f0e58e778215
user: Neil Schemenauer <nas@arctrix.com>
date: Wed Jun 27 15:58:37 2012 -0600
summary: Fix bug in test_tools that prevented building is separate directory.
2012-09-10 14:34:42 +02:00
Christian Heimes
059ba52180
merge
2012-09-10 13:19:15 +02:00
Christian Heimes
d8edcb6505
Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641
2012-09-10 13:16:45 +02:00
doko@ubuntu.com
8fa3be2bc8
- Mention _heapq in Setup.dist.
2012-09-10 11:56:47 +02:00
Christian Heimes
8c1bce00d2
Closed reference leak of variable 'k' in function ste_new which wasn't decrefed in error cases
2012-09-10 03:08:46 +02:00
Christian Heimes
4e80eea60e
Fixed possible reference leak to mod when type_name() returns NULL
2012-09-10 03:00:14 +02:00
Christian Heimes
074ebced1b
PyTuple_Pack() was missing va_end() in its error branch which lead to a resource leak.
2012-09-10 02:54:51 +02:00
Jesus Cea
8b54d6d733
Closes #15676 : mmap: add empty file check prior to offset check
2012-09-10 00:22:39 +02:00
Ned Deily
10fc104fed
Issue #15822 : Fix installation of lib2to3 grammar pickles to ensure
...
they are created in the install locations and with the proper timestamp.
(Solution suggested by MvL)
2012-09-08 18:47:27 -07:00
R David Murray
b9495c78a1
closes #5088 : document behavior of optparse defaults with 'append' action.
2012-09-08 16:47:24 -04:00
R David Murray
1b6e7c47f2
#15510 : clarify textwrap's handling of whitespace, and add confirming tests.
...
Patch by Chris Jerdonek.
2012-09-08 13:42:01 -04:00
Christian Heimes
b676727dca
Fix for fcc629208842
...
BSD's make doesn't support some of the features.
2012-09-08 19:12:05 +02:00
R David Murray
a99c7dedcb
#15847 : allow args to be a tuple in parse_args
...
This fixes a regression introduced by the fix for issue #13922 . Although args
is not documented as being allowed to be a tuple, previously this worked and
so naturally there are programs in the field that depend on it.
Patch by Zbyszek Jędrzejewski-Szmek.
2012-09-08 12:15:25 -04:00
Antoine Pitrou
e299cae230
Issue #15340 : Fix importing the random module when /dev/urandom cannot be opened.
...
This was a regression caused by the hash randomization patch.
2012-09-07 23:49:07 +02:00
Christian Heimes
f84dcffcb9
Fix for fcc629208842
...
BSD's make doesn't support some of the features.
2012-09-07 02:24:58 +02:00
Christian Heimes
bc71f2cf98
Issue #15591 and Issue #11715 : silence output of setup.py when make is run with -s option.
2012-09-07 00:55:33 +02:00
Christian Heimes
f2acf63487
Issue #15591 and Issue #11715 : silence output of setup.py when make is run with -s option.
2012-09-07 00:58:26 +02:00
Christian Heimes
6fd3248855
Issue #15591 : run ctypes' configure in quiet mode when setup.py runs silently
2012-09-06 18:02:49 +02:00
Antoine Pitrou
58098a77e6
Issue #13992 : The trashcan mechanism is now thread-safe. This eliminates
...
sporadic crashes in multi-thread programs when several long deallocator
chains ran concurrently and involved subclasses of built-in container
types.
Because of this change, a couple extension modules compiled for 2.7.4
(those which use the trashcan mechanism, despite it being undocumented)
will not be loadable by 2.7.3 and earlier. However, extension modules
compiled for 2.7.3 and earlier will be loadable by 2.7.4.
2012-09-06 00:59:49 +02:00
Antoine Pitrou
c5eec0e387
Issue #15841 : The readable(), writable() and seekable() methods of io.BytesIO
...
and io.StringIO objects now raise ValueError when the object has been closed.
Patch by Alessandro Moura.
2012-09-05 20:11:49 +02:00
Petri Lehtinen
80f4553d56
#15802 : Fix test logic in TestMaildir.test_create_tmp
2012-09-01 14:25:48 +03:00
Petri Lehtinen
f9e1f1128b
#13769 : Enhance docs for ensure_ascii semantics in JSON decoding functions
2012-09-01 07:29:06 +03:00
R David Murray
201018718f
#12776,#11839: call argparse type function only once.
...
Before, the type function was called twice in the case where the default
was specified and the argument was given as well. This was especially
problematic for the FileType type, as a default file would always be
opened, even if a file argument was specified on the command line.
Patch by Arnaud Fontaine, with additional test by Mike Meyer.
2012-08-31 23:15:28 -04:00
Trent Nelson
cd366620a9
Remove trailing whitespace in order to silence warnings on HP-UX.
2012-08-31 17:15:49 -04:00
Andrew Svetlov
2b326e4c2b
Issue #15825 : fix typo in OrderedDict docs.
...
Patch by Mike Hoy.
2012-08-31 13:53:30 +03:00
Trent Nelson
f6407a184d
Issue #15819 : Fix out-of-tree builds from a readonly source.
2012-08-30 14:56:13 +00:00
Ezio Melotti
6bb9c73b06
Add missing comma.
2012-08-29 17:50:42 +03:00
Vinay Sajip
1321c444d9
Closes #15710 : accept long in _checkLevel.
2012-08-29 14:33:14 +01:00
Vinay Sajip
a116df0f39
Merged upstream changes.
2012-08-29 14:27:07 +01:00
Vinay Sajip
3d212e6ee5
Closes #15807 : Removed incorrect directive from help.
2012-08-29 14:25:42 +01:00
Trent Nelson
da4277a739
Issue #15765 : Fix quirky NetBSD getcwd() behaviour.
...
This is done by extending a previous fix for issue #9185 that was made for
Solaris and OpenBSD to NetBSD as well.
2012-08-29 09:20:41 -04:00
Benjamin Peterson
23d49d3e7e
use the stricter PyMapping_Check ( closes #15801 )
2012-08-28 17:55:35 -04:00
Matthias Klose
25cf30faf9
- fix typo introduced in http://hg.python.org/cpython/rev/f918d4a06c64
2012-08-28 19:23:56 +02:00
Matthias Klose
555b9e07ed
- fix paste error (whitespace) from previous commit
2012-08-28 19:07:08 +02:00
Matthias Klose
63c6f511c3
- Issue #15591 : Fix parsing MAKEFLAGS in the sharedmods target.
2012-08-28 18:52:28 +02:00
Hynek Schlawack
7d978902d0
#14880 : Fix kwargs notation in csv.reader, .writer & .register_dialect
...
Patch by Chris Rebert.
2012-08-28 12:33:46 +02:00
Ezio Melotti
8662c84ac8
#15788 : fix broken links in subprocess doc. Patch by Chris Rebert.
2012-08-27 10:00:05 +03:00
Ronald Oussoren
a00b100c9c
Fix issue 13370: Ensure that ctypes works on Mac OS X when Python is compiled using the clang compiler
2012-08-25 11:18:48 +02:00
Georg Brandl
3196529f3c
Fix wrong way of adding Error information in shutil.copytree.
2012-08-25 10:11:57 +02:00
Mark Dickinson
c63be46b23
Remove overeager test (don't depend on the sign of a nan; cf. issue #14521 )
2012-08-24 20:26:23 +01:00
Mark Dickinson
088cec3ab7
Issue #15544 : Fix Decimal.__float__ to work with payload-carrying NaNs.
2012-08-24 20:06:30 +01:00
Antoine Pitrou
85ede8da00
Add glossary references
2012-08-24 19:49:08 +02:00
Antoine Pitrou
f3e0a69d88
Issue #14674 : Add a discussion of the json module's standard compliance.
...
Patch by Chris Rebert.
2012-08-24 19:46:17 +02:00
Georg Brandl
e991236b4d
Closes #9374 : add back now-unused module attributes; removing them is a backward compatibility issue, since they have a public-seeming name.
2012-08-24 18:17:28 +02:00
Ned Deily
8622f09d98
Issue #15645 : Ensure 2to3 grammar pickles are properly installed.
...
(Patch by Ronald Oussoren)
2012-08-22 23:26:06 -07:00
Georg Brandl
e565cf805d
Remove patch artifacts.
2012-08-21 19:44:00 +02:00
Petri Lehtinen
4efdc09a8d
#15199 : Fix JavaScript's default MIME type to application/javascript
2012-08-20 21:28:46 +03:00
R David Murray
07f6ea5506
#15742 : clarify sqlite parameter substitution example.
2012-08-20 14:17:22 -04:00
Stefan Krah
a8857af37b
Issue #15741 : Fix potential NULL dereference. Found by Coverity.
2012-08-20 17:31:22 +02:00