Serhiy Storchaka
6655354afc
bpo-33584: Fix several minor bugs in asyncio. (GH-7003)
...
Fix the following bugs in the C implementation:
* get_future_loop() silenced all exceptions raised when look up the get_loop
attribute, not just an AttributeError.
* enter_task() silenced all exceptions raised when look up the current task,
not just a KeyError.
* repr() was called for a borrowed link in enter_task() and task_step_impl().
* str() was used instead of repr() in formatting one error message (in
Python implementation too).
* There where few reference leaks in error cases.
2018-05-20 16:30:31 +03:00
CtrlZvi
4151061855
bpo-26819: Prevent proactor double read on resume ( #6921 )
...
The proactor event loop has a race condition when reading with
pausing/resuming. `resume_reading()` unconditionally schedules the read
function to read from the current future. If `resume_reading()` was
called before the previously scheduled done callback fires, this results
in two attempts to get the data from the most recent read and an
assertion failure. This commit tracks whether or not `resume_reading`
needs to reschedule the callback to restart the loop, preventing a
second attempt to read the data.
2018-05-20 13:21:10 +03:00
Serhiy Storchaka
f5e7b1999f
bpo-23722: Raise a RuntimeError for absent __classcell__. (GH-6931)
...
A DeprecationWarning was emitted in Python 3.6-3.7.
2018-05-20 08:48:12 +03:00
Terry Jan Reedy
6b0d09b8f0
bpo-30928: Update idlelib/NEWS.txt. ( #6995 )
2018-05-19 21:38:46 -04:00
Cheryl Sabella
654038d896
bpo-32831: IDLE: Add docstrings and tests for codecontext (GH-5638)
2018-05-19 15:34:03 -04:00
Ivan Levkivskyi
f65e31fee3
bpo-28556: Don't simplify unions at runtime (GH-6841)
2018-05-18 16:00:38 -07:00
Skip Montanaro
5634331a76
bpo-33556: Remove reference to thread module from docstring (GH-6963)
2018-05-18 13:38:36 -05:00
Terry Jan Reedy
d89ca94847
bpo-33564: Add async to IDLE's code context block openers. (GH-6960)
2018-05-17 20:38:41 -04:00
Barry Warsaw
273f51f5ca
Provide a little better debug output ( #6940 )
2018-05-17 11:54:01 -04:00
Barry Warsaw
0ed66df524
bpo-33537: Add an __all__ to importlib.resources ( #6920 )
2018-05-17 11:41:53 -04:00
Eric Snow
3ab0136ac5
bpo-32604: Implement force-closing channels. (gh-6937)
...
This will make it easier to clean up channels (e.g. when used in tests).
2018-05-17 10:27:09 -04:00
Matthias Bussonnier
f90f5d5c1d
bpo-33549: Remove shim and deprecation warning to access DocumentLS.async. (GH-6924)
...
`obj.async` is now a syntax error, so the warning/shim is
quasi-unnecessary.
2018-05-17 11:16:12 +03:00
Serhiy Storchaka
64fddc423f
bpo-33475: Fix and improve converting annotations to strings. (GH-6774)
2018-05-16 23:17:48 -04:00
Steve Dower
e5f41d2f1e
bpo-33522: Enable CI builds on Visual Studio Team Services ( #6865 )
2018-05-16 17:50:29 -04:00
Eric Snow
6d2cd9036c
bpo-32604: Improve subinterpreter tests. ( #6914 )
...
Add more tests for subinterpreters. This patch also fixes a few small defects in the channel implementation.
2018-05-16 15:04:57 -04:00
Nina Zakharenko
2d2d3b170b
Fix ClassVar as string fails when getting type hints (GH-6824)
2018-05-16 12:27:03 -04:00
Petr Viktorin
8b94b41ab7
bpo-28167: Remove platform.linux_distribution (GH-6871)
...
* test_ssl: Remove skip_if_broken_ubuntu_ssl
We no longer support OpenSSL 0.9.8.15.15.
* bpo-28167: Remove platform.linux_distribution
2018-05-16 11:51:18 -04:00
Eric V. Smith
4e81296b18
bpo-33536: Validate make_dataclass() field names. (GH-6906)
2018-05-16 11:31:29 -04:00
Christopher Beacham
5db5c0669e
bpo-21475: Support the Sitemap extension in robotparser (GH-6883)
2018-05-16 10:52:07 -04:00
Eric V. Smith
9285835a05
bpo-33534: Remove unneeded test. (GH-6897)
...
This condition as already tested before this code is called.
2018-05-16 07:24:00 -04:00
Eric V. Smith
f8e7549490
Reflow dataclasses comments (GH-6893)
...
To be more consistent with other code (and so people stop hassling me!), reflow the dataclasses comments to not use a single space indentation when continuing a paragraph of text.
2018-05-16 05:14:53 -04:00
Isaiah Peng
4cc3eb48e1
bpo-32384: Skip test when _testcapi isn't available (GH-4940)
2018-05-16 11:05:17 +03:00
Eric V. Smith
2a7bacbd91
bpo-33453: Handle string type annotations in dataclasses. (GH-6768)
2018-05-15 22:44:27 -04:00
Terry Jan Reedy
038b21f2ca
bpo-30928: Update idlelib/NEWS.txt to 2018-05-14. ( #6873 )
2018-05-15 17:41:57 -04:00
Victor Stinner
b056562860
bpo-33509: Fix _warnings for module_globals=None ( #6833 )
...
Don't crash on warnings.warn_explicit() if module_globals is not a dict.
2018-05-15 20:42:12 +02:00
Barry Warsaw
8709b236fc
bpo-33465: Use an unlikely to be built-in C extension in a test ( #6797 )
2018-05-15 14:41:13 -04:00
Terry Jan Reedy
389a48ede9
bpo-29706: Test that IDLE colors async/await as keywords. (GH-6846)
...
Added to the eye-verified htest, not to the unittests.
Also remove some stray leftover comments.
2018-05-15 14:20:38 -04:00
Matthias Bussonnier
9eb40bc38d
bpo-28167: bump platform.linux_distribution removal to 3.8 (GH-6669)
...
Also bump PendingDeprecationWarning to DeprecationWarning.
2018-05-15 11:17:00 -04:00
Eric V. Smith
01abc6ec3a
bpo-33517: dataclasses: Add the field type to Field repr (GH-6858)
2018-05-15 08:36:21 -04:00
Segev Finer
735abadd5b
bpo-16865: Support arrays >=2GB in ctypes. (GH-3006)
2018-05-15 02:54:29 +03:00
Amber Brown
545c955be9
bpo-33497: Add errors param to cgi.parse_multipart and make an encoding in FieldStorage use the given errors (GH-6804)
2018-05-14 18:11:55 -04:00
Eric V. Smith
3059042410
bpo-33502: dataclass._Dataclassparams repr: use repr of each member. (GH-6812)
2018-05-14 17:16:52 -04:00
Eric V. Smith
2473eea65d
bpo-33494: Change dataclasses.Fields repr to use the repr of each of its members (GH-6798)
2018-05-14 11:37:28 -04:00
Michael Lazar
bd08a0af2d
bpo-32861: urllib.robotparser fix incomplete __str__ methods. (GH-5711)
...
The urllib.robotparser's __str__ representation now includes wildcard
entries and the "Crawl-delay" and "Request-rate" fields. Also removes extra
newlines that were being appended to the end of the string.
2018-05-14 17:10:41 +03:00
Anders Kaseorg
5c0d462689
bpo-32601: Let test_expanduser use the same user if no others found. (GH-5246)
...
This happens in the NixOS build sandbox, for example, where the only
other user is nobody with home directory /.
2018-05-14 17:00:37 +03:00
Miro Hrončok
7ec8f28656
bpo-33455: Pass os.environ in test_posix::test_specify_environment. (GH-6753)
...
Pass os.environ's copy to new process created at test_posix:
test_specify_environment. Otherwise important variables such as
LD_LIBRARY_PATH are not set and the child process might not work at all
in an environment where such variables are required for Python to function.
2018-05-11 08:40:43 +03:00
Ivan Levkivskyi
b551e9f0ff
Fix a bug in Generic.__new__ (GH-6758)
2018-05-10 23:10:10 -04:00
Oren Milman
d518d8bc8d
bpo-21983: Fix a crash in ctypes.cast() when passed a ctypes structured data type (GH-3859)
2018-05-09 14:38:56 -07:00
sblondon
8cf4b34b36
bpo-33311: Do not display parameters displayed in parentheses for module call. (GH-6677)
2018-05-09 12:39:32 +03:00
jdemeyer
ac9240b9be
closes bpo-33445: fail properly in test_cprofile() (GH-6727)
2018-05-08 21:16:35 -07:00
Ivan Levkivskyi
43d12a6bd8
bpo-28556: Minor fixes for typing module (GH-6732)
...
This also fixes https://bugs.python.org/issue33420
2018-05-09 02:23:46 +01:00
Serhiy Storchaka
ec1622d56c
bpo-33144: Fix choosing random.Random._randbelow implementation. (GH-6563)
...
random() takes precedence over getrandbits() if defined later
in the class tree.
2018-05-08 15:45:15 +03:00
Serhiy Storchaka
d54cfb160c
bpo-33441: Make the sigset_t converter available in other modules. (GH-6720)
...
* Expose the sigset_t converter via private API _Py_Sigset_Converter().
* Use Argument Clinic for parsing sigset_t in signalmodule.c.
* Raise ValueError instead OverflowError for integers out of
the C long range.
Based on patch by Pablo Galindo Salgado.
2018-05-08 07:48:50 +03:00
Serhiy Storchaka
a3f19c3f52
Remove mojibake in the locale aliases mapping. (GH-6716)
2018-05-06 10:52:38 +03:00
Serhiy Storchaka
cedc9b7420
bpo-20087: Update locale alias mapping with glibc 2.27 supported locales. (ПР-6708)
2018-05-06 08:46:15 +03:00
Andrés Delfino
b2043bbe60
bpo-33422: Fix quotation marks getting deleted when looking up byte/string literals on pydoc. (GH-6701)
...
Also update the list of string prefixes.
2018-05-05 19:07:32 +03:00
Vinay Sajip
c4994dc00d
bpo-33400: Clarified documentation to indicate no strict adherence to ISO 8601. (GH-6702)
2018-05-04 22:20:54 +01:00
Antoine Pitrou
9d3627e311
bpo-33332: Add signal.valid_signals() (GH-6581)
2018-05-04 13:00:50 +02:00
Ray Donnelly
d06d345f04
bpo-33281: Fix ctypes.util.find_library regression on macOS (GH-6625)
2018-05-01 22:31:36 -04:00
Serhiy Storchaka
ef347535f2
bpo-20104: Improve error handling and fix a reference leak in os.posix_spawn(). ( #6332 )
2018-05-01 16:45:04 +03:00