Serhiy Storchaka
b70091a8d5
Issue #20014 : array.array() now accepts unicode typecodes. Based on patch by
...
Vajrasky Kok.
2015-05-16 17:11:41 +03:00
Serhiy Storchaka
f40fcb33d2
Issue #23637 : Showing a warning no longer fails with UnicodeErrror.
...
Formatting unicode warning in the file with the path containing non-ascii
characters no longer fails with UnicodeErrror.
2015-05-16 16:42:18 +03:00
Serhiy Storchaka
049060c249
Reverted issue #24134 changes.
2015-05-16 16:21:10 +03:00
Raymond Hettinger
77b3ae5e2c
Issue #23971 : Fix underestimated presizing in dict.fromkeys()
2015-05-13 03:13:28 -07:00
Benjamin Peterson
42e268ee1d
add trailing slash
2015-05-10 21:19:18 -04:00
doko@ubuntu.com
d29d0393f3
- Do not italicize punctuation in the python man page
2015-05-11 00:00:38 +02:00
Benjamin Peterson
ddc6171b59
add news section for 2.7.11
2015-05-10 13:16:20 -04:00
Benjamin Peterson
a40ea98fc1
bump version to 2.7.10rc1
2015-05-10 13:14:16 -04:00
Benjamin Peterson
72c0141f03
ensure .keywords is always a dict
2015-05-09 00:23:41 -04:00
Larry Hastings
101b054c32
Issue #20274 : When calling a _sqlite.Connection, it now complains if passed
...
any keyword arguments. Previously it silently ignored them. Also: Remove
ignored and erroneous "kwargs" parameters from three METH_VARARGS methods
on _sqlite.Connection.
2015-05-08 09:56:29 -07:00
Serhiy Storchaka
7f71e04cb5
Issue #24134 : assertRaises() and assertRaisesRegexp() checks are not longer
...
successful if the callable is None.
Added tests for assertRaises().
2015-05-06 19:10:40 +03:00
Serhiy Storchaka
aa767a555b
Issue #23330 : h2py now supports arbitrary filenames in #include.
2015-05-03 15:35:02 +03:00
Raymond Hettinger
79f2c5b8e0
Defer deleted item decref until after the deque is restored to a consistent state.
2015-05-02 10:53:27 -07:00
Raymond Hettinger
89543dd992
Issues #24099 , #24100 , and #24101 : Fix free-after-use bug in heapq.
2015-05-02 10:26:57 -07:00
Benjamin Peterson
3a6b481806
update links
2015-04-30 17:37:11 -04:00
Benjamin Peterson
94e0f1e592
improve phrasing
2015-04-29 18:00:44 -04:00
Serhiy Storchaka
a8e65755c4
Issue #23008 : Fixed resolving attributes with boolean value is False in pydoc.
2015-04-21 21:09:23 +03:00
Serhiy Storchaka
9aa16d93c9
Issue #23842 : os.major(), os.minor() and os.makedev() now support ints again.
2015-04-20 09:21:23 +03:00
Christian Heimes
3ce7873fdd
Issue #23998 : PyImport_ReInitLock() now checks for lock allocation error
2015-04-19 21:08:28 +02:00
Berker Peksag
1bc53c6e0b
Issue #23811 : Add missing newline to the PyCompileError error message.
...
Patch by Alex Shkop.
2015-04-14 19:03:06 +03:00
Andrew Kuchling
a5e27c6101
Reword NEWS item a bit
2015-04-14 10:18:46 -04:00
Andrew Kuchling
270b0586b0
#17898 : reset k and v so that the loop doesn't use an old value
2015-04-14 10:03:35 -04:00
Zachary Ware
c96ac59f59
Attribute Michael Dorman for his initial patch on issue #18402 .
2015-04-13 11:07:35 -05:00
Serhiy Storchaka
1aa2c0f073
Issue #23865 : close() methods in multiple modules now are idempotent and more
...
robust at shutdown. If needs to release multiple resources, they are released
even if errors are occured.
2015-04-10 13:24:10 +03:00
Zachary Ware
563e7c6cd5
Issue #23686 : Update Windows build to use OpenSSL 1.0.2a
2015-04-07 20:33:54 -05:00
Victor Stinner
5ab1c01bfd
Issue #23881 : urllib.ftpwrapper constructor now closes the socket if the FTP
...
connection failed.
2015-04-07 12:47:57 +02:00
Serhiy Storchaka
f29bc70bff
Issue #15133 : _tkinter.tkapp.getboolean() now supports long and Tcl_Obj and
...
always returns bool. tkinter.BooleanVar now validates input values (accepted
bool, int, long, str, unicode, and Tcl_Obj). tkinter.BooleanVar.get() now
always returns bool.
2015-04-04 12:42:25 +03:00
Serhiy Storchaka
37943b07fe
Issue #23338 : Fixed formatting ctypes error messages on Cygwin.
...
Patch by Makoto Kato.
2015-04-04 10:05:35 +03:00
Serhiy Storchaka
c77c5b5f03
Issue #16840 : Tkinter now supports 64-bit integers added in Tcl 8.4 and
...
arbitrary precision integers added in Tcl 8.5.
2015-04-02 18:46:30 +03:00
Victor Stinner
31c7e4fb1a
Issue #23834 : Fix socket.sendto(), use the C long type to store the result of
...
sendto() instead of the C int type.
2015-04-02 17:19:17 +02:00
Serhiy Storchaka
cba6b5d045
Issue #21526 : Tkinter now supports new boolean type in Tcl 8.5.
2015-04-02 10:35:57 +03:00
Serhiy Storchaka
43b49593e7
Issue #23838 : linecache now clears the cache and returns an empty result on
...
MemoryError.
2015-04-01 16:53:53 +03:00
Serhiy Storchaka
bd8c629eb5
Issue #23799 : Added test.test_support.start_threads() for running and
...
cleaning up multiple threads.
2015-04-01 12:56:39 +03:00
Serhiy Storchaka
c0a2f2b008
Issue #22390 : test.regrtest now emits a warning if temporary files or
...
directories are left after running a test.
2015-03-30 01:27:44 +03:00
Serhiy Storchaka
53b542fe30
Issue #23742 : ntpath.expandvars() no longer loses unbalanced single quotes.
2015-03-25 16:39:58 +02:00
Serhiy Storchaka
f95a57f9a1
Issue #21802 : The reader in BufferedRWPair now is closed even when closing
...
writer failed in BufferedRWPair.close().
2015-03-24 23:23:42 +02:00
Serhiy Storchaka
40fd0e8d68
Issue #23671 : string.Template now allows to specify the "self" parameter as
...
keyword argument. string.Formatter now allows to specify the "self" and
the "format_string" parameters as keyword arguments.
2015-03-24 22:27:50 +02:00
Serhiy Storchaka
d07ec7b082
Issue #23583 : Fixed writing unicode to standard output stream in IDLE.
...
Added tests for standard IO streams in IDLE.
2015-03-24 19:45:45 +02:00
Serhiy Storchaka
ac5164dd98
Issue #23583 : Fixed writing unicode to standard output stream in IDLE.
...
Added tests for standard IO streams in IDLE.
2015-03-24 19:42:15 +02:00
Ezio Melotti
1afb9da747
#23512 : list non-essential built-in functions after the table. Patch by Carlo Beccarini.
2015-03-24 13:44:58 +02:00
Ezio Melotti
bc1fda39ae
#11468 : improve unittest basic example. Initial patch by Florian Preinstorfer.
2015-03-24 12:42:41 +02:00
Serhiy Storchaka
f689f104aa
Issue #21560 : An attempt to write a data of wrong type no longer cause
...
GzipFile corruption. Original patch by Wolfgang Maier.
2015-03-23 15:25:18 +02:00
R David Murray
836c82417f
#23647 : Increase imaplib's MAXLINE to accommodate modern mailbox sizes.
2015-03-22 16:17:11 -04:00
R David Murray
b4b000f002
#23539 : Set Content-Length to 0 for PUT, POST, and PATCH if body is None.
...
Some http servers will reject PUT, POST, and PATCH requests if they
do not have a Content-Length header.
Patch by James Rutherford.
2015-03-22 15:15:44 -04:00
Ned Deily
a8e8f7ee1c
Issue #23686 : Update OS X 10.5 installer build to use OpenSSL 1.0.2a.
2015-03-19 16:19:27 -07:00
Serhiy Storchaka
8d3f505dcf
Fixed Misc/NEWS entry for issue #23136 .
2015-03-19 19:52:50 +02:00
Serhiy Storchaka
d54c2e3f13
Issue #23136 : _strptime now uniformly handles all days in week 0, including
...
Jan 30 of previous year. Based on patch by Jim Carroll.
2015-03-19 19:13:25 +02:00
Serhiy Storchaka
f249671d02
Issue #23138 : Fixed parsing cookies with absent keys or values in cookiejar.
...
Patch by Demian Brecht.
2015-03-13 09:04:34 +02:00
Serhiy Storchaka
7c26be5b18
Issue #23051 : multiprocessing.Pool methods imap() and imap_unordered() now
...
handle exceptions raised by an iterator. Patch by Alon Diamant and Davin
Potts.
2015-03-13 08:31:34 +02:00
Serhiy Storchaka
59bdf6392d
Issue #22928 : Disabled HTTP header injections in httplib.
...
Original patch by Demian Brecht.
2015-03-12 11:12:51 +02:00
Serhiy Storchaka
205408dacb
Issue #23615 : Module tarfile is now can be reloaded with imp.reload().
2015-03-11 17:31:59 +02:00
Antoine Pitrou
323ab6d732
Issue #23629 : Fix the default __sizeof__ implementation for variable-sized objects.
2015-03-10 22:32:00 +01:00
Serhiy Storchaka
233e6988f4
Issue #22853 : Fixed a deadlock when use multiprocessing.Queue at import time.
...
Patch by Florian Finkernagel and Davin Potts.
2015-03-06 22:17:25 +02:00
Ned Deily
8c51fedcdf
Issue #23593 : fix Misc/NEWS entries
2015-03-05 17:43:26 -08:00
Ned Deily
59439d8f0d
Issue #23594 : Update OS X 10.5 installer build to use OpenSSL 1.0.2.
2015-03-05 17:32:28 -08:00
Benjamin Peterson
b1ebba5bd5
enable X509_V_FLAG_TRUSTED_FIRST when possible ( closes #23476 )
2015-03-04 22:11:12 -05:00
Antoine Pitrou
34c8d98306
Issue #23576 : Avoid stalling in SSL reads when EOF has been reached in the SSL layer but the underlying connection hasn't been closed.
2015-03-04 20:51:55 +01:00
Serhiy Storchaka
c620c11e62
Issue #23504 : Added an __all__ to the types module.
2015-03-04 09:42:59 +02:00
Benjamin Peterson
b027c6cae0
fix possible overflow bugs in unicodedata ( closes #23367 )
2015-03-02 11:17:05 -05:00
Benjamin Peterson
f4875d5602
remove mention of Python 2.2 and 2.3
2015-03-01 20:59:22 -05:00
Victor Stinner
e0a0bd6eaa
Issue #23458 : On POSIX, the file descriptor kept open by os.urandom() is now
...
set to non inheritable
2015-02-24 14:30:43 +01:00
Serhiy Storchaka
cc49aa1381
Issue #6639 : Module-level turtle functions no longer raise TclError after
...
closing the window.
2015-02-22 17:22:53 +02:00
Serhiy Storchaka
b8285d96f4
Issue #22113 : struct.pack_into() now supports new buffer protocol (in
...
particular accepts writable memoryview).
2015-02-21 19:51:17 +02:00
Serhiy Storchaka
4809d1fccd
Issues #814253 , #9179 : Warnings now are raised when group references and
...
conditional group references are used in lookbehind assertions in regular
expressions.
2015-02-21 12:08:36 +02:00
Serhiy Storchaka
021d55ff74
Issue #23215 : Multibyte codecs with custom error handlers that ignores errors
...
consumed too much memory and raised SystemError or MemoryError.
Original patch by Aleksi Torhamo.
2015-02-21 01:19:17 +02:00
Serhiy Storchaka
3173f7c904
Issue #5700 : io.FileIO() called flush() after closing the file.
...
flush() was not called in close() if closefd=False.
2015-02-21 00:34:20 +02:00
Berker Peksag
dc9d41d718
Issue #21548 : Fix pydoc.synopsis() and pydoc.apropos() on modules with empty
...
docstrings.
Initial patch by Yuyang Guo.
2015-02-20 12:10:33 +02:00
Benjamin Peterson
a0dd7dc1b0
remove rc4 from the default client ciphers ( closes #23481 )
2015-02-19 17:57:08 -05:00
Benjamin Peterson
e3a950e510
remove RPM file, which is unused and unmaintained
2015-02-18 08:57:27 -05:00
Serhiy Storchaka
c769040100
Issue #22885 : Fixed arbitrary code execution vulnerability in the dumbdbm
...
module. Original patch by Claudiu Popa.
2015-02-16 00:29:52 +02:00
Serhiy Storchaka
7fe04f1dca
Issue #21849 : Fixed xmlrpclib serialization of non-ASCII unicode strings in
...
the multiprocessing module.
2015-02-13 15:08:36 +02:00
Serhiy Storchaka
2bd8b22b6d
Issue #21840 : Fixed expanding unicode variables of form $var in
...
posixpath.expandvars(). Fixed all os.path implementations on
unicode-disabled builds.
2015-02-13 12:02:05 +02:00
Serhiy Storchaka
4068b01cb5
Issue #23392 : Added tests for marshal C API that works with FILE*.
2015-02-06 08:56:33 +02:00
Ned Deily
ca7ecf3194
Issue #23212 : Update OS X installer build OpenSSL to 1.0.1l.
...
(currently only used for builds with <= 10.5 deployment targets)
2015-02-06 14:11:36 +11:00
Serhiy Storchaka
d44bcc9b2f
Issue #18982 : Add tests for CLI of the calendar module.
2015-02-05 15:18:26 +02:00
Ned Deily
fa11978f1b
Issue #23345 : Prevent test_ssl failures with large OpenSSL patch level
...
values (like 0.9.8zc).
2015-02-05 17:19:11 +11:00
Benjamin Peterson
dda9121ad1
check for overflows in permutations() and product() ( closes #23363 , closes #23364 )
2015-02-01 21:34:07 -05:00
Benjamin Peterson
17845c1786
check for overflow in combinations_with_replacement ( closes #23365 )
2015-02-01 21:10:47 -05:00
Benjamin Peterson
021dec1c96
detect overflow in combinations ( closes #23366 )
2015-02-01 20:59:00 -05:00
Serhiy Storchaka
9797bc374e
Completed Misc/NEWS entry.
2015-01-31 11:42:04 +02:00
Stefan Krah
5606cd9800
Issue #23349 : Fix off-by-one error in PyBuffer_ToContiguous(). Initial patch
...
by Richard Hansen.
2015-01-30 20:11:10 +01:00
Serhiy Storchaka
4c54387f11
Issue #22079 : PyType_Ready() now checks that statically allocated type has
...
no dynamically allocated bases.
2015-01-28 10:52:49 +02:00
Serhiy Storchaka
0d8fe3b90b
Issue #19949 : The test_xpickle test now tests compatibility with installed
...
Python 2.7 and reports skipped tests. Based on patch by Zachary Ware.
2015-01-27 22:44:45 +02:00
Serhiy Storchaka
0e0282eb14
Issue #23055 : Fixed a buffer overflow in PyUnicode_FromFormatV. Analysis
...
and fix by Guido Vranken.
2015-01-27 22:17:56 +02:00
Serhiy Storchaka
3ce465ab56
Issue #23191 : fnmatch functions that use caching are now threadsafe.
2015-01-27 11:40:51 +02:00
Serhiy Storchaka
c328d11ef1
Issue #14099 : Backout changeset c2c4cde55f6f (except adapted tests).
2015-01-26 13:45:04 +02:00
Serhiy Storchaka
73c086389a
Issue #18518 : timeit now rejects statements which can't be compiled outside
...
a function or a loop (e.g. "return" or "break").
2015-01-26 12:08:37 +02:00
Serhiy Storchaka
0013207200
Issue #11578 : Backported test for the timeit module.
2015-01-26 11:54:32 +02:00
Benjamin Peterson
bfd976fc17
simply ignore headers with no name ( #19996 )
...
Patch by Cory Benfield.
2015-01-25 23:34:42 -05:00
Benjamin Peterson
b10bfbe036
pep 466 backport of alpn ( #20188 )
2015-01-23 16:35:37 -05:00
Antoine Pitrou
c3edc19afc
Issue #23248 : Update ssl error codes from latest OpenSSL git master.
2015-01-18 17:39:32 +01:00
Serhiy Storchaka
2098d61aab
Issue #23098 : 64-bit dev_t is now supported in the os module.
2015-01-18 11:11:25 +02:00
Ned Deily
b5daa3d6db
Issue #23180 : Rename IDLE "Windows" menu item to "Window".
...
Patch by Al Sweigart.
2015-01-17 21:03:41 -08:00
Benjamin Peterson
95ee9c7175
fix parsing reST with code or code-block directives ( closes #23063 )
...
Patch by Marc Abramowitz.
2015-01-14 23:56:35 -05:00
Benjamin Peterson
07f90476b9
fix instances of consecutive articles ( closes #23221 )
...
Patch by Karan Goel.
2015-01-13 09:17:24 -05:00
Ned Deily
7a3082f60a
Issue #23212 : 2.7-specific OS X installer updates
2015-01-09 13:29:04 -08:00
Victor Stinner
7c90667f74
Issue #21356 : Make ssl.RAND_egd() optional to support LibreSSL. The
...
availability of the function is checked during the compilation. Patch written
by Bernard Spil.
2015-01-06 13:53:37 +01:00
Benjamin Peterson
7b4b28469b
allow a SSLContext to be given to ftplib.FTP_TLS
2015-01-04 15:36:31 -06:00
Benjamin Peterson
9fe67ceebf
make SSLv23 the default version in ftplib ( closes #23111 )
2015-01-04 10:20:16 -06:00
Benjamin Peterson
27c269a1fe
use getentropy when available (backport of 75ede5bec8db) ( closes #23115 )
2014-12-26 11:09:00 -06:00
Benjamin Peterson
a71cfc5cf3
fix behavior of trailing slash redirection when a query string is involved ( closes #23112 )
2014-12-26 10:53:43 -06:00
Benjamin Peterson
53ae6145a0
allow more operations to work on detached streams ( closes #23093 )
...
Patch by Martin Panter.
2014-12-21 20:51:50 -06:00
Serhiy Storchaka
74a651b4e6
Issue #23071 : Added missing names to codecs.__all__. Patch by Martin Panter.
2014-12-20 17:42:24 +02:00
Terry Jan Reedy
16e093db98
Issue #20577 : move configuration of FormatParagraph extension to new extension
...
configuration dialog. Patch by Tal Einat.
2014-12-16 03:21:19 -05:00
Benjamin Peterson
64e8f6ec1c
use autoconf macro to check for pkg-config ( closes #15506 )
2014-12-15 00:00:23 -05:00
Benjamin Peterson
7a6a97352d
pop the loop block even for infinite while loops ( closes #23048 )
2014-12-13 16:06:19 -05:00
Ned Deily
0be4b1ef58
Issue #23032 : Fix installer build failures on OS X 10.4 Tiger
...
by disabling assembly code in the OpenSSL build.
2014-12-11 15:55:42 -08:00
Terry Jan Reedy
f0f09b9470
Issue #23006 : Improve the documentation and indexing of dict.__missing__.
...
Add an entry in the language datamodel special methods section.
Revise and index its discussion in the stdtypes mapping/dict section.
Backport the code example from 3.4.
2014-12-10 18:38:07 -05:00
Serhiy Storchaka
e6b42438fa
Issue #23016 : A warning no longer produces an AttributeError when sys.stderr
...
is None.
2014-12-10 23:05:33 +02:00
Benjamin Peterson
e57af0f61f
merge 2.7.9 release branch
2014-12-10 10:58:13 -05:00
Benjamin Peterson
a5f49f5bb4
bump to 2.7.9 final
2014-12-10 10:57:00 -05:00
Ned Deily
92b2b485e7
Issue #17128 : Use private version of OpenSSL for 2.7.9 OS X 10.5+ installer.
...
Among other issues, the Apple-supplied 0.9.7 libs for the 10.5 ABI cannot
verify newer SHA-256 certs as now used by python.org services. Document
in the installer ReadMe some of the certificate management issues that
users now need to be more concerned with due to PEP 476's enabling cert
verification by default. For now, continue to use the Apple-supplied
0.9.8 libs for the 10.6+ installer since they use Apple private APIs to
verify certificates using the system- and user-managed CA keychain stores.
2014-12-09 23:45:13 -08:00
Ned Deily
62a8660267
Issue #17128 : Use private version of OpenSSL for 2.7.9 OS X 10.5+ installer.
...
Among other issues, the Apple-supplied 0.9.7 libs for the 10.5 ABI cannot
verify newer SHA-256 certs as now used by python.org services. Document
in the installer ReadMe some of the certificate management issues that
users now need to be more concerned with due to PEP 476's enabling cert
verification by default. For now, continue to use the Apple-supplied
0.9.8 libs for the 10.6+ installer since they use Apple private APIs to
verify certificates using the system- and user-managed CA keychain stores.
2014-12-09 23:45:13 -08:00
Benjamin Peterson
204a0eca5a
merge 2.7.9 release branch
2014-12-07 13:41:52 -05:00
Benjamin Peterson
227f6e0dc5
remove HTTPSConnection's check_hostname parameter ( #22959 )
2014-12-07 13:41:26 -05:00
Benjamin Peterson
daa491b6d7
merge 2.7.9 release branch
2014-12-05 22:02:33 -05:00
Benjamin Peterson
60766c47e7
allow ssl module to compile if openssl doesn't support SSL 3 ( closes #22935 )
...
Patch by Kurt Roeckx.
2014-12-05 21:59:35 -05:00
Terry Jan Reedy
bedaefc705
Issue #16893 : Update Idle doc chapter to match current Idle and add new
...
information.
2014-12-05 20:25:14 -05:00
Benjamin Peterson
af18b4cb55
merge 2.7.9 release branch
2014-12-05 20:16:53 -05:00
Benjamin Peterson
9e8f523c5b
add a default limit for the amount of data xmlrpclib.gzip_decode will return ( closes #16043 )
2014-12-05 20:15:15 -05:00
Benjamin Peterson
dabfc56b57
smtplib: limit amount read from the network ( closes #16042 )
2014-12-05 20:05:18 -05:00
Benjamin Peterson
faad6bbea6
in poplib, limit maximum line length that we read from the network ( closes #16041 )
...
Patch from Berker Peksag.
2014-12-05 20:02:38 -05:00
Serhiy Storchaka
45aa771fe9
Issue #14099 : ZipFile.open() no longer reopen the underlying file. Objects
...
returned by ZipFile.open() can now operate independently of the ZipFile even
if the ZipFile was created by passing in a file-like object as the first
argument to the constructor.
2014-12-03 09:11:12 +02:00
Terry Jan Reedy
53ab7583dd
Add NEWS items for Idle patches already in 2.7.9rc1.
2014-12-01 16:59:02 -05:00
Serhiy Storchaka
d862db0d09
Issue #21032 . Fixed socket leak if HTTPConnection.getresponse() fails.
...
Original patch by Martin Panter.
2014-12-01 13:07:28 +02:00
Serhiy Storchaka
169f195b66
Issue #22943 : bsddb tests are locale independend now.
...
This fixes tests on 8-bit locales (in particular on Windows).
2014-12-01 10:34:23 +02:00
Benjamin Peterson
d5355178ad
merge 2.7.9 release branch
2014-11-30 11:51:48 -05:00
Benjamin Peterson
f8c8d2e366
backout fac649bf2d10 ( #9179 ) for further consideration
2014-11-30 11:47:54 -05:00
Benjamin Peterson
5a608c2e8b
merge 2.7.9 release branch
2014-11-29 22:57:15 -05:00
Benjamin Peterson
efa3cf84d2
add context parameter to xmlrpclib.ServerProxy ( #22960 )
...
Patch from Alex Gaynor.
2014-11-29 22:55:35 -05:00
Serhiy Storchaka
46e92503da
Issue #22314 : pydoc now works when the LINES environment variable is set.
2014-11-28 00:09:05 +02:00
Serhiy Storchaka
86ef95d3fb
Issue #18905 : "pydoc -p 0" now outputs actually used port. Based on patch by
...
Wieland Hoffmann.
2014-11-27 23:45:37 +02:00
Serhiy Storchaka
2c1f37667d
Issue #21514 : The documentation of the json module now refers to new JSON RFC
...
7159 instead of obsoleted RFC 4627.
2014-11-27 19:41:34 +02:00
Serhiy Storchaka
20994f1e27
Issue #22609 : Constructors and update methods of mapping classes in the
...
collections module now accept the self keyword argument.
2014-11-27 19:02:56 +02:00
Benjamin Peterson
016487b54e
add 2.7.10 news section
2014-11-25 19:15:39 -06:00
Benjamin Peterson
af358ef399
2.7.9rc1
2014-11-25 18:27:24 -06:00
Benjamin Peterson
e3e7d40514
pep 476: verify certificates by default ( #22417 )
2014-11-23 21:02:02 -06:00
Benjamin Peterson
b206473ef8
give urllib.urlopen a context parameter ( closes #22927 )
2014-11-23 20:55:24 -06:00
Benjamin Peterson
79828343d8
add NEWS note for #22921
2014-11-23 20:15:31 -06:00
Benjamin Peterson
fcfb18ee2b
allow passing cert/ssl information to urllib2.urlopen and httplib.HTTPSConnection
...
This is basically a backport of issues #9003 and #22366 .
2014-11-23 11:42:45 -06:00
Antoine Pitrou
fc419fbc71
Add regression issue number to Misc/NEWS entry.
2014-11-21 02:05:06 +01:00
Antoine Pitrou
b9a4501179
Issue #21963 : backout issue #1856 patch (avoid crashes and lockups when
...
daemon threads run while the interpreter is shutting down; instead,
these threads are now killed when they try to take the GIL), as it seems
to break some existing code.
2014-11-21 02:04:21 +01:00
Ned Deily
3f1d0b3121
Issue 22878: PEP 477 - "make install" and "make altinstall" integration
...
The backport of ensurepip to 2.7.9 allows pip to optionally be installed
or upgraded using the bundled pip provided by the new ensurepip module.
The option can be specified persistently using the configure option:
./configure --with-ensurepip[=upgrade|install|no]
It can also be overridden on either the "install" or "altinstall" targets:
make [alt]install ENSUREPIP=[upgrade|install|no]
For Python 2, the default option is "no" (do not install pip).
2014-11-20 02:11:03 -08:00
Ned Deily
3010182390
Issue #22877 : PEP 477 - OS X installer for 2.7.9 now installs pip.
2014-11-14 18:53:59 -08:00
Serhiy Storchaka
e927757df6
Issue #12728 : Different Unicode characters having the same uppercase but
...
different lowercase are now matched in case-insensitive regular expressions.
2014-11-10 12:37:02 +02:00
Serhiy Storchaka
069bdcbb25
Issue #22821 : Fixed fcntl() with integer argument on 64-bit big-endian
...
platforms.
2014-11-10 10:42:06 +02:00
Serhiy Storchaka
15ea870e29
Issues #814253 , #9179 : Group references and conditional group references now
...
work in lookbehind assertions in regular expressions.
2014-11-07 21:43:45 +02:00
Serhiy Storchaka
4535b11147
Issue #17293 : uuid.getnode() now determines MAC address on AIX using netstat.
...
Based on patch by Aivars Kalvāns.
2014-11-07 12:19:23 +02:00
Serhiy Storchaka
7a02582329
Issue #22769 : Fixed ttk.Treeview.tag_has() when called without arguments.
2014-11-07 12:02:11 +02:00
Benjamin Peterson
93c41335ab
allow keyfile argument to be None ( closes #22787 )
2014-11-03 21:12:05 -05:00
Serhiy Storchaka
186c5f07e6
Issue #22775 : Fixed unpickling of Cookie.SimpleCookie with protocol 2.
...
Patch by Tim Graham.
2014-11-02 22:35:47 +02:00
Ezio Melotti
009352aefd
#22751 : fix test___all__ warning about modified environment in the tests. Patch by Michael Cetrulo.
2014-11-02 19:08:35 +02:00
Zachary Ware
21a2350a83
Issue #17896 : Move Windows external lib sources from .. to externals.
2014-11-01 22:34:09 -05:00
Ned Deily
33db23f53c
Issue #22770 : Prevent some Tk segfaults on OS X when running gui tests.
...
When running tests in subprocesses with the regrtest -j option, a bug
in Cocoa Tk can result in a Tcl segfault. Avoid the problem by forcing
Tk to fully initialize as an OS X gui process before destroying the
Tcl instance and creating another. (Original patch by Serhiy Storchaka)
2014-11-01 19:26:45 -07:00
Zachary Ware
247b6441a0
Issue #17717 : Pull NASM from svn.python.org for OpenSSL build.
2014-11-01 17:11:08 -05:00
Vinay Sajip
a79d6f40df
Brought excluded code into the scope of a try block in SysLogHandler.emit().
2014-11-01 19:56:13 +00:00
Serhiy Storchaka
e9e54ae222
Issue #17381 : Fixed ranges handling in case-insensitive regular expressions.
2014-10-31 13:53:21 +02:00
Serhiy Storchaka
c04fcd40bd
Backported the optimization of compiling charsets in regular expressions
...
(issue #19329 ). This is needed to apply the patch from issue #17381 .
2014-10-31 13:34:06 +02:00
Serhiy Storchaka
d4c7290368
Issue #22410 : Module level functions in the re module now cache compiled
...
locale-dependent regular expressions taking into account the locale.
2014-10-31 00:53:19 +02:00
Antoine Pitrou
78be2f4e01
Issue #8876 : distutils now falls back to copying files when hard linking doesn't work.
...
This allows use with special filesystems such as VirtualBox shared folders.
2014-10-30 19:37:07 +01:00
Ezio Melotti
cae81d0c38
#22237 : fix patch attribution.
2014-10-28 13:57:12 +01:00
Ezio Melotti
9f8a5b1abd
#22237 : document that sorted() is guaranteed to be stable. Initial patch by Martin Panter.
2014-10-28 12:57:11 +01:00
R David Murray
af26c15110
#9351 : set_defaults on subparser is no longer ignored if set on parent.
...
Before, if a default was set on the parent parser, any default for that
variable set via set_defaults on a subparser would be ignored. Now
the subparser set_defaults is honored.
Patch by Jyrki Pullianinen.
2014-10-17 20:07:08 -04:00
Zachary Ware
10229a450f
Issue #22644 : Update the Windows build to OpenSSL 1.0.1j
2014-10-17 16:20:15 -05:00
Zachary Ware
80315664bc
Issue #20221 : Removed conflicting (or circular) hypot definition
...
when compiled with VS 2010 or above. Initial patch by Tabrez Mohammed.
2014-02-20 15:36:34 -06:00
Zachary Ware
47ff6fa600
Fix badly merged NEWS item.
2014-10-17 11:09:13 -05:00
Benjamin Peterson
9d780a22ea
add back NEWS entries removed by 1c2c44313408
2014-10-17 11:30:45 -04:00
Charles-François Natali
b29ab4a379
Merge.
2014-10-13 18:42:49 +01:00
Charles-François Natali
977c424ef6
Issue #22435 : Fix a file descriptor leak when SocketServer bind fails.
2014-10-13 18:39:34 +01:00
Serhiy Storchaka
54edfb3eef
Issue #13664 : GzipFile now supports non-ascii Unicode filenames.
2014-10-12 22:23:28 +03:00
R David Murray
55bf20ad6e
#13096 : Fix segfault in CTypes POINTER handling of large values.
...
Patch by Meador Inge.
2014-10-12 14:26:30 -04:00
Antoine Pitrou
d0a5e9bb4a
Issue #22604 : Fix assertion error in debug mode when dividing a complex number by (nan+0j).
2014-10-10 23:49:32 +02:00
Petri Lehtinen
f85a856fb0
Issue #11694 : Raise ConversionError in xdrlib as documented
2014-10-10 21:11:34 +03:00
R David Murray
a68109a248
#0712 : 2to3 has a new "asserts" fixer that replaces deprecated names of unittest methods.
...
Patch by Ezio Melotti, docs by Berker Peksag.
2014-10-09 23:13:42 -04:00
Ezio Melotti
c468abafc7
#18034 : update FAQ to suggest importlib.import_module instead of __import__. Patch by Wouter van Heyst.
2014-08-04 19:34:29 +03:00
Serhiy Storchaka
04fa704161
Issue #21580 : Now Tkinter correctly handles binary "data" and "maskdata"
...
configure options of tkinter.PhotoImage.
Added private Tkapp method _createbytearray().
2014-07-31 07:48:14 +03:00
Victor Stinner
2af8d2f698
Issue #22023 : Fix %S, %R and %V formats of PyUnicode_FromFormat().
2014-07-30 00:39:05 +02:00
Robert Jordens
af09c774e5
Issue #21591 : add test for qualified exec in tuple form.
2014-07-29 17:24:24 +02:00
Dirkjan Ochtman
9b1d670361
Issue #21591 : Handle exec backwards compatibility in the AST builder.
...
Instead of deferring until runtime. This makes sure we hit the right
conditions in dealing with unqualified exec statements.
Reviewed by Victor Stinner. Test follows in a later commit.
2014-07-29 17:21:39 +02:00
Victor Stinner
c382807559
Issue #19612 : subprocess.communicate() now also ignores EINVAL when using at
...
least two pipes.
2014-07-29 00:04:54 +02:00
Victor Stinner
0a649c7bb1
Fix repr(_socket.socket) on Windows 64-bit: don't fail with OverflowError
...
on closed socket.
2014-07-26 14:52:55 +02:00
Zachary Ware
6d8f29a623
Issue #21958 : Define HAVE_ROUND when building with VS 2013 and above.
...
Patch by Zachary Turner.
2014-07-25 14:34:19 -05:00
Raymond Hettinger
1b5f58d167
Issue #21990 : Cleanup unnecessary inner class definition in saxutils.
2014-07-25 10:26:36 -07:00
Victor Stinner
fe9ebe4f4f
Issue #16133 : The asynchat.async_chat.handle_read() method now ignores
...
socket.error() exceptions with blocking I/O errors: EAGAIN, EALREADY,
EINPROGRESS, or EWOULDBLOCK. Initial patch written by Xavier de Gaye.
2014-07-24 19:15:00 +02:00
Serhiy Storchaka
186f66540d
Issue #1730136 : Fix comparison between a tk Font object and an object of a
...
different type.
2014-07-24 17:48:28 +03:00
Victor Stinner
63a474788a
Issue #19884 : readline: Disable the meta modifier key if stdout is not a
...
terminal to not write the ANSI sequence "\033[1034h" into stdout. This sequence
is used on some terminal (ex: TERM=xterm-256color") to enable support of 8 bit
characters.
2014-07-24 12:22:24 +02:00
Terry Jan Reedy
e2fbf4faca
Issue #21597 : Turtledemo text pane can now be widened to view or copy complete
...
lines or narrowed for small screens.
Issie #19132 : Turtledemo buttons no longer disappear when window is shrun.
Patch mostly by Lita Cho (21597) using idea from patch by Jan Kanis (18132).
2014-07-23 15:01:07 -04:00
Serhiy Storchaka
7cc3b0aefb
Backout 308f3c1e36d3. This change (issue21044) does not need to be merged on
...
2.7, as the os.fdopen sets the name attribute to '<fdopen>' and not to the fd.
2014-07-22 10:39:59 +03:00
Serhiy Storchaka
7f7d99c279
Issue #15759 : "make suspicious", "make linkcheck" and "make doctest" in Doc/
...
now display special message when and only when there are failures.
2014-07-22 10:28:36 +03:00
Antoine Pitrou
4e64d8768f
Issue #21976 : Fix test_ssl to accept LibreSSL version strings.
...
Thanks to William Orr.
2014-07-21 18:35:01 -04:00
Raymond Hettinger
b606d45fb2
Issue #21868 : Prevent turtle crash due to invalid undo buffer size.
2014-07-20 21:26:04 -07:00
Benjamin Peterson
e2d1e64a1f
add #
2014-07-20 13:05:01 -07:00
Benjamin Peterson
0fb88f7c51
correct ref counting of default_action ( closes #22017 )
2014-07-20 13:04:11 -07:00
Serhiy Storchaka
e7829bdf12
Issue 21044: tarfile.open() now handles fileobj with an integer 'name'
...
attribute. Based on patch by Martin Panter.
2014-07-16 23:58:12 +03:00
Terry Jan Reedy
6e9a3ac881
Issue #17506 : Synchronize Misc/NEWS and idlelib/NEWS.txt for 2.7.
2014-07-14 02:07:26 -04:00
Ned Deily
c89376292e
Issue #21323 : Fix CGIHTTPServer to again handle scripts in CGI subdirectories,
...
broken by the fix for security issue #19435 . Patch by Zach Byrne.
2014-07-12 22:01:15 -07:00
Terry Jan Reedy
4761934523
Idle News entries.
2014-07-11 00:24:22 -04:00
Ned Deily
9be578990e
Issue #21923 : Prevent AttributeError in distutils.sysconfig.customize_compiler
...
due to possible uninitialized _config_vars. Original patch by Alex Gaynor.
2014-07-06 16:11:44 -07:00
Zachary Ware
6690eed48b
Issue #21151 : Fixed a segfault in the _winreg module.
...
When ``None`` was passed as a ``REG_BINARY`` value to SetValueEx,
PyMem_DEL was called on an uninitialized buffer. Patch by John Ehresman.
(Also an incidental typo fix in a comment in test_winreg)
2014-07-03 10:57:44 -05:00
Victor Stinner
f6b3c84a4a
Issue #21090 : io.FileIO.readall() does not ignore I/O errors anymore. Before,
...
it ignored I/O errors if at least the first C call read() succeed.
2014-07-02 23:12:48 +02:00
Berker Peksag
cf0a706c15
Issue #19870 : BaseCookie now parses 'secure' and 'httponly' flags.
...
Backport of issue #16611 .
2014-07-02 10:48:27 +03:00
Ned Deily
04a37be9e5
Issue #21811 : Add Misc/NEWS entry.
2014-06-29 23:38:55 -07:00
Benjamin Peterson
7ce6a96469
after 2.7.8
2014-06-29 18:59:07 -07:00
Benjamin Peterson
fdbdcfe020
bump to 2.7.8
2014-06-29 18:58:16 -07:00
Benjamin Peterson
4becf85d54
don't allow unicode into type_map on Windows ( closes #21652 )
...
Patch from Vladimir Iofik.
2014-06-29 12:58:16 -07:00
Benjamin Peterson
df71dcbef2
don't overwrite the error from PyObject_GetAttrString ( closes #4346 )
2014-06-26 23:27:41 -07:00
Raymond Hettinger
38017b3698
Issue #19145 : Remove duplicate ACKS entry
2014-06-26 09:27:36 -07:00
Serhiy Storchaka
33ad0968eb
Issue #21729 : Used the "with" statement in the dbm.dumb module to ensure
...
files closing. Patch by Claudiu Popa.
2014-06-25 20:37:49 +03:00
Raymond Hettinger
58ad24512a
Issue #19145 : Fix handling of negative values for a "times" keyword argument to itertools.repeat()>
...
(Patch contributed by Vajrasky Kok.)
2014-06-24 21:53:45 -07:00
Raymond Hettinger
53296810f8
Add news entry for 21832
2014-06-24 18:14:53 -07:00
R David Murray
3eb76fc10b
#20155 : use fake HTTP method names so windows doesn't hang the tests.
...
Windows was seeing the 'GET' generated by these tests as invalid and forcibly
closing the socket, causing the test to fail.
Patch by Jeff Allen.
2014-06-24 16:49:24 -04:00
Benjamin Peterson
b23eef5895
add Chris Foster
2014-06-23 20:14:46 -07:00
Benjamin Peterson
550b945fd6
avoid overflow with large buffer sizes and/or offsets ( closes #21831 )
2014-06-23 20:12:27 -07:00
Raymond Hettinger
58eb605ca3
Issue #11974 : Add tutorial section on class and instance variables
...
(Based on a patch from Renee Chu.)
2014-06-23 18:03:21 -07:00
Raymond Hettinger
f595a127b8
Issue #8343 : Named group error msgs did not show the group name.
2014-06-22 19:33:19 -07:00
Benjamin Peterson
3bef935512
fix ntpath.join on UNC-style paths by backporting py3k's splitdrive ( closes #21672 )
2014-06-22 19:07:38 -07:00
Raymond Hettinger
4575010943
Issue 21635: Fix caching in difflib.SequenceMatcher.get_matching_blocks().
2014-06-21 11:27:36 -07:00
Charles-François Natali
98fbdd6829
Issue #21491 : SocketServer: Fix a race condition in child processes reaping.
2014-06-20 22:03:08 +01:00
Antoine Pitrou
077c9564b7
Issue #21722 : The distutils "upload" command now exits with a non-zero return code when uploading fails.
...
Patch by Martin Dengler.
2014-06-18 23:07:46 -04:00
Benjamin Peterson
a48162a8b8
add Ammar Brohi for running ssllab's test on python.org and reporting a problem
2014-06-17 09:44:55 -07:00
Benjamin Peterson
c0bc4eff50
avoid crashes and lockups from daemon threads during interpreter shutdown ( #1856 )
2014-06-16 19:39:18 -07:00
Terry Jan Reedy
1a6561e2f5
Add Idle news entries (plus whitespace fix from other entries).
2014-06-16 19:24:22 -04:00
Benjamin Peterson
8d24d77c63
url unquote the path before checking if it refers to a CGI script ( closes #21766 )
2014-06-14 18:36:29 -07:00
Zachary Ware
04349c602c
Issue #19493 : Backport 6f63fff5c120
2014-06-13 14:40:16 -05:00
Serhiy Storchaka
05b0a1be37
Issue #21310 : Fixed possible resource leak in failed open().
2014-06-09 13:32:08 +03:00
Benjamin Peterson
75a55c3275
make sure the builtin help function doesn't fail when sys.stdin is not a valid file ( closes #11709 )
...
Original patch by Amaury Forgeot d'Arc with a test by bdettmer.
2014-06-07 20:14:26 -07:00
Benjamin Peterson
806f9d704f
document TokenError and unclosed expression behavior ( closes #12063 )
...
Patch by Amandine Lee.
2014-06-07 17:47:41 -07:00
Benjamin Peterson
c3e1e90221
don't remove self from example code in the HTML output ( closes #13223 )
...
Patch by Víctor Terrón.
2014-06-07 16:44:00 -07:00
Benjamin Peterson
3afd956e09
document the compress_level argument to tarfile.open ( closes #21404 )
...
Patch by Katherine Busch.
2014-06-07 12:45:37 -07:00
Benjamin Peterson
93e51aac54
allow the keyword else immediately after (no space) an integer ( closes #21642 )
2014-06-07 12:36:39 -07:00
Zachary Ware
6b8626628d
Issue #21671 , CVE-2014-0224: Update the Windows build to openssl-1.0.1h
2014-06-06 01:13:37 -05:00
Terry Jan Reedy
562495ab61
Issue #18910 : Add unittest for textView. Patch by Phil Webster.
2014-06-05 03:38:28 -04:00
Terry Jan Reedy
6e66cb03b7
Issue #18292 : Idle - test AutoExpand. Patch by Saihadhav Heblikar.
2014-06-04 20:50:49 -04:00
Terry Jan Reedy
8ba9e450c9
Issue #18409 : Idle: add unittest for AutoComplete. Patch by Phil Webster.
2014-06-03 20:54:15 -04:00
Terry Jan Reedy
a4b538df75
Issue 21533: Dicts take iterables, not iterators. Patch by Wolfgang Maier.
2014-06-02 20:42:48 -04:00
Zachary Ware
9ce635f7bd
Issue #18492 : Allow all resources when tests are not run by regrtest.py.
...
This changeset also includes cleanup allowed by this behavior change.
2014-06-02 16:01:16 -05:00
Serhiy Storchaka
79fa98af9e
Issue #19656 : Running Python with the -3 option now also warns about
...
non-ascii bytes literals.
2014-06-01 22:13:39 +03:00
Serhiy Storchaka
e75a555073
Issue #21605 : Added tests for Tkinter images.
2014-06-01 12:34:42 +03:00
Benjamin Peterson
48f2e99808
backport hashlib.pbkdf2_hmac per PEP 466 ( closes #21304 )
...
Backport by Alex Gaynor.
2014-05-31 13:26:22 -07:00
Benjamin Peterson
15e5a165d0
merge 2.7.7 release branch
2014-05-31 11:24:25 -07:00
Benjamin Peterson
de50cdfcf9
fix news header
2014-05-31 11:22:47 -07:00
Benjamin Peterson
9c70397ea3
bump to 2.7.7 final
2014-05-31 11:17:34 -07:00
Serhiy Storchaka
2a0220b18a
Issue #21552 : Fixed possible integer overflow of too long string lengths in
...
the Tkinter module on 64-bit platforms.
2014-05-30 14:23:52 +03:00
Gregory P. Smith
0344a0643d
Fix issue #14315 : The zipfile module now ignores extra fields in the central
...
directory that are too short to be parsed instead of letting a struct.unpack
error bubble up as this "bad data" appears in many real world zip files in the
wild and is ignored by other zip tools.
2014-05-29 23:41:52 -07:00
Serhiy Storchaka
edb6428e43
Issue #21402 : tkinter.ttk now works when default root window is not set.
2014-05-28 18:38:15 +03:00
Serhiy Storchaka
49b2086a2e
Issue #21493 : Added test for ntpath.expanduser(). Original patch by
...
Claudiu Popa.
2014-05-28 18:11:08 +03:00
Serhiy Storchaka
30080fd63d
Issue #10203 : sqlite3.Row now truly supports sequence protocol. In particular
...
it supports reverse() and negative indices. Original patch by Claudiu Popa.
2014-05-28 12:57:38 +03:00
Raymond Hettinger
fb8899a597
Issue #21481 : Teach argparse equality tests to return NotImplemented when comparing to unknown types.
2014-05-26 00:40:09 -07:00
Raymond Hettinger
f643b9a9c7
Issue 8743: Improve interoperability between sets and the collections.Set abstract base class.
2014-05-25 22:13:41 -07:00
Raymond Hettinger
92df7529cb
Issue 13355: Make random.triangular degrade gracefully when low == high.
2014-05-25 17:40:25 -07:00
Serhiy Storchaka
1f94efc626
Issue #19925 : Added tests for the spwd module. Original patch by Vajrasky Kok.
2014-05-25 16:21:32 +03:00
Serhiy Storchaka
4f0e167414
Issue #21522 : Added Tkinter tests for Listbox.itemconfigure(),
...
PanedWindow.paneconfigure(), and Menu.entryconfigure().
2014-05-23 14:08:31 +03:00
Serhiy Storchaka
f19771f831
Issue #20635 : Added tests for Tk geometry managers.
2014-05-23 13:54:35 +03:00
Antoine Pitrou
ab4a69158b
Issue #21523 : Fix over-pessimistic computation of the stack effect of some opcodes in the compiler.
...
This also fixes a quadratic compilation time issue noticeable when compiling
code with a large number of "and" and "or" operators.
2014-05-23 11:46:03 +02:00
Terry Jan Reedy
cc798377b7
Issue #21545 : Add .pop example and tweak comment about pure mutation methods.
...
Patch prepared by David Harrigan.
2014-05-23 00:34:02 -04:00
Benjamin Peterson
56032ce373
2.7.8 news section
2014-05-22 14:08:14 -07:00
Benjamin Peterson
996bf4828d
bump to 2.7.7rc1
2014-05-17 17:31:50 -07:00
Benjamin Peterson
d3d23636cb
support pep 3118 format strings for ctypes objects with nontrivial shapes ( closes #10744 )
...
Patch from Matti Picus.
2014-05-17 14:57:10 -07:00
Benjamin Peterson
c2a66f20ea
reindent for consistency
2014-05-17 14:53:04 -07:00
Ned Deily
78cceec1c0
Document changes to OS X installer configurations for 2.7.7.
...
As of 2.7.8, the 32-bit-only installer will support OS X 10.5
and later systems as is currently done for Python 3.x installers.
For 2.7.7 only, we will provide three installers:
the legacy deprecated 10.3+ 32-bit-only format;
the newer 10.5+ 32-bit-only format;
and the unchanged 10.6+ 64-/32-bit format.
Although binary installers will no longer be available from
python.org as of 2.7.8, it will still be possible to build from
source on 10.3.9 and 10.4 systems if necessary.
2014-05-17 14:29:22 -07:00
Senthil Kumaran
36f28f7ae8
Backport Fix for Issue #7776 : Fix ``Host:'' header and reconnection when using http.client.HTTPConnection.set_tunnel().
...
Patch by Nikolaus Rath.
2014-05-16 18:51:46 -07:00
Victor Stinner
4c5eced9f2
Issue #21488 : Oops, the patch for codecs.encode/decode doc was written by
...
Berker Peksag (already present in Misc/ACKS). The issue was reported by Brad
Aylsworth.
2014-05-14 23:28:48 +02:00
Victor Stinner
07b16159b8
Issue #21488 : Fix doc of codecs.decode() and codecs.encode(), no keyword support.
...
Patch written by Brad Aylsworth.
2014-05-14 17:07:08 +02:00
Raymond Hettinger
ddb39e799d
Issue #21470 : Do a better job seeding the random number generator
...
to fully cover its state space.
2014-05-13 22:09:23 -07:00
Raymond Hettinger
a5413c4997
Issue 21469: Mitigate risk of false positives with robotparser.
...
* Repair the broken link to norobots-rfc.txt.
* HTTP response codes >= 500 treated as a failed read rather than as a not
found. Not found means that we can assume the entire site is allowed. A 5xx
server error tells us nothing.
* A successful read() or parse() updates the mtime (which is defined to be "the
time the robots.txt file was last fetched").
* The can_fetch() method returns False unless we've had a read() with a 2xx or
4xx response. This avoids false positives in the case where a user calls
can_fetch() before calling read().
* I don't see any easy way to test this patch without hitting internet
resources that might change or without use of mock objects that wouldn't
provide must reassurance.
2014-05-12 22:18:50 -07:00
Terry Jan Reedy
00b0bd55b4
Issue #18104 : Add idlelib/idle_test/htest.py with a few sample tests to begin
...
consolidating and improving human-validated tests of Idle. Change other files
as needed to work with htest. Running the module as __main__ runs all tests.
2014-05-11 23:32:20 -04:00
Benjamin Peterson
629026aecc
backport hmac.compare_digest to partially implement PEP 466 ( closes #21306 )
...
Backport from Alex Gaynor.
2014-05-11 16:11:44 -07:00
Brian Curtin
d67c0b88ef
Backport 4e9f1017355f from #3561 .
...
This brings the option to install Python on the Windows Path.
Committed per Benjamin Peterson's approval on python-dev.
2014-05-10 12:52:59 -05:00
Antoine Pitrou
b0acc1b0a3
Issue #21350 : Fix file.writelines() to accept arbitrary buffer objects, as advertised.
...
Patch by Brian Kearns.
2014-05-08 19:26:04 +02:00
doko@ubuntu.com
9ba90c9f06
- Issue #17752 : Fix distutils tests when run from the installed location.
2014-05-07 04:41:26 +02:00
Zachary Ware
2460dc880f
Issue #18604 : Consolidated checks for GUI availability.
...
test_support._is_gui_available is now defined the same way on every
platform, and now includes the Windows-specific check that had been in the
Windows version of _is_gui_available and the OSX-specific check that was
in runtktests.check_tk_availability. Also, every platform checks whether
Tk can be instantiated (if the platform-specific checks passed).
2014-05-02 10:33:49 -05:00
Antoine Pitrou
3ec903fce4
Issue #21321 : itertools.islice() now releases the reference to the source iterator when the slice is exhausted.
...
Patch by Anton Afanasyev.
2014-04-29 12:13:46 +02:00
Terry Jan Reedy
0fe1d0a597
Closes #21026 : Augment site doc based on experiments. Patch by Carol Willing.
2014-04-29 00:31:46 -04:00
Tim Golden
700c8fe2ba
Issue #9291 Add ACKS & NEWS
2014-04-27 16:39:33 +01:00
Tim Golden
d6a1b2ba95
Add NEWS entry for issue21349
2014-04-26 16:02:38 +01:00
Tim Golden
3c603f3618
Issue21349 Passing a memoryview to _winreg.SetValueEx now correctly raises a TypeError where it previously crashed the interpreter. Patch by Brian Kearns
2014-04-26 15:47:08 +01:00
Zachary Ware
c6606edc86
Issue #21303 , #20565 : Updated the version of Tcl/Tk used on Windows
...
from 8.5.2 to 8.5.15.
2014-04-22 15:36:11 -05:00
Terry Jan Reedy
46b6c086d3
Issue #21138 : Change default reformat paragraph width to PEP 8's 72.
2014-04-22 01:26:35 -04:00
Terry Jan Reedy
0edf52a2c2
Issue 21284: Idle: make test_formatparagraph pass even when a user changes the
...
reformat width in the configuration menu.
2014-04-22 01:10:57 -04:00
Ned Deily
8488901282
Issue #21311 : Avoid exception in _osx_support with non-standard compiler
...
configurations. Patch by John Szakmeister.
2014-04-19 13:24:03 -07:00
doko@ubuntu.com
f27ec3e551
- Issue #21285 : Refactor and fix curses configure check to always search
...
in a ncursesw directory.
2014-04-17 20:11:19 +02:00
Terry Jan Reedy
e804efa6bb
Issue #18566 : Clarify unittest setUp, tearDown doc. Patch by Nitika Agarwal.
2014-04-15 23:38:11 -04:00
Benjamin Peterson
5c863bf938
when an exception is raised in fdopen, never close the fd (changing on my mind on #21191 )
2014-04-14 19:45:46 -04:00
Terry Jan Reedy
f7568e0a8a
Closes #20956 : 2.7 tokenize does not produce named tuples. Patch by Sam Kimbrel.
2014-04-14 16:17:09 -04:00
Eric V. Smith
9a55cd8857
Issue #12546 : Allow \x00 as a fill character for builtin type __format__ methods.
2014-04-14 11:22:33 -04:00
Benjamin Peterson
6c939cb6f6
in scan_once, prevent the reading of arbitrary memory when passed a negative index
...
Bug reported by Guido Vranken.
2014-04-13 22:10:38 -04:00
Vinay Sajip
5aad46e5c3
Issue #21172 : isinstance check relaxed from dict to collections.Mapping.
2014-04-10 07:07:59 +01:00
Benjamin Peterson
00109c9bd3
teach 2to3 about 'yield from'
2014-04-10 00:23:18 -04:00
Benjamin Peterson
da952f3ff4
add matrix multiplication operator support to 2to3
2014-04-10 00:12:47 -04:00
Benjamin Peterson
02ab7a84ef
make sure fdopen always closes the fd in error cases ( closes #21191 )
2014-04-09 15:40:18 -04:00
Vinay Sajip
66d8dbeacf
Issue #21149 : Improved thread-safety in logging cleanup during interpreter shutdown.
2014-04-04 10:47:53 +01:00
Benjamin Peterson
c4e6e0a279
bail in unicode error's __str__ methods if the objects are not properly initialized ( closes #21134 )
2014-04-02 12:15:06 -04:00
Benjamin Peterson
703ed60ca4
add Ian Beer
2014-03-30 20:33:47 -04:00
Benjamin Peterson
d42f60ed81
fix overflow detection of strop.expandtabs
2014-03-30 20:09:44 -04:00
Raymond Hettinger
40e95dfcaa
Issue #21029 : IDLE now colors print consistently as a keyword.
2014-03-29 21:01:50 -07:00
Ned Deily
3ac866539f
Issue #21093 : Prevent failures of ctypes test_macholib on OS X if a
...
copy of libz exists in $HOME/lib or /usr/local/lib.
2014-03-29 00:07:42 -07:00
Ned Deily
57847df4e5
Issue #17654 : Ensure IDLE menus are customized properly on OS X for
...
non-framework builds and for all variants of Tk.
2014-03-27 20:47:04 -07:00
Ned Deily
b693e9fc5b
Issue #6676 : Ensure a meaningful exception is raised when attempting
...
to parse more than one XML document per pyexpat xmlparser instance.
(Original patches by Hirokazu Yamamoto and Amaury Forgeot d'Arc, with
suggested wording by David Gutteridge)
2014-03-27 16:38:32 -07:00
Ned Deily
c727533cf5
Issue #20939 : Use www.example.com instead of www.python.org to avoid test
...
failures when ssl is not present.
2014-03-26 23:25:02 -07:00
R David Murray
6d9117604f
backport: #20145 : assertRaisesRegexp now raises a TypeError on bad regex.
...
Previously a non-string, non-regex second argument and no callable
argument could cause the test to appear to always pass.
2014-03-25 15:29:42 -04:00