Andrew Svetlov
8a495a48a5
Issue #16511 : Use default IDLE width and height if config param is not valid.
...
Patch Serhiy Storchaka.
2012-12-24 13:15:43 +02:00
Andrew Svetlov
159bb53765
merge heads
2012-12-23 19:55:21 +02:00
Andrew Svetlov
56ad5ed5ad
Issue #16443 : Add docstrings to regular expression match objects.
...
Patch by Anton Kasyanov.
2012-12-23 19:23:07 +02:00
Senthil Kumaran
41e66a26b0
Fix Issue15701 - HTTPError info method call raises AttributeError. Fix that to return headers correctly
2012-12-23 09:04:24 -08:00
Giampaolo Rodola'
fc3278802c
Fix issue #16646 : ftplib.FTP.makeport() might lose socket error details. (patch by Serhiy Storchaka)
2012-12-17 14:20:27 +01:00
Brian Curtin
655b0c462f
Fix #14901 . Update the Windows FAQ.
...
Patch by Ashish Nitin Patil.
2012-12-16 23:58:09 -06:00
Antoine Pitrou
3d068b2ecf
Issue #16626 : Fix infinite recursion in glob.glob() on Windows when the pattern contains a wildcard in the drive or UNC path.
...
Patch by Serhiy Storchaka.
2012-12-16 13:49:37 +01:00
Hynek Schlawack
dec59ec5ff
#16664 : Add regression tests for glob's behaviour concerning "."-entries
...
Patch by Sebastian Kreft.
2012-12-16 12:39:11 +01:00
Antoine Pitrou
084daa2f74
Issue #16298 : In HTTPResponse.read(), close the socket when there is no Content-Length and the incoming stream is finished.
...
Patch by Eran Rundstein.
2012-12-15 19:11:54 +01:00
Hynek Schlawack
d16eacba48
#15872 : Add tests for a 3.3 regression in the new fd-based shutil.rmtree
...
It cause shutil.rmtree not ignore all errors. Also add a test ensuring that
rmtree fails when being called on a symlink. Patch by Serhiy Storchaka.
2012-12-10 09:00:09 +01:00
Antoine Pitrou
7ec3a32360
Issue #16248 : Disable code execution from the user's home directory by tkinter when the -E flag is passed to Python.
...
Patch by Zachary Ware.
2012-12-09 14:46:18 +01:00
Éric Araujo
24457c9ad3
Branch merge
2012-12-08 22:47:03 -05:00
Éric Araujo
8b503c0a4e
Fix setup.py register failure with invalid rst in description ( #13614 ).
...
Original patch by Julien Courteau and Pierre Paul Lefebvre.
2012-12-08 22:41:11 -05:00
Antoine Pitrou
62a0d6ea40
Issue #16602 : When a weakref's target was part of a long deallocation chain, the object could remain reachable through its weakref even though its refcount had dropped to zero.
...
Thanks to Eugene Toder for diagnosing and reporting the issue.
2012-12-08 21:15:26 +01:00
Éric Araujo
d61926e6be
Create ~/.pypirc securely ( #13512 ).
...
There was a window between the write and the chmod where the user’s
password would be exposed, depending on default permissions. Philip
Jenvey’s patch fixes it.
2012-12-08 14:51:47 -05:00
Éric Araujo
3e4a3dcb23
Ignore .nfs* files in distutils ( #7719 ).
...
These files are created by some NFS clients a file is edited and removed
concurrently (see added link in doc for more info). If such a file is
removed between distutils calls listdir and copy, it will get confused.
Other special files are ignored in sdist (namely VCS directories), but
this has to be filtered out earlier.
2012-12-08 14:21:51 -05:00
Antoine Pitrou
305e1a749f
Issue #16628 : Fix a memory leak in ctypes.resize().
2012-12-08 11:05:50 +01:00
Andrew Svetlov
539ee5da6f
Issue #13120 : Allow to call pdb.set_trace() from thread.
...
Patch by Ilya Sandler.
2012-12-04 21:08:28 +02:00
Victor Stinner
27b1ca29cc
Issue #16416 : On Mac OS X, operating system data are now always
...
encoded/decoded to/from UTF-8/surrogateescape, instead of the locale encoding
(which may be ASCII if no locale environment variable is set), to avoid
inconsistencies with os.fsencode() and os.fsdecode() functions which are
already using UTF-8/surrogateescape.
2012-12-03 12:47:59 +01:00
Antoine Pitrou
43fb54cd4f
Issue #10182 : The re module doesn't truncate indices to 32 bits anymore.
...
Patch by Serhiy Storchaka.
2012-12-02 12:52:36 +01:00
Christian Heimes
56379c0d8f
Issue #16588 : Silence unused-but-set warnings in Python/thread_pthread.h
2012-12-02 08:37:00 +01:00
Christian Heimes
8ca1d5f762
- Issue #16593 : Have BSD 'make -s' do the right thing, thanks to Daniel Shahaf
2012-12-02 08:14:50 +01:00
Benjamin Peterson
343d530d67
add changelog
2012-11-29 10:57:01 -05:00
Ezio Melotti
b32512ed9a
#16476 : Fix json.tool to avoid including trailing whitespace.
2012-11-29 02:25:03 +02:00
Ezio Melotti
057bcb4c6c
#16549 : Make json.tool work again on Python 3 and add tests. Initial patch by Berker Peksag and Serhiy Storchaka.
2012-11-29 02:15:18 +02:00
Chris Jerdonek
c2a7fd60e1
Improve argument/parameter documentation (issue #15990 ).
...
This commit adds "parameter" to the glossary, improves and consolidates the
"argument" glossary entry, and adds a question to the FAQ on the difference
between arguments and parameters.
2012-11-28 02:29:33 -08:00
Gregory P. Smith
14b04cd350
Plug a leak in timemodule. The module dictionary is saved during
...
initialization. If the interpreter is shut down and reinitialized (embedded
CPython), the old module dictionary was not dec-refed during the next import of
the time extension module.
Contributed by Torsten Marek of Google.
2012-11-27 10:16:55 -08:00
Ezio Melotti
8c52370403
#16559 : Add more tests for the json module. Patch by Serhiy Storchaka.
2012-11-26 19:24:20 +02:00
Antoine Pitrou
bf6ecf92fa
Issue #12848 : The pure Python pickle implementation now treats object lengths as unsigned 32-bit integers, like the C implementation does.
...
Patch by Serhiy Storchaka.
2012-11-24 20:40:21 +01:00
Chris Jerdonek
17fc44c9b3
Improve str() and object.__str__() documentation (issue #13538 ).
2012-11-20 17:31:02 -08:00
Antoine Pitrou
39bdad813a
Issue #1160 : Fix compiling large regular expressions on UCS2 builds.
...
Patch by Serhiy Storchaka.
2012-11-20 22:30:42 +01:00
Ezio Melotti
7c66319edc
#16306 : Fix multiple error messages when unknown command line parameters where passed to the interpreter. Patch by Hieu Nguyen.
2012-11-18 13:55:52 +02:00
Ezio Melotti
6a5fc4c443
#14313 : zipfile now raises NotImplementedError when the compression type is unknown.
2012-11-18 13:20:36 +02:00
Antoine Pitrou
17babc5e97
Issue #16408 : Fix file descriptors not being closed in error conditions in the zipfile module.
...
Patch by Serhiy Storchaka.
2012-11-17 23:50:08 +01:00
Jesus Cea
e4b863982c
Closes #16461 : Wave library should be able to deal with 4GB wav files, and sample rate of 44100 Hz.
2012-11-17 03:41:54 +01:00
Chris Jerdonek
f9e49eaefc
Update the description of which package versions PyPI displays (issue #16400 ).
2012-11-14 12:12:30 -08:00
Antoine Pitrou
e11fecb5a9
Issue #16453 : Fix equality testing of dead weakref objects.
...
Also add tests for ordering and hashing.
2012-11-11 19:36:51 +01:00
Nadeem Vawda
19e568d254
Issue #15677 : Document that zlib and gzip accept a compression level of 0 to mean 'no compression'.
...
Patch by Brian Brazil.
2012-11-11 14:04:14 +01:00
Gregory P. Smith
12489d98e6
Fixes issue #16140 : The subprocess module no longer double closes its
...
child subprocess.PIPE parent file descriptors on child error prior to
exec().
This would lead to race conditions in multithreaded programs where
another thread opened a file reusing the fd which was then closed out
from beneath it by the errant second close.
2012-11-11 01:37:02 -08:00
Gregory P. Smith
3aee222122
Remove the subprocess "bad exception data" warning (formerly a print!)
...
all together and just include the repr of the data in the exception
itself instead of the useless string "Unknown".
This code path is unlikely to even be possible to take given the
nature of the pipe it gets subprocess data from.
2012-11-11 00:04:13 -08:00
Gregory P. Smith
3d8e776cd9
Fixes issue #16327 : The subprocess module no longer leaks file descriptors
...
used for stdin/stdout/stderr pipes to the child when fork() fails.
2012-11-10 22:32:22 -08:00
Gregory P. Smith
6f62b58134
move note to the right section
2012-11-10 21:07:04 -08:00
Gregory P. Smith
2ec82331b2
Fixes issue #14396 : Handle the odd rare case of waitpid returning 0 when
...
not expected in subprocess.Popen.wait().
2012-11-10 20:52:29 -08:00
Gregory P. Smith
9463e3ac8b
Fixes issue #9535 : Fix pending signals that have been received but not
...
yet handled by Python to not persist after os.fork() in the child process.
2012-11-10 20:33:07 -08:00
Nadeem Vawda
7ee955550b
Issue #16411 : Fix a bug where zlib.decompressobj().flush() might try to access previously-freed memory.
...
Patch by Serhiy Storchaka.
2012-11-11 03:15:32 +01:00
Nadeem Vawda
ee7889dec3
Issue #16350 , part 2: Set unused_data (and unconsumed_tail) correctly in decompressobj().flush().
...
Additionally, fix a bug where a MemoryError in allocating a bytes object could
leave the decompressor object in an invalid state (with its unconsumed_tail
member being NULL).
Patch by Serhiy Storchaka.
2012-11-11 02:14:36 +01:00
Antoine Pitrou
5c89b4ec55
Issue #16357 : fix calling accept() on a SSLSocket created through SSLContext.wrap_socket().
...
Original patch by Jeff McNeil.
2012-11-11 01:25:36 +01:00
Ezio Melotti
9bf379e9fb
#13301 : use ast.literal_eval() instead of eval() in Tools/i18n/msgfmt.py. Patch by Serhiy Storchaka.
2012-11-09 11:46:19 +01:00
Hynek Schlawack
5c6b3e214c
Issue #15001 : fix segfault on "del sys.module['__main__']"
...
Patch by Victor Stinner.
2012-11-07 09:02:24 +01:00
Nadeem Vawda
39079946a2
Issue #16350 : Fix zlib decompressor handling of unused_data with multiple calls to decompress() after EOF.
...
Patch by Serhiy Storchaka.
2012-11-05 00:37:42 +01:00
Ezio Melotti
6c5f5210be
#5057 : the peepholer no longer optimizes subscription on unicode literals (e.g. u"foo"[0]) in order to produce compatible pyc files between narrow and wide builds.
2012-11-05 00:06:32 +02:00
Mark Dickinson
8cd1c7681d
Issue #16402 : In range slicing, fix shadowing of exceptions from __index__ method.
2012-11-04 11:46:17 +00:00
Ezio Melotti
540da76115
#16336 : fix input checking in the surrogatepass error handler. Patch by Serhiy Storchaka.
2012-11-03 23:03:39 +02:00
Ezio Melotti
8af179e744
Fix a couple typos in Misc/NEWS.
2012-11-03 21:30:32 +02:00
Ezio Melotti
c64bcbec4b
#8401 : assigning an int to a bytearray slice (e.g. b[3:4] = 5) now raises an error.
2012-11-03 21:19:06 +02:00
Ezio Melotti
0941d9fc64
#12759 : sre_parse now raises a proper error when the name of the group is missing. Initial patch by Serhiy Storchaka.
2012-11-03 20:33:08 +02:00
Ezio Melotti
2cc3b4ba9f
#16152 : fix tokenize to ignore whitespace at the end of the code when no newline is found. Patch by Ned Batchelder.
2012-11-03 17:38:43 +02:00
Andrew Svetlov
d183767ca4
Issue #1207589 : Add Cut/Copy/Paste items to IDLE right click Context Menu
...
Patch by Todd Rovito.
2012-11-01 22:41:19 +02:00
Antoine Pitrou
e4ad37e50e
Issue #16230 : Fix a crash in select.select() when one the lists changes size while iterated on.
...
Patch by Serhiy Storchaka.
2012-11-01 20:13:54 +01:00
Antoine Pitrou
9f69e79c45
Issue #16228 : Fix a crash in the json module where a list changes size while it is being encoded.
...
Patch by Serhiy Storchaka.
2012-11-01 19:52:06 +01:00
Benjamin Peterson
37d2c99b22
fix spelling
2012-10-31 14:16:09 -04:00
Benjamin Peterson
275c848736
merge heads
2012-10-31 14:06:07 -04:00
Benjamin Peterson
d1f2cb37a2
only fast-path fromkeys() when the constructor returns a empty dict ( closes #16345 )
2012-10-31 14:05:55 -04:00
Jesus Cea
64085e3064
Closes #16369 : Global PyTypeObjects not initialized with PyType_Ready(...). DOCUMENT IT!
2012-10-31 17:00:59 +01:00
Brian Curtin
e9aeca7c24
Fix #16197 . Update docstrings and documentation to match winreg code.
...
Patch by Zachary Ware.
2012-10-29 18:16:39 -05:00
Petri Lehtinen
92c28cace4
#14897 : Enhance error messages of struct.pack and struct.pack_into
...
Patch by Matti Mäki.
2012-10-29 21:24:07 +02:00
Mark Dickinson
fb90c0934c
Issue #14700 : Fix buggy overflow checks for large precision and width in new-style and old-style formatting.
2012-10-28 10:18:03 +00:00
Ezio Melotti
380ce651e9
#8040 : add a version switcher to the documentation. Patch by Yury Selivanov.
2012-10-27 22:09:16 +03:00
R David Murray
252cd0e4e0
#12890 : don't emit <p> tags in text mode when logdir specified.
...
Patch by Jeff McNeil.
2012-10-27 14:42:47 -04:00
Senthil Kumaran
cad7b31467
Issue #16250 : Fix URLError invocation with proper args.
2012-10-27 02:26:46 -07:00
Mark Dickinson
76464494bc
Fix math.factorial KeyboardInterrupt segfault. Thanks Amaury for report and diagnosis.
2012-10-25 10:46:28 +01:00
Matthias Klose
c4c4842d86
- Issue #16262 : fix out-of-src-tree builds, if mercurial is not installed.
2012-10-21 23:05:35 +02:00
Nadeem Vawda
5f8f0d6777
Issue #14398 : Fix size truncation and overflow bugs in bz2 module.
2012-10-21 21:13:27 +02:00
Antoine Pitrou
ae247a5ff6
Issue #16220 : wsgiref now always calls close() on an iterable response.
...
Patch by Brent Tubbs.
2012-10-21 14:09:05 +02:00
Nick Coghlan
34937ce249
Issue #6074 : Forward port Windows read-only source file fix from 2.7
2012-10-19 22:38:14 +10:00
Giampaolo Rodola'
2d51f687e1
Fix issue #16270 : urllib may hang when used for retrieving files via FTP by using a context manager.
2012-10-19 13:40:28 +02:00
Antoine Pitrou
1eff0fc3cd
Issue #15378 : Fix Tools/unicode/comparecodecs.py. Patch by Serhiy Storchaka.
2012-10-17 16:12:30 +02:00
Brian Curtin
0b960f5a58
Fix #16176 . Properly identify Windows 8 via platform.platform()
...
Add handling of the 6.2 release line, aka Windows 8 and Windows 2012 Server.
2012-10-11 16:07:52 -05:00
Gregory P. Smith
5591b02a4c
Fixes Issue #16114 : The subprocess module no longer provides a
...
misleading error message stating that args[0] did not exist when
either the cwd or executable keyword arguments specified a path that
did not exist.
It now keeps track of if the child got as far as preexec and reports it if
not back to the parent via a special "noexec" error message value in
the error pipe so that the cwd can be blamed for a failed chdir
instead of the exec of the executable being blamed instead.
The executable is also always reported accurately when exec fails.
Unittests enhanced to cover these cases.
2012-10-10 03:34:47 -07:00
Chris Jerdonek
470ee39883
Issue #16115 : Improve subprocess.Popen() documentation around args, shell, and executable arguments.
2012-10-08 23:06:57 -07:00
Hynek Schlawack
0230b6af78
#13498 : Clarify docs of os.makedirs()'s exist_ok argument.
...
Done with great native-speaker help from R. David Murray.
2012-10-07 18:04:38 +02:00
Chris Jerdonek
83fe2e1c22
Issue #14783 : Improve int() docstring and also str(), range(), and slice().
...
This commit rewrites the docstring for int() to incorporate the documentation
changes made in issue #16036 . It also switches the docstrings for int(),
str(), range(), and slice() to use multi-line signatures.
2012-10-07 14:48:36 -07:00
Jesus Cea
fc990e942f
Closes #16112 : platform.architecture does not correctly escape argument to /usr/bin/file
2012-10-04 13:51:43 +02:00
Jesus Cea
09bf7a799d
Closes #15897 : zipimport.c doesn't check return value of fseek()
2012-10-03 02:13:05 +02:00
Ezio Melotti
d0fe3e5abb
#15979 : improve timeit documentation.
2012-10-02 05:35:39 +03:00
Ezio Melotti
cb2916a714
#15923 : fix a mistake in asdl_c.py that resulted in a TypeError after 2801bf875a24 (see #15801 ).
2012-09-30 22:41:37 +03:00
Chris Jerdonek
ec3ea94251
Issue #15533 : Clarify docs and add tests for subprocess.Popen()'s cwd argument.
2012-09-30 00:10:28 -07:00
Gregory P. Smith
3905171f1e
Fixes issue #15756 : subprocess.poll() now properly handles errno.ECHILD
...
to return a returncode of 0 when the child has already exited or cannot
be waited on.
2012-09-29 11:40:38 -07:00
Michael Foord
7a1901f861
Closes issue #12376 : Pass on parameters in unittest.TextTestResult.__init__ super call
2012-09-28 14:14:03 +01:00
Chris Jerdonek
57491e0703
Issue #16036 : Improve documentation of built-in int()'s signature and arguments.
2012-09-28 00:10:44 -07:00
Petri Lehtinen
f39884bb5a
#15222 : Insert blank line after each message in mbox mailboxes
2012-09-25 22:02:06 +03:00
Barry Warsaw
1dedd0a4a4
- Issue #15935 : Clarification of argparse docs, re: add_argument() type and
...
default arguments. Patch contributed by Chris Jerdonek.
2012-09-25 10:37:58 -04:00
Senthil Kumaran
67b7b98a47
Issue #16013 : Fix CSV Reader parsing issue with ending quote characters. Patch by Serhiy Storchaka.
2012-09-25 02:30:27 -07:00
Christian Heimes
e26d3af7ee
Issue #16012 : Fix a regression in pyexpat. The parser's UseForeignDTD()
...
method doesn't require an argument again.
2012-09-24 13:17:08 +02:00
Antoine Pitrou
6f80f5d444
Issue #15379 : Fix passing of non-BMP characters as integers for the charmap decoder (already working as unicode strings).
...
Patch by Serhiy Storchaka.
2012-09-23 19:55:21 +02:00
Ezio Melotti
85710a40e7
#15421 : fix an OverflowError in Calendar.itermonthdates() after datetime.MAXYEAR. Patch by Cédric Krier.
2012-09-21 17:26:35 +03:00
Ezio Melotti
e418d76089
#15304 : fix wrong warning message in test.support.temp_cwd().
2012-09-21 16:48:12 +03:00
doko@ubuntu.com
98b1c446d5
- Issue #11715 : Fix multiarch detection without having Debian development
...
tools (dpkg-dev) installed.
2012-09-21 13:52:29 +02: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
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
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
Jesus Cea
c8754a13e6
Closes #15793 : Stack corruption in ssl.RAND_egd()
2012-09-11 02:00:58 +02:00
Jesus Cea
941bfcc537
Closes #15676 : mmap: add empty file check prior to offset check
2012-09-10 00:27:55 +02:00
Alexander Belopolsky
7330da4297
Issue #15881 : Added NEWS entry and proper credit.
2012-09-09 14:11:45 -04:00
Ned Deily
47bcfff26b
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:50:56 -07:00
Antoine Pitrou
7ff1822ec7
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
Antoine Pitrou
56cd62c04a
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 3.2.4
(those which use the trashcan mechanism, despite it being undocumented)
will not be loadable by 3.2.3 and earlier. However, extension modules
compiled for 3.2.3 and earlier will be loadable by 3.2.4.
2012-09-06 00:59:49 +02:00
Antoine Pitrou
1d857453b7
Issue #15841 : The readable(), writable() and seekable() methods of BytesIO
...
and StringIO objects now raise ValueError when the object has been closed.
Patch by Alessandro Moura.
2012-09-05 20:11:49 +02:00
R David Murray
94dd7cb0c7
#15509 : If %action substitution produces a null string, drop it.
...
Patch by Anton Barkovsky, comment addition by me.
This showed up as a bug in 3.3 because the definition for Chrome
produced such an empty string. This fix is tested in 3.3+;
backporting the new test suite is more trouble than it is worth.
2012-09-03 12:30:12 -04:00
Benjamin Peterson
2e2c903700
prevert ast errors from being normalized before ast_error_finish is called ( closes #15846 )
2012-09-02 14:23:15 -04:00
Petri Lehtinen
1c371b255f
#15802 : Fix test logic in TestMaildir.test_create_tmp
2012-09-01 14:22:36 +03:00
R David Murray
6fb8fb17bf
#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 22:45:20 -04:00
Trent Nelson
a45afcada3
Issue #15819 : Fix out-of-tree builds from a readonly source.
2012-08-30 14:32:02 +00:00
Benjamin Peterson
28a6cfaefc
use the stricter PyMapping_Check ( closes #15801 )
2012-08-28 17:55:35 -04:00
Petri Lehtinen
72b1426cfb
#11964 : Document a change in v3.2 to the json indent parameter
2012-08-28 07:08:44 +03:00
Ronald Oussoren
25437565f9
Fix issue 13370: Ensure that ctypes works on Mac OS X when Python is compiled using the clang compiler
2012-08-25 11:19:14 +02:00
Mark Dickinson
e4204bcfb7
Issue #15544 : Fix Decimal.__float__ to work with payload-carrying NaNs.
2012-08-24 19:32:13 +01:00
Antoine Pitrou
331624b67d
Issue #14674 : Add a discussion of the json module's standard compliance.
...
Patch by Chris Rebert.
2012-08-24 19:37:23 +02:00
R David Murray
638d40b433
#15249 : Mangle From lines correctly when body contains invalid bytes.
...
Fix by Colin Su. Test by me, based on a test written by Petri Lehtinen.
2012-08-24 11:14:13 -04:00
Ross Lagerwall
f2b34b8b96
Issue 15777: Fix a refleak in _posixsubprocess.
...
It was exposed by 03c98d05b140 and dbbf3ccf72e8.
2012-08-24 13:25:59 +02:00
Ned Deily
01d183732e
Issue #15645 : Ensure 2to3 grammar pickles are properly installed.
...
(Patch by Ronald Oussoren)
2012-08-22 23:27:26 -07:00
Ronald Oussoren
eb61f8b3a7
Fix for issue 15716: interpreter could crash when PYTHONEXECUTABLE was set on Mac OS X.
...
This is due to an off-by-one error: the allocated buffer didn't have room for a NUL
character at the end of the mbstowcs result.
2012-08-22 14:24:14 +02:00
Trent Nelson
ee253ebf62
Issue #15747 : skip chflags UF_IMMUTABLE tests if EOPNOTSUPP is raised.
...
This is necessary for ZFS systems, which don't support UF_IMMUTABLE.
2012-08-21 23:41:43 +00:00
Trent Nelson
514dbb03ba
Issue #15285 : Refactor connect timeout test in test_timeout.
2012-08-20 21:22:59 -04:00
Petri Lehtinen
c6fdafcdf3
#15199 : Fix JavaScript's default MIME type to application/javascript
2012-08-20 21:28:58 +03:00
Antoine Pitrou
75506e8b7c
Issue #15726 : Fix incorrect bounds checking in PyState_FindModule.
...
Patch by Robin Schreiber.
2012-08-20 19:30:46 +02:00
R David Murray
e56bf97ef4
#13579 : teach string.Formatter about 'a'.
...
Patch by Francisco Martín Brugué.
2012-08-19 17:26:34 -04:00
Andrew Svetlov
828607170d
Issue #15595 : Fix subprocess.Popen(universal_newlines=True)
...
for certain locales (utf-16 and utf-32 family).
Patch by Chris Jerdonek.
2012-08-19 22:13:41 +03:00
Antoine Pitrou
b47ea9a6fe
Issue #15615 : Add some tests for the json module's handling of invalid input data.
...
Patch by Kushal Das.
2012-08-18 20:46:23 +02:00
Mark Dickinson
05d79e9abf
Issue #15477 : Add workaround for log1p(-0.0) on platforms where it's broken.
2012-08-18 12:24:30 +01:00
Antoine Pitrou
6f430e4963
Issue #15604 : Update uses of PyObject_IsTrue() to check for and handle errors correctly.
...
Patch by Serhiy Storchaka.
2012-08-15 23:18:25 +02:00
Petri Lehtinen
3d12c4317c
#11062 : Fix adding a message from file to Babyl mailbox
2012-08-15 14:26:27 +03:00
Richard Oudkerk
e88a2445bc
Issue #15646 : Prevent equivalent of a fork bomb when using multiprocessing
...
on Windows without the "if __name__ == '__main__'" idiom.
2012-08-14 11:41:32 +01:00
Brian Curtin
6f5c5cb75b
Fix #15496 . Add directory removal helpers to make Windows tests more reliable. Patch by Jeremy Kloth
2012-08-13 17:05:57 -05:00
Senthil Kumaran
1ef9caa2a1
Issue #15630 : Add an example for "continue" statement in the tutorial. Patch by
...
Daniel Ellis.
2012-08-12 12:01:47 -07:00
Antoine Pitrou
fbd4f80979
Issue #15444 : Use proper spelling for non-ASCII contributor names.
...
Patch by Serhiy Storchaka.
2012-08-11 16:51:50 +02:00
Meador Inge
03b4d5072a
Issue #15424 : Add a __sizeof__ implementation for array objects.
...
Patch by Ludwig Hähne.
2012-08-10 22:35:45 -05:00
Brett Cannon
9b000e7a68
Issue #15482 : Properly document the default 'level' parameter for
...
__import__().
To help explain why the -1 default value is typically not seen, a note
about how import statements only use values of >= 0 is also noted.
2012-08-05 20:46:25 -04:00
Ned Deily
03e2180b3f
Issue #15560 : Fix building _sqlite3 extension on OS X with an SDK.
2012-08-05 14:56:21 -07:00
Andrew Svetlov
5ad514d281
Issue #13052 : Fix IDLE crashing when replace string in Search/Replace dialog ended with '\'.
...
Patch by Roger Serwy.
2012-08-04 21:38:22 +03:00
Victor Stinner
90ef747e04
Close #13119 : use "\r\n" newline for sys.stdout/err on Windows
...
sys.stdout and sys.stderr are now using "\r\n" newline on Windows, as Python 2.
2012-08-04 01:37:32 +02:00
Jesus Cea
16e2fca47e
Closes #15469 : Correct __sizeof__ support for deque
2012-08-03 14:49:42 +02:00
Jesus Cea
e9c5318967
Closes #15512 : Correct __sizeof__ support for parser
2012-08-03 14:28:37 +02:00
Antoine Pitrou
a9a53c7dc0
Issue #15538 : Fix compilation of the getnameinfo() / getaddrinfo() emulation code.
...
Patch by Philipp Hagemeister.
2012-08-02 20:37:12 +02:00
Martin v. Löwis
4c1730db7c
Issue #8847 : Disable COMDAT folding in Windows PGO builds.
...
Analysis by Victor Stinner. Patch by Stefan Krah.
2012-08-01 10:32:11 +02:00
Andrew Svetlov
06c5c6d694
Issue #9803 : Don't close IDLE on saving if breakpoint is open.
...
Patch by Roger Serwy.
2012-07-31 19:48:00 +03:00
Andrew Svetlov
1fb0e3f3a2
Issue #12288 : Consider '0' and '0.0' as valid initialvalue for tkinter SimpleDialog.
2012-07-30 19:59:53 +03:00
Ned Deily
3b796680c3
Issue #14018 : Fix OS X Tcl/Tk framework checking when using OS X SDKs.
2012-07-30 04:09:32 -07:00
Antoine Pitrou
8f328d0c1d
Issue #15489 : Add a __sizeof__ implementation for BytesIO objects.
...
Patch by Serhiy Storchaka.
2012-07-30 00:01:06 +02:00
Antoine Pitrou
10f0c50a0b
Issue #15487 : Add a __sizeof__ implementation for buffered I/O objects.
...
Patch by Serhiy Storchaka.
2012-07-29 19:02:46 +02:00
Martin v. Löwis
33f799725c
Issue #15467 : Move helpers for __sizeof__ tests into test_support.
...
Patch by Serhiy Storchaka.
2012-07-29 16:33:05 +02:00
Richard Oudkerk
4887b1c0e7
Issue #6056 : Make multiprocessing use setblocking(True) on the sockets it uses.
...
Original patch by J Derek Wilson.
2012-07-27 14:06:11 +01:00
Andrew Svetlov
e708a8a4aa
Issue #15041 : update "see also" list in tkinter documentation.
2012-07-26 17:02:57 +03:00
Antoine Pitrou
09f2e6f902
Issue #15320 : Make iterating the list of tests thread-safe when running tests in multiprocess mode.
...
Patch by Chris Jerdonek.
2012-07-26 00:45:19 +02:00
R David Murray
186396dce6
#15232 : make NEWS entry more accurate.
2012-07-24 14:22:19 -04:00
Ned Deily
ecd4e9de5a
Issue #14197 : For OS X framework builds, ensure links to the shared
...
library are created with the proper ABI suffix.
2012-07-24 03:31:48 -07:00
Meador Inge
b14d8c9bcf
Issue #15402 : Add a __sizeof__ method to struct.Struct.
...
Initial patch by Serhiy Storchaka.
2012-07-23 10:01:29 -05:00
Senthil Kumaran
7e918cfe28
merge heads.
2012-07-22 19:32:44 -07:00
Senthil Kumaran
28a9f2193a
- Issue #15250 : Document that filecmp.dircmp compares files shallowly. Patch contributed by Chris Jerdonek.
2012-07-22 19:12:58 -07:00
R David Murray
6a31bc6d81
#15232 : correctly mangle From lines in MIME preamble and epilogue
2012-07-22 21:47:53 -04:00
R David Murray
00528e8fec
#13922 : argparse no longer incorrectly strips '--' after the first one.
...
Patch by Jeff Knupp.
2012-07-21 22:48:35 -04:00
R David Murray
b94082a71b
#12353 : argparse now correctly handles null argument values.
...
Patch by Torsten Landschoff.
2012-07-21 22:20:11 -04:00
Florent Xicluna
d6da90f93d
Issues #10017 and #14998 : Fix TypeError using pprint on dictionaries with unorderable key.
2012-07-21 11:17:38 +02:00
Antoine Pitrou
b4bbee25b1
Issue #14579 : Fix CVE-2012-2135: vulnerability in the utf-16 decoder after error handling.
...
Patch by Serhiy Storchaka.
2012-07-21 00:45:14 +02:00
Andrew Svetlov
ddcb6206bf
Issue #15404 : Refleak in PyMethodObject repr.
2012-07-20 14:51:45 +03:00
Meador Inge
29e49d6394
Issue #15394 : Fix ref leaks in PyModule_Create.
...
Patch by Julia Lawall.
2012-07-19 13:45:43 -05:00
Meador Inge
60c2266afe
Issue #6493 : Fix handling of c_uint32 bitfields with width of 32 on Windows.
2012-07-19 00:01:22 -05:00
Meador Inge
2ca6315d15
Issue #15368 : make bytecode generation deterministic.
2012-07-18 14:20:11 -05:00
Gregory P. Smith
dad5711677
Fixes Issue #14635 : telnetlib will use poll() rather than select() when possible
...
to avoid failing due to the select() file descriptor limit.
2012-07-15 23:42:26 -07:00
Hynek Schlawack
4774946c3b
#15180 : Clarify posixpath.join() error message when mixing str & bytes
2012-07-15 16:21:30 +02:00
Nick Coghlan
a3d1cac4b2
Issue #15230 : Update runpy docs to clarify a couple of points that came up in this issue
2012-07-15 00:36:39 +10:00
Nick Coghlan
761bb11374
Close #15230 : runpy.run_path now sets __package__ correctly. Also refactored the runpy tests to use a more systematic approach
2012-07-14 23:59:22 +10:00
Antoine Pitrou
282083d5f4
Issue #15300 : Ensure the temporary test working directories are in the same parent folder when running tests in multiprocess mode from a Python build.
...
Patch by Chris Jerdonek.
2012-07-11 19:19:14 +02:00
Senthil Kumaran
168456df11
revert the changes done for issue14826 - quoting witin Request is not desirable.
2012-07-08 17:47:25 -07:00
Terry Jan Reedy
83efd6cbb6
Issue #13557 : Clarify effect of giving two different namespaces to exec or
...
execfile().
2012-07-08 17:36:14 -04:00
Senthil Kumaran
45ce4dc73e
issue 14826 - Address the buildbot failure ( explanation msg164973)
2012-07-08 02:08:48 -07:00
Senthil Kumaran
b7451cecad
Fix issue14826 - make urllib.request.Request quoted url consistent with URLOpener open method.
...
Patch contributed by Stephen Thorne.
2012-07-07 17:11:44 -07:00
Florent Xicluna
11f0b41e9d
Issue #14990 : tokenize: correctly fail with SyntaxError on invalid encoding declaration.
2012-07-07 12:13:35 +02:00
Antoine Pitrou
9235b254dc
Issue #15247 : FileIO now raises an error when given a file descriptor pointing to a directory.
2012-07-06 18:48:24 +02:00
Antoine Pitrou
01cca5e451
Issue #15020 : The program name used to search for Python's path is now "python3" under Unix, not "python".
2012-07-05 20:56:30 +02:00
Senthil Kumaran
f01a337950
Fix issue # 15033 - Return the proper exitcode for failure when modules are invoked using -m switch. Patch contributed by Jeff Knupp
2012-07-04 19:28:16 -07:00
Petri Lehtinen
5b5619f717
#5346 : Preserve permissions of mbox, MMDF and Babyl mailbox files on flush()
2012-06-29 15:10:41 +03:00
Antoine Pitrou
24319ac407
Issue #10571 : Fix the "--sign" option of distutils' upload command.
...
Patch by Jakub Wilk.
2012-06-29 01:05:26 +02:00
Petri Lehtinen
f29435f9f0
#9559 : Append data to single-file mailbox files if messages are only added
...
If messages were only added, a new file is no longer created and
renamed over the old file when flush() is called on an mbox, MMDF or
Babyl mailbox.
2012-06-28 13:53:23 +03:00
David Malcolm
b83719287d
Issue #14443 : ensure that brp-python-bytecompile is invoked with the correct
...
python executable
The __os_install_macro defines some post-processing activities during an rpm
build; one of the scripts it calls is brp-python-bytecompile, which can take
an argument: the python executable with which to byte-compile .py files in the
package payload.
In some older versions of rpm (e.g. in RHEL 6), this invocation doesn't pass
in an argument, and brp-python-bytecompile defaults to using /usr/bin/python,
which can lead to the .py files being byte-compiled for the wrong version of
python. This has been fixed in later versions of rpm by passing in
%{__python} as an argument to brp-python-bytecompile.
Workaround this by detecting if __os_install_post has a 0-argument invocation
of brp-python-bytecompile, and if so generating an equivalent macro that has
the argument, and explicitly provide the new definition within the specfile.
2012-06-26 14:06:23 -04:00
Gregory P. Smith
5135992164
Fixes issue #12268 : File readline, readlines and read() or readall() methods
...
no longer lose data when an underlying read system call is interrupted.
IOError is no longer raised due to a read system call returning EINTR
from within these methods.
2012-06-23 23:55:39 -07:00
Antoine Pitrou
99cc629969
Issue #15142 : Fix reference leak when deallocating instances of types created using PyType_FromSpec().
2012-06-23 14:42:38 +02:00
Alexander Belopolsky
a07548e97b
Issue #14653 : email.utils.mktime_tz() no longer relies on system
...
mktime() when timezone offest is supplied.
2012-06-21 20:34:09 -04:00
Hynek Schlawack
9ed8b4e4ca
#10053 : Don't close FDs when FileIO.__init__ fails
...
Loosely based on the work by Hirokazu Yamamoto.
2012-06-21 20:20:25 +02:00
Nadeem Vawda
103e8113e4
Fix GzipFile's handling of filenames given as bytes objects.
2012-06-20 01:35:22 +02:00
Richard Oudkerk
f29ec4b0c8
Issue #15101 : Make pool finalizer avoid joining current thread.
2012-06-18 15:54:57 +01:00
Petri Lehtinen
da7a6e7da0
Fix NEWS entry for #15036
2012-06-18 10:43:53 +03:00
Nick Coghlan
14d99a1491
Ignore X-Antivirus headers in test_nntplib
2012-06-17 21:27:18 +10:00
Nick Coghlan
be4e4b5691
Issue #15043 : skip test_gdb if the custom hooks can't be loaded
2012-06-17 18:57:20 +10:00
Petri Lehtinen
02653f1b11
#15036 : Make a repeated changes and flushes work with single-file mailboxes
2012-06-15 20:59:31 +03:00
Richard Oudkerk
197651b4e3
Issue #10133 : Make multiprocessing deallocate buffer if socket read fails.
...
Patch by Hallvard B Furuseth.
2012-06-11 15:12:12 +01:00
Terry Jan Reedy
2a2ce4f673
Issue #12510 : Revise and triple # of calltip tests, with an eye to unittest
...
use. Make the get_entity 'method' a module function as it did not use 'self'.
Delete buggy _find_constructor function that is not needed, at least in 3.x.
Revise get_argspec so all tests pass. Add and fix NEWS entries.
2012-06-07 19:41:04 -04:00
Richard Oudkerk
29471de459
Issue #13854 : Properly handle non-integer, non-string arg to SystemExit
...
Previously multiprocessing only expected int or str. It also wrongly
used an exit code of 1 when the argument was a string instead of zero.
2012-06-06 19:04:57 +01:00
Richard Oudkerk
e41682b994
Issue #12157 : pool.map() does not handle empty iterable correctly
...
Initial patch by mouad
2012-06-06 19:04:57 +01:00
Gregory P. Smith
58f07a9d6d
Fixes issue #15000 : support the odd x32 abi on posixsubprocess's system call.
2012-06-05 13:26:39 -07:00