Martin Panter
d2a584b47b
Issue #28394 : Spelling and typo fixes in code comments and changelog
...
Includes patch by Ville Skyttä.
2016-10-10 00:24:34 +00:00
Guido van Rossum
5e2a0ef2ee
Issue #28339 : Remove ByteString.register(memoryview(...)) from typing.py.
2016-10-09 10:02:49 -07:00
Yury Selivanov
4145c83806
Issue #27972 : Prohibit Tasks to await on themselves.
2016-10-09 12:19:12 -04:00
Yury Selivanov
908d55dd7e
Issue #28399 : Remove UNIX socket from FS before binding.
...
Patch by Коренберг Марк.
2016-10-09 12:15:08 -04:00
Guido van Rossum
e259267e52
Merge further typing.py changes from upstream.
2016-10-08 20:27:22 -07:00
Serhiy Storchaka
9c0e1f83af
Issue #28379 : Added sanity checks and tests for PyUnicode_CopyCharacters().
...
Patch by Xiang Zhang.
2016-10-08 22:45:38 +03:00
Serhiy Storchaka
48b1c3fcfc
Issue #28376 : The type of long range iterator is now registered as Iterator.
...
Patch by Oren Milman.
2016-10-08 22:04:12 +03:00
Serhiy Storchaka
44759bcf13
Issue #28376 : The constructor of range_iterator now checks that step is not 0.
...
Patch by Oren Milman.
2016-10-08 21:43:11 +03:00
Serhiy Storchaka
3bd9fde4df
Issue #28376 : Fixed typos.
...
Based on patch by Oren Milman.
2016-10-08 21:33:59 +03:00
Serhiy Storchaka
1c1130fb5f
Issue #25783 : Fixed test_traceback when run directly (without regrtest).
2016-10-07 23:45:42 +03:00
Serhiy Storchaka
5665301bae
Issue #28257 : Improved error message when pass a non-mapping as a var-keyword
...
argument.
2016-10-07 23:32:41 +03:00
Serhiy Storchaka
8793b21525
Issue #26293 : Fixed writing ZIP files that starts not from the start of the
...
file. Offsets in ZIP file now are relative to the start of the archive in
conforming to the specification.
2016-10-07 22:20:50 +03:00
Yury Selivanov
36e7e97d62
asyncio: Only allow Unix Stream sockets for loop.create_unix_server/connection
2016-10-07 12:39:57 -04:00
Yury Selivanov
cb9424f643
Issue #27759 : Fix selectors incorrectly retain invalid file descriptors.
...
(Backported to 3.4 as this bug might be exploited to for DoS)
2016-10-06 14:03:03 -04:00
Benjamin Peterson
4c8b2cd126
skip test on windows
2016-10-05 22:09:31 -07:00
Benjamin Peterson
cf0b9da988
fix bug in 48797808a302
2016-10-05 22:00:24 -07:00
Benjamin Peterson
e06cc67c19
skip test if resizing is not supported
2016-10-05 22:00:05 -07:00
Benjamin Peterson
cd04db03de
mmap: do all internal arithmetic with Py_ssize_t while being very careful about overflow
2016-10-05 21:45:48 -07:00
Yury Selivanov
92e7c7f99c
asyncio: Add "call_connection_made" arg to SSLProtocol.__init__
...
Issue #23749 : With this change it's possible to implement starttls
as a separate package on PyPI, or even by copying/pasting a small
snipped of code in your project.
It's expected that we'll figure out the API design for starttls
during 3.6, so that we can add it in 3.7.
2016-10-05 19:39:54 -04:00
Yury Selivanov
8dc3e43839
Issue #28372 : Fix asyncio to support formatting of non-python coroutines
2016-10-05 19:32:49 -04:00
Yury Selivanov
0de3de6cbf
Issue #28371 : Deprecate passing asyncio.Handles to run_in_executor.
2016-10-05 18:28:09 -04:00
Yury Selivanov
3e56ff0d08
Issue #28370 : Speedup asyncio.StreamReader.readexactly
...
Patch by Коренберг Марк.
2016-10-05 18:01:12 -04:00
Yury Selivanov
5b8d4f97f8
Issue #28369 : Raise an error when transport's FD is used with add_reader
2016-10-05 17:48:59 -04:00
Yury Selivanov
9eb6c67776
Issue #28368 : Refuse monitoring processes if the child watcher has no loop attached.
...
Patch by Vincent Michel.
2016-10-05 16:57:12 -04:00
Berker Peksag
b5bb404cca
Issue #28222 : Don't fail if pygments is not available
...
We can't just skip the test if docutils is available,
but pygments is not because the purpose of the test
was testing a bug in _check_rst_data().
2016-10-04 20:54:44 +03:00
Serhiy Storchaka
7338ebc4ba
Issue #28321 : Fixed writing non-BMP characters with binary format in plistlib.
2016-10-04 20:04:30 +03:00
Serhiy Storchaka
7fd9f4b458
Merge heads
2016-10-04 18:23:55 +03:00
Serhiy Storchaka
09f3d080fe
Issue #28350 : String constants with null character no longer interned.
2016-10-04 18:17:22 +03:00
Benjamin Peterson
8f657c35b9
ensure gc tracking is off when invoking weakref callbacks ( closes #26617 )
2016-10-04 00:00:02 -07:00
Guido van Rossum
b47c9d29d7
More updates from upstream typing.py
2016-10-03 08:40:50 -07:00
Serhiy Storchaka
cc164232aa
Issue #28295 : Fixed the documentation and added tests for PyUnicode_AsUCS4().
...
Original patch by Xiang Zhang.
2016-10-02 21:29:26 +03:00
Serhiy Storchaka
63b5b6fd45
Moved Unicode C API related tests to separate test class.
2016-10-02 21:16:38 +03:00
Berker Peksag
480b069270
Issue #20254 : Fix duplicate tests in test_socket
...
Patch by Vajrasky Kok.
2016-10-02 11:39:41 +03:00
Serhiy Storchaka
d556a35242
Issue #27358 : Backported tests.
2016-10-02 11:10:18 +03:00
Serhiy Storchaka
6498e5270e
Issue #28257 : Backported a test.
2016-10-02 10:36:33 +03:00
Serhiy Storchaka
85c3f268f4
Issue #28322 : Fixed possible crashes when unpickle itertools objects from
...
incorrect pickle data. Based on patch by John Leitch.
2016-10-02 08:34:53 +03:00
Martin Panter
38317d3318
Issue #28275 : Clean up to avoid use-after-free after bzip decompress failure
2016-10-01 02:45:17 +00:00
Berker Peksag
34b9d14be6
Issue #28283 : Remove flaky test test_sock_connect_sock_write_race again
...
It was added back in 53a578f51f21.
2016-10-01 04:16:59 +03:00
Guido van Rossum
e3c65a7a22
Misc asyncio improvements from upstream
2016-09-30 08:17:15 -07:00
Serhiy Storchaka
07cfd504e4
Merge heads
2016-09-30 10:38:31 +03:00
Serhiy Storchaka
00a0fc1144
Issue #27942 : String constants now interned recursively in tuples and frozensets.
2016-09-30 10:07:26 +03:00
Terry Jan Reedy
1813aa1a0c
Issue #25488 : Stpp idle.py from adding a entry when it is a duplicate.
...
Also, make idlelib.idle.main() work after import idlelib.idle.
2016-09-30 02:53:44 -04:00
Terry Jan Reedy
55f3ae68bb
Move idlelib/NEWS.txt entries for 2.x into a separate file -- NEWS2x.txt.
...
Reformat a few early 3.x entries in HEWS.txt.
2016-09-29 23:59:55 -04:00
Benjamin Peterson
4254e8c548
build_ext: correctly parse the link_objects user option ( closes #1703178 )
...
Patch by Valerie Lambert.
2016-09-28 23:13:58 -07:00
Martin Panter
c49b4d8ef3
Remove disabled ctypes test
...
The test was commented out in 2005 before ctypes was added to Python, because
the “cdll” attribute loading feature “will no longer work this way”:
http://svn.python.org/view?view=revision&revision=49102
2016-09-29 02:50:20 +00:00
Terry Jan Reedy
6c58c34dd3
IDLE NEWS item and ack.
2016-09-28 21:55:55 -04:00
Berker Peksag
aa5c2fdb7c
Issue #28303 : Fix grammar in unittest.__doc__, patch by Shlomi Fish
2016-09-28 17:28:41 +03:00
Berker Peksag
c16387b17f
Issue #28300 : Fix typos, patch by Shlomi Fish
2016-09-28 17:21:52 +03:00
Alexander Belopolsky
957b75699f
Issue #28253 : Fixed calendar functions for extreme months: 0001-01 and 9999-12.
...
Methods itermonthdays() and itermonthdays2() are reimplemented so that they
don't call itermonthdates() which can cause datetime.date under/overflow.
2016-09-27 20:26:39 -04:00
Guido van Rossum
4cefe74aef
Update typing.py and test_typing.py from upstream ( https://github.com/python/typing )
2016-09-27 15:20:12 -07:00
Berker Peksag
63461bc384
Issue #28283 : Remove flaky test test_sock_connect_sock_write_race
2016-09-28 00:39:36 +03:00
Serhiy Storchaka
47dee11ba7
Issue #21578 : Fixed misleading error message when ImportError called with
...
invalid keyword args.
2016-09-27 20:45:35 +03:00
Serhiy Storchaka
c0b7037d4f
Issue #28275 : Fixed possible use adter free in LZMADecompressor.decompress().
...
Original patch by John Leitch.
2016-09-27 20:14:26 +03:00
Serhiy Storchaka
407ac47690
Issue #27897 : Fixed possible crash in sqlite3.Connection.create_collation()
...
if pass invalid string-like object as a name. Patch by Xiang Zhang.
2016-09-27 00:10:03 +03:00
Berker Peksag
8b6b50814e
Issue #18893 : Fix invalid exception handling in Lib/ctypes/macholib/dyld.py
...
Patch by Madison May.
2016-09-26 23:06:32 +03:00
Serhiy Storchaka
b02f8fc3af
Issue #11957 : Restored re tests for passing count and maxsplit as positional
...
arguments.
2016-09-25 20:36:23 +03:00
Serhiy Storchaka
e6f0199c19
Issue #27611 : Fixed support of default root window in the tkinter.tix module.
2016-09-25 16:46:10 +03:00
Mark Dickinson
613f8e513c
Issue #28203 : Fix incorrect type in error message from complex(1.0, {2:3}). Patch by Soumya Sharma.
2016-09-24 15:26:36 +01:00
Martin Panter
8609cda961
Issue #28221 : Remove unused assignment from test_asyncore_server()
...
The later value of FOO is fine. The test just needs to verify that the server
converted it to lowercase.
2016-09-23 23:45:56 +00:00
Victor Stinner
bd2ffa5022
Issue #27829 : regrtest -W displays stderr if env changed
...
regrtest -W hides output if a test pass, but also when env changed and so the
env changed warning is hidden. So it's hard to debug. With this change, stderr
is now always displayed when a test doesn't pass.
2016-09-23 11:13:53 +02:00
Christian Heimes
55b196a1e4
Make Lib/test/ssltests.py more useful and faster for OpenSSL testing
2016-09-22 16:49:35 +02:00
Martin Panter
463ef2b3cf
Fix references to Python 3’s socketserver (lowercase) module
2016-09-22 09:37:56 +00:00
Martin Panter
bb8b1cb6af
Issue #27348 : Restore “Exception: None” formatting in traceback module
...
This fixes a regression caused by revision 73afda5a4e4c. Also reverts the
decimal test workaround added in revision 5f3dd0a2b1ab.
Remove test_without_exception(). According to revision ecaafc32c500, this was
added in Python 2 so that print_exc() would output “None” when called with no
exception set. However print_exc() never worked like this in Python 3, and
the use case is not documented.
Restore TracebackCases class name (instead of SyntaxTracebackCases), because
the class also tests other exceptions.
2016-09-22 09:37:39 +00:00
Serhiy Storchaka
92bb90a9ff
Extend the test to lower pickle protocols.
2016-09-22 11:39:25 +03:00
Berker Peksag
16ea19fc66
Issue #25651 : Allow falsy values to be used for msg parameter of subTest()
2016-09-21 19:34:15 +03:00
Victor Stinner
0256f42839
test_asynico: fix test_sock_connect_sock_write_race()
...
Issue #28176 : Increase timeout from 10 seconds to 60 seconds.
2016-09-21 09:15:36 +02:00
Raymond Hettinger
7eb1becc25
Issue #28189 : dictitems_contains no longer swallows compare errors.
...
(Patch by Xiang Zhang)
2016-09-18 21:45:11 -07:00
Berker Peksag
5a5ae745ff
Issue #26610 : Skip test_with_pip if _ctypes is not available in OpenIndiana
2016-09-18 14:52:25 +03:00
Berker Peksag
bf3c1c3235
Issue #28075 : Fix test_access_denied in Python 3.5
...
I forgot there two variations of os.stat() in Python 3.5.
2016-09-18 13:56:29 +03:00
Steve Dower
1ec262be80
Issue #27932 : Prevent memory leak in win32_ver().
2016-09-17 17:25:42 -07:00
Berker Peksag
bdcc8f9d1b
Issue #28176 : Increase timeout for test_sock_connect_sock_write_race
2016-09-18 01:06:50 +03:00
Berker Peksag
bcfb35f80d
Issue #26384 : Fix UnboundLocalError in socket._sendfile_use_sendfile
2016-09-17 23:22:06 +03:00
Berker Peksag
9a1c91a10d
Fix test_access_denied in 3.5
2016-09-17 16:20:55 +03:00
Berker Peksag
0b4dc4846b
Issue #28075 : Check for ERROR_ACCESS_DENIED in Windows implementation of os.stat()
...
Patch by Eryk Sun.
2016-09-17 15:49:59 +03:00
Berker Peksag
4a72a7b6c4
Issue #25270 : Prevent codecs.escape_encode() from raising SystemError when an empty bytestring is passed
2016-09-16 17:31:06 +03:00
Christian Heimes
a4961e555b
Issue #28181 : Get antigravity over HTTPS. Patch by Kaartic Sivaraam.
2016-09-16 13:48:10 +02:00
Berker Peksag
f676748a05
Issue #25895 : Enable WebSocket URL schemes in urllib.parse.urljoin
...
Patch by Gergely Imreh and Markus Holtermann.
2016-09-16 14:43:58 +03:00
Martin Panter
2dc77f0e19
Issue #28145 : Spelling fixes
2016-09-16 00:46:05 +00:00
Yury Selivanov
525aedc5fa
Issue #27759 : Fix selectors incorrectly retain invalid file descriptors.
...
Patch by Mark Williams.
2016-09-15 19:30:42 -04:00
Yury Selivanov
d6c6771fc9
Issue #28176 : Fix callbacks race in asyncio.SelectorLoop.sock_connect.
2016-09-15 17:56:36 -04:00
Yury Selivanov
4c5bf3bc52
Issue #26909 : Fix slow pipes IO in asyncio.
...
Patch by INADA Naoki.
2016-09-15 16:51:48 -04:00
Yury Selivanov
45dccdad93
Issue #26654 : Inspect functools.partial in asyncio.Handle.__repr__.
...
Patch by iceboy.
2016-09-15 15:58:15 -04:00
Yury Selivanov
5587d7c071
Issue #28174 : Handle when SO_REUSEPORT isn't properly supported (asyncio)
...
Patch by Seth Michael Larson.
2016-09-15 15:45:07 -04:00
Yury Selivanov
a1b0e7db73
Issue #27906 : Fix socket accept exhaustion during high TCP traffic.
...
Patch by Kevin Conway.
2016-09-15 14:13:15 -04:00
Yury Selivanov
4357cf6202
Another asyncio sync.
2016-09-15 13:49:08 -04:00
Yury Selivanov
f6d991d885
asyncio: Sync with the upstream
2016-09-15 13:10:51 -04:00
Serhiy Storchaka
e6265e92bf
Issue #27599 : Fixed buffer overrun in binascii.b2a_qp() and binascii.a2b_qp().
2016-09-14 16:34:37 +03:00
Berker Peksag
4aa74c429c
Issue #28131 : Fix a regression in zipimport's compile_source()
...
zipimport should use the same optimization level as the interpreter.
2016-09-14 08:09:48 +03:00
Berker Peksag
ac2d1c7153
Issue #27952 : Capture stderr in run_script()
2016-09-13 07:55:54 +03:00
Raymond Hettinger
076366c2a5
Issue #17582 : xml.etree.ElementTree nows preserves whitespaces in attributes
...
(Patch by Duane Griffin. Reviewed and approved by Stefan Behnel.)
2016-09-11 23:18:03 -07:00
Terry Jan Reedy
4b73676c3d
Issue #15308 : Add 'interrupt execution' (^C) to Shell menu.
...
Patch by Roger Serwy, updated by Bayard Randel.
2016-09-12 01:50:03 -04:00
Yury Selivanov
44c19eccf9
Issue #27456 : asyncio: Set TCP_NODELAY by default.
2016-09-11 21:39:31 -04:00
Yury Selivanov
a05a6ef1ca
asyncio: Add set_protocol / get_protocol methods to Transports
2016-09-11 21:11:02 -04:00
Guido van Rossum
0a6976da10
Issue #28079 : Update typing and test typing from python/typing repo.
...
Ivan Levkivskyi (3.5 version)
2016-09-11 15:34:56 -07:00
R David Murray
0e0cfd7135
#19003 : Only replace \r and/or \n line endings in email.generator.
...
This is a further restoration of backward compatibility, as well as
being correct per the RFCs.
2016-09-11 17:22:56 -04:00
Vinay Sajip
8d82559ca7
Fixes #25671 : Updated prompt handling in activate.fish.
2016-09-11 12:52:08 +01:00
Martin Panter
b7665386bc
Issue #27952 : Get fixcid.py working with the re module
2016-09-11 09:32:26 +00:00
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)
3a95f45a38
Remove the debug print that i accidentally left in.
2016-09-10 20:39:36 -07:00
Serhiy Storchaka
cc66a6528d
Backported tests for issue #28070 .
2016-09-11 01:39:51 +03:00
Terry Jan Reedy
d92cecb9f1
IDLE newx items.
2016-09-10 16:24:54 -04:00