[issue30755] locale.normalize() and getdefaultlocale() convert C.UTF-8 to en_US.UTF-8

2019-07-09 Thread Miro Hrončok
Miro Hrončok added the comment: >> C.UTF-8 doesn't exist and en_US.UTF-8 does > That can't happen It certainly can. Take for example RHEL 7 or 6. -- nosy: +hroncok, vstinner versions: +Python 3.8 ___ Python tracker

[issue37491] IndexError in get_bare_quoted_string

2019-07-09 Thread Abhilash Raj
Abhilash Raj added the comment: Thanks for the explanation Terry! In this case, value becomes None (I think), which causes the IndexError. -- ___ Python tracker ___

[issue18374] ast.parse gives wrong position (col_offset) for some BinOp-s

2019-07-09 Thread Carl Friedrich Bolz-Tereick
Change by Carl Friedrich Bolz-Tereick : -- pull_requests: +14466 pull_request: https://github.com/python/cpython/pull/14659 ___ Python tracker ___

[issue37524] IDLE error on closing 3.8+ debug build

2019-07-09 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +taleinat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37524] IDLE error on closing 3.8+ debug build

2019-07-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am pretty sure that this started sometime well after 3.7 was split off from master. Perhaps there was some change in python shutdown not backported to 3.7. -- ___ Python tracker

[issue37052] Add examples for mocking async for and async context manager in unittest.mock docs

2019-07-09 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +14467 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14660 ___ Python tracker

[issue37525] test_ssl: test_pha_required_nocert() logs ResourceWarning

2019-07-09 Thread STINNER Victor
New submission from STINNER Victor : vstinner@apu$ ./python -u -m test test_ssl -v -m test_pha_required_nocert == CPython 3.9.0a0 (heads/master:110a47c4f4, Jul 8 2019, 23:52:00) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] == Linux-5.1.15-300.fc30.x86_64-x86_64-with-glibc2.29 little-endian == cwd:

[issue37473] importlib: Remove libregrtest hack: "We import importlib *ASAP* in order to test #15386"

2019-07-09 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +14468 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14661 ___ Python tracker ___

[issue37505] Early auditing broken

2019-07-09 Thread Christian Heimes
Christian Heimes added the comment: Some audit events are designed to work before the interpreter is fully initialized or already shut down. These events pass in NULL instead of a PyObject*. Python/pystate.c:if (PySys_Audit("cpython.PyInterpreterState_New", NULL) < 0) {

[issue37322] test_ssl: test_pha_required_nocert() emits a ResourceWarning

2019-07-09 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +14470 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14662 ___ Python tracker ___

[issue37505] Early auditing broken

2019-07-09 Thread Steve Dower
Steve Dower added the comment: Passing a NULL format string there means the same as passing NULL to PyObject_CallFunction(func, NULL) - no arguments, which results in an empty tuple being passed to the hooks. Perhaps in the early cases we can pass NULL instead of a tuple? Maybe even assert

[issue29312] Use FASTCALL in dict.update()

2019-07-09 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > but it will make d1.update(**d2) slower with a complexity of O(n): d2 must be > converted to 2 lists This part is still true and it causes a slow-down of about 23% for dict.update(**d), see benchmarks at

[issue37526] Add support.catch_threading_exception()

2019-07-09 Thread STINNER Victor
New submission from STINNER Victor : bpo-1230540 added threading.excepthook() to handle "uncaught exceptions raised by Thread.run()". I propose to add support.catch_threading_exception(): context manager to ease catching these exceptions. Attached PR implements it. -- components:

[issue37527] Timestamp conversion on windows fails with timestamps close to EPOCH

2019-07-09 Thread Dschoni
New submission from Dschoni : A long description of the issue can be found on SO here: https://stackoverflow.com/questions/56931738/python-crash-on-windows-with-a-datetime-close-to-the-epoch?noredirect=1#comment100413591_56931738 TL;DR: This fails on windows: from datetime import datetime

[issue37363] Additional PEP578 hooks

2019-07-09 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +14471 pull_request: https://github.com/python/cpython/pull/14663 ___ Python tracker ___

[issue37526] Add support.catch_threading_exception()

2019-07-09 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +14472 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14664 ___ Python tracker ___

[issue37526] Add support.catch_threading_exception()

2019-07-09 Thread STINNER Victor
Change by STINNER Victor : -- versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37322] test_ssl: test_pha_required_nocert() emits a ResourceWarning

2019-07-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset cf9c41c422de3774862db964fe3153086bad3f61 by Victor Stinner in branch 'master': bpo-37322: Fix test_ssl.test_pha_required_nocert() ResourceWarning (GH-14662) https://github.com/python/cpython/commit/cf9c41c422de3774862db964fe3153086bad3f61

[issue37322] test_ssl: test_pha_required_nocert() emits a ResourceWarning

2019-07-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +14473 pull_request: https://github.com/python/cpython/pull/14665 ___ Python tracker ___

[issue37526] Add support.catch_threading_exception()

2019-07-09 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-36829: Add test.support.catch_unraisable_exception(). catch_threading_exception() is very close to catch_unraisable_exception(). -- ___ Python tracker

[issue36829] Add sys.unraisablehook() to customize how "unraisable exceptions" are logged

2019-07-09 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-37526: Add support.catch_threading_exception(). -- ___ Python tracker ___ ___

[issue37526] Add support.catch_threading_exception()

2019-07-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 91b4f7ab7f9a5e0908b91379ee085ae087a76483 by Victor Stinner in branch 'master': bpo-37526: Add support.catch_threading_exception() (GH-14664) https://github.com/python/cpython/commit/91b4f7ab7f9a5e0908b91379ee085ae087a76483 --

[issue37526] Add support.catch_threading_exception()

2019-07-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +14474 pull_request: https://github.com/python/cpython/pull/14666 ___ Python tracker ___

[issue37322] test_ssl: test_pha_required_nocert() emits a ResourceWarning

2019-07-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +14475 pull_request: https://github.com/python/cpython/pull/14667 ___ Python tracker ___

[issue34679] asyncio.add_signal_handler call fails if not on main thread

2019-07-09 Thread Andrew Svetlov
Andrew Svetlov added the comment: Good point. For proactor event loop set_wakeup_fd() is used for Ctrl+C handling. Skipping this call for non-main thread in proactor implementation makes sense. -- assignee: -> asvetlov ___ Python tracker

[issue37120] Provide knobs to disable session ticket generation on TLS 1.3

2019-07-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +14476 stage: commit review -> patch review pull_request: https://github.com/python/cpython/pull/14668 ___ Python tracker ___

[issue37322] test_ssl: test_pha_required_nocert() emits a ResourceWarning

2019-07-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +14477 pull_request: https://github.com/python/cpython/pull/14669 ___ Python tracker ___

[issue37524] IDLE error on closing 3.8+ debug build

2019-07-09 Thread Terry J. Reedy
New submission from Terry J. Reedy : In Win Command Prompt, in master repository or 3.8 worktree with 32 bit debug build: F:\dev\3x>python Running Debug|Win32 interpreter... Python 3.9.0a0 (heads/master:110a47c4f4, Jul 9 2019, 01:31:55) [MSC v.1900 32 bit (Intel)] on win32 Type "help",

[issue37524] IDLE error on closing 3.8+ debug build

2019-07-09 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +ZackerySpytz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37525] test_ssl: test_pha_required_nocert() logs ResourceWarning

2019-07-09 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37525] test_ssl: test_pha_required_nocert() logs ResourceWarning

2019-07-09 Thread STINNER Victor
STINNER Victor added the comment: Duplicate of bpo-37322. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> test_ssl: test_pha_required_nocert() emits a ResourceWarning ___ Python tracker

[issue15386] Still getting two copies of importlib._bootstrap

2019-07-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +14469 pull_request: https://github.com/python/cpython/pull/14661 ___ Python tracker ___

[issue37322] test_ssl: test_pha_required_nocert() emits a ResourceWarning

2019-07-09 Thread STINNER Victor
STINNER Victor added the comment: I marked bpo-37525 as duplicate of this issue. -- ___ Python tracker ___ ___ Python-bugs-list

[issue37517] Improve error messages for Windows reserved file names

2019-07-09 Thread Steve Dower
Steve Dower added the comment: Presumably this is linked to issue37515 (why not just repurpose that one?), but I'm inclined to think this is okay provided: * if the operation succeeds, no error/message is displayed * if the operation fails, we only update the error message if one of the

[issue11871] test_default_timeout() of test_threading.BarrierTests failure: BrokenBarrierError

2019-07-09 Thread STINNER Victor
STINNER Victor added the comment: test_threading failed on AMD64 Windows8.1 Refleaks 3.x, the unittest errors are missing, but unraisable exceptions look similar: https://buildbot.python.org/all/#/builders/80/builds/646 0:21:11 load avg: 7.30 [156/419/3] test_threading failed (2 min 56 sec)

[issue37452] Microsoft store package has an invalid ExecutablePath registry entry

2019-07-09 Thread Fredrik Mellbin
Fredrik Mellbin added the comment: This is fixed and works as expected in 3.7.4 from the MS Store. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue18374] ast.parse gives wrong position (col_offset) for some BinOp-s

2019-07-09 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: New changeset 68bd9c5691c4899d21cc7fe6cce7cd22b2f5ccb0 by Ivan Levkivskyi (Miss Islington (bot)) in branch '3.8': bpo-18374: fix tests to check the correct thing about line numbers (GH-14659) (GH-14672)

[issue26131] Raise ImportWarning when loader.load_module() is used

2019-07-09 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: @brett Since this was opened like years ago. Before I work on it, I was wondering If it is still relevant. -- ___ Python tracker ___

[issue37529] Mimetype module duplicates

2019-07-09 Thread disconnect3d
New submission from disconnect3d : The mimetype builtin module allows users to guess extension for a given mimetype through the `mimetypes.guess_extension` function. Default mimetypes are stored in `types_map` and `_types_map_default` dictionaries that maps extensions to mimetypes. Those

[issue37529] Mimetype module duplicates

2019-07-09 Thread disconnect3d
disconnect3d added the comment: To be more specific and to keep this information historically, the .bmp registers two mimetypes - 'image/bmp' and 'image/x-ms-bmp'. Below a part of the relevant code. ``` types_map = _types_map_default = { # (...) '.bmp': 'image/bmp',

[issue30663] IDLE: Add lineno sidebar to editor window

2019-07-09 Thread Tal Einat
Tal Einat added the comment: Thanks for helping to move this forward, Louie! My worry with this approach is that all of the line numbers are redrawn upon scrolling, which would be likely to make scrolling less smooth, especially on low-end hardware (where IDLE is relatively often used).

[issue34679] asyncio.add_signal_handler call fails if not on main thread

2019-07-09 Thread Brett Slatkin
Brett Slatkin added the comment: I believe the scope of this bug may be larger than it originally seemed. Now that ProactorEventLoop is the default for Python 3.8 (https://bugs.python.org/issue34687), I'm seeing this same problem on Windows when you try to call asyncio.new_event_loop() from

[issue37501] Test failures when CPython is built without docstrings

2019-07-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Compiling without docstrings only affects compiled functions. (Is this option unix only, for servers?) This caused failures in 6 /test test functions. Running with -00 only affects python functions. It causes failure in 19 test function on Windows. For

[issue36132] Python cannot access hci_channel field in sockaddr_hci

2019-07-09 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: +Jeffrey.Kintscher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36993] zipfile: tuple IndexError on extract

2019-07-09 Thread Daniel Hillier
Daniel Hillier added the comment: I've pushed a PR which adds a test that generates corrupt zip64 files with different combinations of zip64 extra data lengths and zip64 flags (which determines how many fields are required in the extra data). It now raises a BadZipFile with a message naming

[issue37523] zipfile: Raise ValueError for i/o operations on closed zipfile.ZipExtFile

2019-07-09 Thread Daniel Hillier
New submission from Daniel Hillier : After closing a file object opened from a ZipFile, attempting i/o operations raises AttributeError because the underlying fd has been set to None. We should be raising ValueErrors consistent with io.FileIO behaviour. Similar inconsistencies exist for the

[issue37523] zipfile: Raise ValueError for i/o operations on closed zipfile.ZipExtFile

2019-07-09 Thread Daniel Hillier
Change by Daniel Hillier : -- keywords: +patch pull_requests: +14465 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14658 ___ Python tracker ___

[issue37390] Generate table of audit events for docs

2019-07-09 Thread Steve Dower
Steve Dower added the comment: Anyone from the docs team have any ideas here? We're going to present on this at EuroPython tomorrow and it'd be great to be able to point people at the docs. -- ___ Python tracker

[issue30755] locale.normalize() and getdefaultlocale() convert C.UTF-8 to en_US.UTF-8

2019-07-09 Thread Gordon Messmer
Gordon Messmer added the comment: > I agree we shouldn't be aliasing C.UTF-8 to en_US.UTF-8 though What can we do about reverting that change? Python's current behavior causes unexpected exceptions, especially in containers. I'm currently debugging test failures in a Python application

[issue37322] test_ssl: test_pha_required_nocert() emits a ResourceWarning

2019-07-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +14481 pull_request: https://github.com/python/cpython/pull/14673 ___ Python tracker ___

[issue37322] test_ssl: test_pha_required_nocert() emits a ResourceWarning

2019-07-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 73ea54620a6f91c3f2e53880373dd47813691a21 by Victor Stinner in branch 'master': bpo-37322: ssl test_pha_required_nocert() ignores expected SSLError (GH-14670) https://github.com/python/cpython/commit/73ea54620a6f91c3f2e53880373dd47813691a21

[issue34722] Non-deterministic bytecode generation

2019-07-09 Thread Chih-Hsuan Yen
Change by Chih-Hsuan Yen : -- nosy: +yan12125 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37526] Add support.catch_threading_exception()

2019-07-09 Thread STINNER Victor
STINNER Victor added the comment: Maybe the context manager could recreate attributes (set them to None) if the context manager is used wice, but I'm not sure that I don't want to promote to reuse catch_threading_exception(). I didn't check if catch_threading_exception() creates a ref

[issue18374] ast.parse gives wrong position (col_offset) for some BinOp-s

2019-07-09 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37120] Provide knobs to disable session ticket generation on TLS 1.3

2019-07-09 Thread miss-islington
miss-islington added the comment: New changeset bbad695e7890513be7a9bc662e2d8ae13bfcd313 by Miss Islington (bot) in branch '3.8': bpo-37120: Fix _ssl get_num_tickets() (GH-14668) https://github.com/python/cpython/commit/bbad695e7890513be7a9bc662e2d8ae13bfcd313 --

[issue37322] test_ssl: test_pha_required_nocert() emits a ResourceWarning

2019-07-09 Thread miss-islington
miss-islington added the comment: New changeset 4c403b8ca2d0ef44b691cceaeeac9e110fd3f05a by Miss Islington (bot) in branch '3.8': bpo-37322: ssl test_pha_required_nocert() ignores expected SSLError (GH-14670) https://github.com/python/cpython/commit/4c403b8ca2d0ef44b691cceaeeac9e110fd3f05a

[issue26806] IDLE not displaying RecursionError tracebacks and hangs

2019-07-09 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +14464 pull_request: https://github.com/python/cpython/pull/14657 ___ Python tracker ___

[issue37322] test_ssl: test_pha_required_nocert() emits a ResourceWarning

2019-07-09 Thread STINNER Victor
STINNER Victor added the comment: > New changeset cf9c41c422de3774862db964fe3153086bad3f61 by Victor Stinner in > branch 'master': > bpo-37322: Fix test_ssl.test_pha_required_nocert() ResourceWarning (GH-14662) Oh. This test started to fail on Windows with this change. Example:

[issue37120] Provide knobs to disable session ticket generation on TLS 1.3

2019-07-09 Thread miss-islington
miss-islington added the comment: New changeset 76611c7c0af6b2f4d0d98a5db827d34cff54ce25 by Miss Islington (bot) (Victor Stinner) in branch 'master': bpo-37120: Fix _ssl get_num_tickets() (GH-14668) https://github.com/python/cpython/commit/76611c7c0af6b2f4d0d98a5db827d34cff54ce25

[issue37528] test_tarfile: test_extractall_symlinks() fails on Windows with: [WinError 206] The filename or extension is too long

2019-07-09 Thread STINNER Victor
New submission from STINNER Victor : AMD64 Windows8.1 Non-Debug 3.x: https://buildbot.python.org/all/#/builders/12/builds/2862 FAIL: test_extractall_symlinks (test.test_tarfile.Bz2WriteTest) -- Traceback (most recent call

[issue37528] test_tarfile: test_extractall_symlinks() fails on Windows with: [WinError 206] The filename or extension is too long

2019-07-09 Thread STINNER Victor
STINNER Victor added the comment: On this buildbot build, test_tarfile succeeded when run again. Likely because the test is run in the main regrtest process which doesn't have "test_python_worker_xxx" in its current working directory. -- ___

[issue37322] test_ssl: test_pha_required_nocert() emits a ResourceWarning

2019-07-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 61b1bc56069719fc6f17c73fdf2193636dbf6cc2 by Victor Stinner in branch 'master': Revert "bpo-37322: Fix test_ssl.test_pha_required_nocert() ResourceWarning (GH-14662)" (GH-14669)

[issue37528] test_tarfile: test_extractall_symlinks() fails on Windows with: [WinError 206] The filename or extension is too long

2019-07-09 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37322] test_ssl: test_pha_required_nocert() emits a ResourceWarning

2019-07-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +14478 pull_request: https://github.com/python/cpython/pull/14670 ___ Python tracker ___

[issue37526] Add support.catch_threading_exception()

2019-07-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 58f2c7f424fe91ba035918f0f66306af73a37543 by Victor Stinner (Miss Islington (bot)) in branch '3.8': bpo-37526: Add support.catch_threading_exception() (GH-14664) (GH-14666)

[issue37322] test_ssl: test_pha_required_nocert() emits a ResourceWarning

2019-07-09 Thread STINNER Victor
STINNER Victor added the comment: The test also logs an "Exception in thread Thread-2:" error: --- vstinner@apu$ ./python -m test test_ssl -m test_pha_required_nocert -v == CPython 3.9.0a0 (heads/master:110a47c4f4, Jul 8 2019, 23:52:00) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] ==

[issue37120] Provide knobs to disable session ticket generation on TLS 1.3

2019-07-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +14479 pull_request: https://github.com/python/cpython/pull/14671 ___ Python tracker ___

[issue18374] ast.parse gives wrong position (col_offset) for some BinOp-s

2019-07-09 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: New changeset 430a9f44fe22f029ae8cfeecb46621d7e199414b by Ivan Levkivskyi (Carl Friedrich Bolz-Tereick) in branch 'master': bpo-18374: fix tests to check the correct thing about line numbers (GH-14659)

[issue18374] ast.parse gives wrong position (col_offset) for some BinOp-s

2019-07-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +14480 pull_request: https://github.com/python/cpython/pull/14672 ___ Python tracker ___

[issue34722] Non-deterministic bytecode generation

2019-07-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- versions: +Python 3.9 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37226] Asyncio Fatal Error on SSL Transport - IndexError Deque Index Out Of Range

2019-07-09 Thread Ben Brown
Ben Brown added the comment: Maayan Keshet do you have a minimal example it would be interesting to compare against our code and see if there is something we are both doing that could help narrow down the issue. -- ___ Python tracker

[issue37491] IndexError in get_bare_quoted_string

2019-07-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: To avoid such questions, bug reports should contain exception messages and usually at least some of the tracebacks. >>> ''[0] Traceback (most recent call last): File "", line 1, in ''[0] IndexError: string index out of range >>> x=None >>> x[0]

[issue26806] IDLE not displaying RecursionError tracebacks and hangs

2019-07-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 6aeb2fe606408aae14c246470794f1303b3be812 by Terry Jan Reedy in branch 'master': bpo-26806: IDLE should run without docstrings (#14657) https://github.com/python/cpython/commit/6aeb2fe606408aae14c246470794f1303b3be812 --

[issue26806] IDLE not displaying RecursionError tracebacks and hangs

2019-07-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +14484 pull_request: https://github.com/python/cpython/pull/14678 ___ Python tracker ___

[issue26806] IDLE not displaying RecursionError tracebacks and hangs

2019-07-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +14483 pull_request: https://github.com/python/cpython/pull/14677 ___ Python tracker ___

[issue26806] IDLE not displaying RecursionError tracebacks and hangs

2019-07-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset f54f062f68ac82fc3e7c92345b4d5fbe2534dc84 by Terry Jan Reedy (Miss Islington (bot)) in branch '3.7': bpo-26806: IDLE should run without docstrings (GH-14657) (GH-14678)

[issue26806] IDLE not displaying RecursionError tracebacks and hangs

2019-07-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset b82188d9bad1774624cb1788dbdec2f0d7d65688 by Terry Jan Reedy (Miss Islington (bot)) in branch '3.8': bpo-26806: IDLE should run without docstrings (GH-14657) (GH-14677)

[issue27679] set_bitfields() unused in _ctypes_test

2019-07-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3a3db970de344efbb4017fb9dde9204f0fd4bbdc by Victor Stinner (Hai Shi) in branch 'master': bpo-27679: Remove set_bitfields() from _ctypes_test (GH-14648) https://github.com/python/cpython/commit/3a3db970de344efbb4017fb9dde9204f0fd4bbdc

[issue37491] IndexError in get_bare_quoted_string

2019-07-09 Thread Abhilash Raj
Abhilash Raj added the comment: I just wanted to report before I forgot and hence missed some details, turns out the bug report was slightly wrong too. The testcase I provided wasn't right. Here is the right test case to reproduce the exception with master: # bpo_37491.py from email.parser

[issue18374] ast.parse gives wrong position (col_offset) for some BinOp-s

2019-07-09 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8, Python 3.9 -Python 3.5 ___ Python tracker

[issue3753] bytearray incompatible with y#

2019-07-09 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- pull_requests: +14485 pull_request: https://github.com/python/cpython/pull/14679 ___ Python tracker ___

[issue37530] IDLE: simplify, optimize, and clean up code context

2019-07-09 Thread Tal Einat
Change by Tal Einat : -- keywords: +patch pull_requests: +14482 pull_request: https://github.com/python/cpython/pull/14675 ___ Python tracker ___

[issue27679] set_bitfields() unused in _ctypes_test

2019-07-09 Thread STINNER Victor
STINNER Victor added the comment: I don't feel the need to backport the change to Python 3.8 and older. Having an unused in a test module (_ctypes_test) doesn't hurt. I close the issue. Thanks Martin Panter for the report, thanks Hai Shi for the fix ;-) -- resolution: -> fixed

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-07-09 Thread Joannah Nanjekye
New submission from Joannah Nanjekye : Reported by Victor Stinner. regrtest has a --timeout parameter which calls faulthandler.dump_traceback_later(timeout), but sometimes it's not enough to kill a test. regrtest should kill a worker process if it runs longer than --timeout seconds. *

[issue37168] Decimal divisions sometimes 10x or 100x too large

2019-07-09 Thread Mark Dickinson
Mark Dickinson added the comment: @Phil: Did you ever get to the bottom of this? -- ___ Python tracker ___ ___ Python-bugs-list

[issue37530] IDLE: simplify, optimize, and clean up code context

2019-07-09 Thread Terry J. Reedy
New submission from Terry J. Reedy : Issue for Tal's PR 14675, dependency of #33610. 1. Only create CodeContext instances for "real" editors windows, but not e.g. shell or output windows. - Previously, were created but never activated because menu item deactivated. This is even better. 2.

[issue34722] Non-deterministic bytecode generation

2019-07-09 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37491] IndexError in get_bare_quoted_string

2019-07-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Also, quotes should be attributed to a file and patch snipped should indicate the target. As for the bug, the author(s) of the expressions "value[1:]" and "value[0]" presumably *expected* value to initially have length 2 so that it would be be non-empty

[issue33610] IDLE: Make multiple improvements to CodeContext

2019-07-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: #37530 addresses I2, events (Tal, see msg319241 above). I considered this to be about next in priority. It also does some I1 cleanup. In that list, the 2nd M3 should be M4. The comment "D1 is PR 7579" should have referred to PR 7597, merged thereafter.

[issue37527] Timestamp conversion on windows fails with timestamps close to EPOCH

2019-07-09 Thread Ma Lin
Ma Lin added the comment: Looks like a similar problem to issue29097. >>> from datetime import datetime >>> d = datetime.fromtimestamp(1) >>> d.timestamp() Traceback (most recent call last): File "", line 1, in OSError: [Errno 22] Invalid argument Neijwiert tried to analyzed it in

[issue37528] test_tarfile: test_extractall_symlinks() fails on Windows with: [WinError 206] The filename or extension is too long

2019-07-09 Thread Eryk Sun
Eryk Sun added the comment: If you want to harden the test for Windows, you could transform TEMPDIR into an extended path. os.path._getfinalpathname always returns an extended path. For example: >>> os.path._getfinalpathname('C:/Temp') '?\\C:\\Temp' >>>

[issue37532] email.header.make_header() doesn't work if any `ascii` code is out of range(128)

2019-07-09 Thread Aldwin Pollefeyt
Aldwin Pollefeyt added the comment: Maybe a solution, if no charset defined, then encode it as utf-8 in decode_header, because it's Python3's default encoding? diff --git a/Lib/email/header.py b/Lib/email/header.py index 4ab0032bc6..8dbfe58a57 100644 --- a/Lib/email/header.py +++

[issue35545] asyncio.base_events.create_connection doesn't handle scoped IPv6 addresses

2019-07-09 Thread Zaar Hai
Zaar Hai added the comment: Good day guys, Does anyone have an idea if it's going to be fixed for 3.8? -- nosy: +Zaar Hai ___ Python tracker ___

[issue37536] ctypes.create_string_buffer fails on windows with non-BMP characters

2019-07-09 Thread Ryan McCampbell
New submission from Ryan McCampbell : The ctypes.create_string_buffer function uses the length of the string to create the buffer if no size is provided. Since windows wide chars are UTF-16 the buffer may actually need to be larger to store surrogate pairs. This code crashes on windows: >>>

[issue37536] ctypes.create_string_buffer fails on windows with non-BMP characters

2019-07-09 Thread Ryan McCampbell
Change by Ryan McCampbell : -- components: +ctypes type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37536] ctypes.create_string_buffer fails on windows with non-BMP characters

2019-07-09 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> create_unicode_buffer() fails on non-BMP strings on Windows ___ Python tracker

[issue37536] ctypes.create_string_buffer fails on windows with non-BMP characters

2019-07-09 Thread Ryan McCampbell
Ryan McCampbell added the comment: Oops my bad, didn't realize this was already fixed -- ___ Python tracker ___ ___

[issue37532] email.header.make_header() doesn't work if any `ascii` code is out of range(128)

2019-07-09 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +maxking ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37535] Client SSLSocket with select.select() always returns readable with OpenSSL 1.1.1

2019-07-09 Thread Dean
New submission from Dean : Hi, I've come across an issue with OpenSSL 1.1.1, when a client socket wrapped using ssl.wrap_socket() is used in select.select() its always returning ready for reading even though there appears to be nothing to read. To reproduce: 0. Extract files from attached

[issue37527] Timestamp conversion on windows fails with timestamps close to EPOCH

2019-07-09 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   >