[issue40517] Syntax highlighting for ASDL

2020-05-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for producing the comparison panel. In side-by-side views, python_bold.png looks best to me with asdl2.png as a close second. -- ___ Python tracker _

[issue40543] Tamil locale is using outdated encoding

2020-05-07 Thread Muthu A
New submission from Muthu A : Tamil locale (TA_IN, TA_SL, TA_SG, TA_MY) is using outdated encoding of TSCII. Tamil community is widely using UTF-8 encoding. Further, the 'locale' standard library package in Python3 should be updated with these strings. Should the maintainers desire assistance

[issue40545] Expose _PyErr_GetTopmostException

2020-05-07 Thread Julien Danjou
New submission from Julien Danjou : The function _PyErr_GetTopmostException() is not exported and is useful to get access to exceptions info from a PyThreadState. -- components: C API messages: 368327 nosy: jd priority: normal severity: normal status: open title: Expose _PyErr_GetTopmo

[issue40545] Expose _PyErr_GetTopmostException

2020-05-07 Thread Julien Danjou
Change by Julien Danjou : -- keywords: +patch pull_requests: +19292 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19977 ___ Python tracker ___ __

[issue40545] Expose _PyErr_GetTopmostException

2020-05-07 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner nosy_count: 1.0 -> 2.0 pull_requests: +19293 pull_request: https://github.com/python/cpython/pull/19978 ___ Python tracker ___ ___

[issue40545] Expose _PyErr_GetTopmostException

2020-05-07 Thread STINNER Victor
STINNER Victor added the comment: The function was added by: commit ae3087c6382011c47db82fea4d05f8bbf514265d Author: Mark Shannon Date: Sun Oct 22 22:41:51 2017 +0100 Move exc state to generator. Fixes bpo-25612 (#1773) Move exception state information from frame objects to co

[issue39573] [C API] Make PyObject an opaque structure in the limited C API

2020-05-07 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz nosy_count: 8.0 -> 9.0 pull_requests: +19294 pull_request: https://github.com/python/cpython/pull/19975 ___ Python tracker ___

[issue40334] PEP 617: new PEG-based parser

2020-05-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 2f37c355ab0e9ec9c1753985d27c41fa0bd719b9 by Lysandros Nikolaou in branch 'master': bpo-40334: Fix error location upon parsing an invalid string literal (GH-19962) https://github.com/python/cpython/commit/2f37c355ab0e9ec9c1753985d27c41fa0b

[issue40334] PEP 617: new PEG-based parser

2020-05-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 4638c6429575bd6de26b12b2af5df74d6568b553 by Lysandros Nikolaou in branch 'master': bpo-40334: Error message for invalid default args in function call (GH-19973) https://github.com/python/cpython/commit/4638c6429575bd6de26b12b2af5df74d6568

[issue40517] Syntax highlighting for ASDL

2020-05-07 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: I've found a bold dark blue, which I guess suits both your and @terry.reedy recommendations. How does bold_dark_blue.png looks? -- Added file: https://bugs.python.org/file49138/bold_dark_blue.png ___ Python tracke

[issue40545] Expose _PyErr_GetTopmostException

2020-05-07 Thread Julien Danjou
Julien Danjou added the comment: I would definitely love to have a public API for this. Would `PyErr_GetTopmostException` be a good candidate for this? (I can open a different bug report if needed) -- ___ Python tracker

[issue40541] Add optional weights parameter to random.sample()

2020-05-07 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue40541] Add optional weights parameter to random.sample()

2020-05-07 Thread Mark Dickinson
Mark Dickinson added the comment: +1 for the functionality. How about "counts" instead of "weights"? I found the name "weights" misleading - my first thought was that this would be doing a weighted sampling without replacement (like NumPy's `random.choice(..., replace=False, p=weights)`).

[issue39562] Asynchronous comprehensions don't work in asyncio REPL

2020-05-07 Thread STINNER Victor
STINNER Victor added the comment: I reopen the bug to ensure that the fix will land into Python 3.8.3. The issue is marked as release blocker. -- resolution: fixed -> status: closed -> open ___ Python tracker

[issue40542] path environment variable not created correctly

2020-05-07 Thread Steve Dower
Steve Dower added the comment: Yes, it is bad behaviour, but it is very upsetting for many people to not have the option. This is why it's disabled by default, and why I regularly discourage people from selecting the option (and quite often get abused for taking the trouble... oh well... tha

[issue37339] os.path.ismount returns true on nested btrfs subvolumes

2020-05-07 Thread Eike Fokken
Eike Fokken added the comment: Ok, this is my proposal for the documentation. I hope you like it. Is this the correct place to post it or can I make a direct pull request? old: .. function:: ismount(path) Return ``True`` if pathname *path* is a :dfn:`mount point`: a point in a file syst

[issue38787] PEP 573: Module State Access from C Extension Methods

2020-05-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset e1becf46b4e3ba6d7d32ebf4bbd3e0804766a423 by Petr Viktorin in branch 'master': bpo-38787: C API for module state access from extension methods (PEP 573) (GH-19936) https://github.com/python/cpython/commit/e1becf46b4e3ba6d7d32ebf4bbd3e0804766a423

[issue40545] Expose _PyErr_GetTopmostException

2020-05-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8963a7f1f84a05412178b56629508b660d38861b by Victor Stinner in branch 'master': bpo-40545: Export _PyErr_GetTopmostException() function (GH-19978) https://github.com/python/cpython/commit/8963a7f1f84a05412178b56629508b660d38861b -- ___

[issue40545] Expose _PyErr_GetTopmostException

2020-05-07 Thread STINNER Victor
STINNER Victor added the comment: > I would definitely love to have a public API for this. I'm not sure if it's a good idea. It's kind of semi-internal. Stephan Behnel and Mark Shannon: What do you think of exposing PyThreadState exception stack (exc_state)? Especially the "top" exception. I

[issue31033] Add argument to .cancel() of Task and Future

2020-05-07 Thread Chris Jerdonek
Change by Chris Jerdonek : -- pull_requests: +19295 pull_request: https://github.com/python/cpython/pull/19979 ___ Python tracker ___ __

[issue40545] Expose _PyErr_GetTopmostException

2020-05-07 Thread Mark Shannon
Mark Shannon added the comment: What's wrong with `PyErr_GetExcInfo()` for accessing the current exception? Victor, would you revert https://github.com/python/cpython/pull/19978 until we decide what to do. Thanks. -- ___ Python tracker

[issue40228] Make setting line number in frame more robust.

2020-05-07 Thread Mark Shannon
Change by Mark Shannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue40545] Expose _PyErr_GetTopmostException

2020-05-07 Thread Julien Danjou
Julien Danjou added the comment: PyErr_GetExcInfo() does not allow to specify a PyThreadState as argument. -- ___ Python tracker ___ __

[issue40421] [C API] Add getter functions for PyFrameObject and maybe move PyFrameObject to the internal C API

2020-05-07 Thread Mark Shannon
Mark Shannon added the comment: "maybe a few setter functions as well" Please don't add any setter functions, that would a major change to the VM and would need a PEP. Also, could you remove PyFrame_GetLastInstr(PyFrameObject *frame)? The only purpose of `f_lasti` is to get the line number an

[issue40545] Expose _PyErr_GetTopmostException

2020-05-07 Thread Mark Shannon
Mark Shannon added the comment: Why do you need to specify a `PyThreadState`? -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue40517] Syntax highlighting for ASDL

2020-05-07 Thread Zachary Ware
Zachary Ware added the comment: I say merge it :) -- nosy: +zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue40545] Expose _PyErr_GetTopmostException

2020-05-07 Thread STINNER Victor
STINNER Victor added the comment: > Why do you need to specify a `PyThreadState`? >From past issues, I understood that Julien's use case is a profiler which >inspects memory without calling functions nor switching to other threads. It's >like "dump the state of all Python threads". I'm fine

[issue18319] gettext() cannot find translations with plural forms

2020-05-07 Thread Gilles Bassière
Gilles Bassière added the comment: Hi there, I worked on a patch for this issue (see attached pull request). I would be happy to discuss it with people involved in gettext module maintenance but I'm not sure how to contact them. Is there a dedicated mailing list or an IRC channel or somethin

[issue40542] path environment variable not created correctly

2020-05-07 Thread Zachary Ware
Zachary Ware added the comment: Just a note to add my full support for what Steve said. PATH is frequently abused on Windows, and we only have the option at all because people become unreasonably upset if it's not there. I wouldn't be against adding a "you don't actually want this, use py.

[issue40545] Expose _PyErr_GetTopmostException

2020-05-07 Thread Julien Danjou
Julien Danjou added the comment: I confirm what Victor wrote. :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue32604] Expose the subinterpreters C-API in Python for testing use.

2020-05-07 Thread Eric Snow
Eric Snow added the comment: New changeset a1d9e0accd33af1d8e90fc48b34c13d7b07dcf57 by Eric Snow in branch 'master': bpo-32604: [_xxsubinterpreters] Propagate exceptions. (GH-19768) https://github.com/python/cpython/commit/a1d9e0accd33af1d8e90fc48b34c13d7b07dcf57 -- ___

[issue40421] [C API] Add getter functions for PyFrameObject and maybe move PyFrameObject to the internal C API

2020-05-07 Thread STINNER Victor
STINNER Victor added the comment: > Please don't add any setter functions, that would a major change to the VM > and would need a PEP. There is no such "major change". PyFrameObject structure was fully exposed in the public C API since the earliest Python version. I don't see how adding set

[issue38131] compile(mode='eval') uninformative error message

2020-05-07 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: I've updated PR 17715 in order to point out exact field that error happened. Also it now only shows type >>> import ast >>> expr_without_lineno_but_ok = >>> ast.Expression(body=ast.BinOp(left=ast.Num(n=2), right=ast.Num(n=2), >>> op=ast.Add())) >>> expr_wi

[issue40517] Syntax highlighting for ASDL

2020-05-07 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: I've updated the PR with bold_dark_blue.png changes. -- ___ Python tracker ___ ___ Python-bugs-l

[issue38787] PEP 573: Module State Access from C Extension Methods

2020-05-07 Thread hai shi
Change by hai shi : -- pull_requests: +19296 pull_request: https://github.com/python/cpython/pull/19980 ___ Python tracker ___ ___ P

[issue40546] Inconsistencies between pegen and traceback SyntaxErrors

2020-05-07 Thread Lysandros Nikolaou
New submission from Lysandros Nikolaou : Since traceback is programmed to match the SyntaxErrors emitted by the old parser, there are some inconsistencies between how it formats SyntaxErrors and how the new parser does it. One example for such behaviour is the following: New Parser: ╰─ ./pytho

[issue40546] Inconsistencies between PEG parser and traceback SyntaxErrors

2020-05-07 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- title: Inconsistencies between pegen and traceback SyntaxErrors -> Inconsistencies between PEG parser and traceback SyntaxErrors ___ Python tracker _

[issue40546] Inconsistencies between PEG parser and traceback SyntaxErrors

2020-05-07 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue37132] Add a module for integer related math functions

2020-05-07 Thread Mark Dickinson
Mark Dickinson added the comment: See also #40028 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue40547] 2to3 raise can silently remove code from old 2.4 string exceptions

2020-05-07 Thread Rémy Oudompheng
New submission from Rémy Oudompheng : When running "2to3 -f raise" on the following code, which uses an old Python 2.4 raise of a string: def f(): raise ("message %s %s" % (1, 2)) try: f() finally: pass I obtain the following quite surprising result. I would have expected to get

[issue38787] PEP 573: Module State Access from C Extension Methods

2020-05-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset c068b53a0ca6ebf740d98e422569d2f705e54f93 by Hai Shi in branch 'master': bpo-38787: Update structures.rst docs (PEP 573) (GH-19980) https://github.com/python/cpython/commit/c068b53a0ca6ebf740d98e422569d2f705e54f93 -- __

[issue40548] Always run GitHub action jobs, even on documentation-only jobs

2020-05-07 Thread STINNER Victor
New submission from STINNER Victor : bpo-39837 made Azure Pipelines CI non-mandatory. Travis CI was made mandatory to have at least one mandatory job: https://github.com/python/core-workflow/issues/365 I would prefer to have at least one mandatory Windows CI running on Python pull requests.

[issue40548] Always run GitHub action jobs, even on documentation-only jobs

2020-05-07 Thread STINNER Victor

[issue39837] Make Azure Pipelines optional on GitHub PRs

2020-05-07 Thread STINNER Victor
STINNER Victor added the comment: I created a follow-up issue to have again a mandatory Windows pre-commit CI: bpo-40548. -- ___ Python tracker ___ __

[issue40548] Always run GitHub action jobs, even on documentation-only jobs

2020-05-07 Thread Filipe Laíns
Filipe Laíns added the comment: The workaround presented at https://github.community/t5/GitHub-Actions/Feature-request-conditional-required-checks/m-p/51344/highlight/true#M8157 seems pretty reasonable. And it seems like travis is alerady doing the same thing as it doesn't have native support

[issue40546] Inconsistencies between PEG parser and traceback SyntaxErrors

2020-05-07 Thread Guido van Rossum
Guido van Rossum added the comment: I don't understand why the traceback module is implicated. It just formats the information in the SyntaxError object, same as the builtin printing for syntax errors. The key difference is always in what line/column/text is put in the SyntaxError object by

[issue40548] Always run GitHub action jobs, even on documentation-only jobs

2020-05-07 Thread STINNER Victor
STINNER Victor added the comment: > The workaround presented at > https://github.community/t5/GitHub-Actions/Feature-request-conditional-required-checks/m-p/51344/highlight/true#M8157 > seems pretty reasonable. And it seems like travis is alerady doing the same > thing as it doesn't have nat

[issue40549] Convert posixmodule.c to multiphase initialization (PEP 489)

2020-05-07 Thread STINNER Victor
New submission from STINNER Victor : Attached PR converts posixmodule.c to multiphase initialization (PEP 489). It uses the new shiny PyType_FromModuleAndSpec() and PyType_GetModule() of the PEP 573 added by bpo-38787. The PR removes the following macro :-) #define _posixstate_global ((_posi

[issue40546] Inconsistencies between PEG parser and traceback SyntaxErrors

2020-05-07 Thread Guido van Rossum
Guido van Rossum added the comment: For example: raise SyntaxError("message", ("", 1, 3, "text")) Traceback (most recent call last): File "", line 1, in File "", line 1 text ^ SyntaxError: message >>> (I can't find docs for the constructor of SyntaxError objects. We should upd

[issue40549] Convert posixmodule.c to multiphase initialization (PEP 489)

2020-05-07 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +19298 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19982 ___ Python tracker ___ _

[issue40546] Inconsistencies between PEG parser and traceback SyntaxErrors

2020-05-07 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: Guido: > I don't understand why the traceback module is implicated. The traceback module is implicated, because it currently does not allow the caret to point to a position after the error line. In format_exception_only there is the following snippet of c

[issue40178] Convert the remaining os funtions to Argument Clinic

2020-05-07 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40548] Always run GitHub action jobs, even on documentation-only jobs

2020-05-07 Thread Filipe Laíns
Change by Filipe Laíns : -- pull_requests: +19299 pull_request: https://github.com/python/cpython/pull/19983 ___ Python tracker ___ _

[issue40528] Improve / Clear ASDL generator

2020-05-07 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: Next is using asdl_int_seq for all simple sum types, and not for only cmpop. Looks like it is hardcoded to use it, and I plan to refactor this in a way that might save some time in python implementation of classes (also it will solve this bug). For not conf

[issue40548] Always run GitHub action jobs, even on documentation-only jobs

2020-05-07 Thread Filipe Laíns
Filipe Laíns added the comment: > * And only then try to skip documentation-only changes Done :) -- ___ Python tracker ___ ___ Pyth

[issue40397] Refactor typing._GenericAlias

2020-05-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The next PR removes __args__ and __parameters__ from _SpecialGenericAlias. * No existing test is failed. It is an evidence that these attributes are not intended, but a side effect of mixing two different kinds in one class. * get_args() ignores __args__ a

[issue40397] Refactor typing._GenericAlias

2020-05-07 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +19300 pull_request: https://github.com/python/cpython/pull/19984 ___ Python tracker ___

[issue40546] Inconsistencies between PEG parser and traceback SyntaxErrors

2020-05-07 Thread Guido van Rossum
Guido van Rossum added the comment: Aha! So the traceback module does have a difference. First, if the offset points inside the text, there's no difference: >>> raise SyntaxError("message", ("", 1, 4, "text")) Traceback (most recent call last): File "", line 1, in File "", line 1 tex

[issue39685] Python 3.8 regression Socket operation on non-socket

2020-05-07 Thread hillpd
hillpd added the comment: Blocking the use of stdin/stdout like this looks intentional. I have added dimaqq and asvetlov for comment. The python docs [0] indicate that the file descriptor should be a socket: "The file descriptor should refer to a socket, but this is not checked — subsequent o

[issue40550] Popen.terminate fails with ProcessLookupError under certain conditions

2020-05-07 Thread Alexander Overvoorde
New submission from Alexander Overvoorde : The following program frequently raises a ProcessLookupError exception when calling proc.terminate(): ``` import threading import subprocess import multiprocessing proc = subprocess.Popen(["sh", "-c", "exit 0"]) q = multiprocessing.Queue() def comm

[issue40551] PRs should be rebased on top of master before running the build/tests

2020-05-07 Thread Filipe Laíns
New submission from Filipe Laíns : Let's imagine this scenario: (master history) abcd - some commit hijk - change something (pull request history) abcd - some commit defg - add feature master pull request abcd - some commit --- defg -

[issue40548] Always run GitHub action jobs, even on documentation-only jobs

2020-05-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4e363761fc02a89d53aba4382dc451293bd6f0ba by Victor Stinner in branch 'master': bpo-40548: Always run GitHub action, even on doc PRs (GH-19981) https://github.com/python/cpython/commit/4e363761fc02a89d53aba4382dc451293bd6f0ba -- __

[issue40552] Enhance for loop and copy example in tutorial

2020-05-07 Thread Julien Palard
New submission from Julien Palard : During the past few weeks we got two reports of an example not working in the tutorial: [1], [2]. [1]: https://mail.python.org/archives/list/d...@python.org/message/ZJM3S2TE5UPFYIII5R4VQ4KY2WN4TKVO/ [2]: https://mail.python.org/archives/list/d...@python.o

[issue40541] Add optional weights parameter to random.sample()

2020-05-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: > How about "counts" instead of "weights"? That makes sense. -- ___ Python tracker ___ ___ Py

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-05-07 Thread Zain Said
New submission from Zain Said : What I'm currently using: Mid 2012 13'' MacBook Pro OS Catalina 10.15.4 Python 3.8.2 I'm having an issue with saving a new python program. When I go to "save as" a program python seems to freeze/not . The only way I've been able to get python working again is

[issue40517] Syntax highlighting for ASDL

2020-05-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset b7a78ca74ab539943ab11b5c4c9cfab7f5b7ff5a by Batuhan Taskaya in branch 'master': bpo-40517: Implement syntax highlighting support for ASDL (GH-19967) https://github.com/python/cpython/commit/b7a78ca74ab539943ab11b5c4c9cfab7f5b7ff5a -

[issue40517] Syntax highlighting for ASDL

2020-05-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the contribution. It looks much nicer than what we had before. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 ___ Python tracker

[issue40517] Syntax highlighting for ASDL

2020-05-07 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: Thank you all for your reviews for styling, also I have to thank https://github.com/CyberSaxosTiGER for his external reviews on the color scheme. -- ___ Python tracker ___

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-05-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: I frequently have this issue as well. My workaround is awful: I go to the terminal prompt to create an empty file with the desired name, and then open it up in IDLE to edit and save. This avoids the SaveAs dialog window that triggers the failure. This

[issue40244] AIX: build: _PyObject_GC_TRACK Asstertion failure

2020-05-07 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: Any news about this? Should we revert the commit for 3.9? -- ___ Python tracker ___ ___ Python-b

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-05-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: Perhaps we could create an option in the general settings that offers a workaround: open a regular text window to get the filename. This wouldn't be as pretty (won't display filenames, offer mouse support, won't show file previews), but it would be rel

[issue40554] Add escape to the glossary?

2020-05-07 Thread Julien Palard
New submission from Julien Palard : Geoff Cutter noticed via docs@ that escape is not defined in the glossary. I concur with the idea of adding it, opening as an "easy" issue, even if finding a good definition might not be that easy. -- assignee: docs@python components: Documentation

[issue40228] Make setting line number in frame more robust.

2020-05-07 Thread STINNER Victor
STINNER Victor added the comment: Windows 64-bit emits a compiler warning on this line: int len = PyBytes_GET_SIZE(f->f_code->co_code)/sizeof(_Py_CODEUNIT); Warning: D:\a\cpython\cpython\Objects\frameobject.c(400,1): warning C4267: 'initializing': conversion from 'size_t' to 'int', poss

[issue40228] Make setting line number in frame more robust.

2020-05-07 Thread STINNER Victor
Change by STINNER Victor : -- resolution: fixed -> status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39881] Multiple Interpreters in the Stdlib (PEP 554) - High-level Implementation

2020-05-07 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- pull_requests: +19301 pull_request: https://github.com/python/cpython/pull/19985 ___ Python tracker ___

[issue40548] Always run GitHub action jobs, even on documentation-only jobs

2020-05-07 Thread STINNER Victor
STINNER Victor added the comment: > I propose the following plan: > > * Always run GitHub Action jobs Done. > * Make Windows 64-bit job mandatory My request: https://github.com/python/core-workflow/issues/368 -- ___ Python tracker

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-05-07 Thread Ned Deily
Ned Deily added the comment: Zain and/or Raymond: can you please give the exact steps to reproduce this problem, including exactly how you invoke IDLE, the Python version info and build date info from the IDLE shell window, the details of exactly how you invoke Save As (i.e whether via click

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-05-07 Thread Zain Said
Zain Said added the comment: Sure i'll supply a screenshot This problem doesn't effect saving in general after editing existing programs by the way. My process of saving a program: - I'll open IDLE (Python 3.8.2) - write anything at all - I'll either hit command>s or click file>save as

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-05-07 Thread Zain Said
Zain Said added the comment: The screenshot link is at the top of the thread -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2020-05-07 Thread STINNER Victor
STINNER Victor added the comment: FYI the autopep8 project uses lib2to3. -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-

[issue40550] Popen.terminate fails with ProcessLookupError under certain conditions

2020-05-07 Thread Filipe Laíns
Filipe Laíns added the comment: This is the backtrace I get: Traceback (most recent call last): File "/home/anubis/test/multiprocessing-error.py", line 16, in proc.terminate() File "/home/anubis/git/cpython/Lib/subprocess.py", line 2069, in terminate self.send_signal(signal.SIGTERM

[issue40535] While build python 3.8.2 in linux ctypes.so is using libffi.so.6 instead of libffi.so.7

2020-05-07 Thread Filipe Laíns
Filipe Laíns added the comment: Which error are you getting? libffi is provided by your distribution. -- nosy: +FFY00 ___ Python tracker ___ ___

[issue40555] pegen (PEP 617): bug in error handling

2020-05-07 Thread STINNER Victor
New submission from STINNER Victor : autopep8 test suite does crash on Python 3.9.0a6. The bug can be reproduced with: Python 3.9.0a6+ (heads/master:b7a78ca74a, May 8 2020, 01:46:01) [GCC 10.0.1 20200430 (Red Hat 10.0.1-0.14)] on linux Type "help", "copyright", "credits" or "license" for mor

[issue40555] pegen (PEP 617): bug in error handling

2020-05-07 Thread STINNER Victor
STINNER Victor added the comment: Workaround: use python3.9 -X oldparser. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue40546] Inconsistencies between PEG parser and traceback SyntaxErrors

2020-05-07 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: > But if the col_offset points way past the text, what should happen? The > clipping there seems reasonable. Note that if a file is being parsed and not a string the behaviour is this: ╰─ cat -e t.py x = 1 | 2 |$ ╰─ ./python.exe t.py File "/Users/lys

[issue40546] Inconsistencies between PEG parser and traceback SyntaxErrors

2020-05-07 Thread Guido van Rossum
Guido van Rossum added the comment: Hm, but there the old parser seems at fault: it points to the last space rather than beyond it? -- ___ Python tracker ___

[issue32604] Expose the subinterpreters C-API in Python for testing use.

2020-05-07 Thread STINNER Victor
STINNER Victor added the comment: The commit a1d9e0accd33af1d8e90fc48b34c13d7b07dcf57 introduced reference leaks: $ ./python -m test -R 3:3 test__xxsubinterpreters -m test.test__xxsubinterpreters.RunFailedTests.test_traceback_propagated (...) test__xxsubinterpreters leaked [1863, 1861, 1863]

[issue40555] pegen (PEP 617): bug in error handling

2020-05-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +19302 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19986 ___ Python tracker __

[issue40555] pegen (PEP 617): bug in error handling

2020-05-07 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: That's because we're not checking for errors after a loop is done. Pushing a fix. -- ___ Python tracker ___

[issue39685] Python 3.8 regression Socket operation on non-socket

2020-05-07 Thread Dima Tisnek
Dima Tisnek added the comment: The code in question is interesting... I don't claim to understand it. A pair of file descriptors is passed wrapped in sockets, and the objects are used here: https://github.com/sshuttle/sshuttle/blob/966fd0c5231d56c4f464752865d96f97bd3c0aac/sshuttle/ssnet.py#L2

[issue40546] Inconsistencies between PEG parser and traceback SyntaxErrors

2020-05-07 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: > Hm, but there the old parser seems at fault: it points to the last space > rather than beyond it? Both parsers seem to have the same behaviour, when parsing files. I just found out that even the new parser points to the `|` if there is not trailing whi

[issue14527] How to link with a non-system libffi?

2020-05-07 Thread Ned Deily
Ned Deily added the comment: As of current Python 3 releases, like 3.8, the python build no longer vendors a copy of libffi for most Unix systems and for those systems the --with-system-ffi configure option is ignored, i.e. configure and setup.py will always try to find an external libffi.

[issue27133] python 3.5.1 will not compile because libffi module uses wrong CFLAGS

2020-05-07 Thread Ned Deily
Ned Deily added the comment: As of Python 3.7.0, we no longer "vendor" a copy of the libffi source for Unix-y platforms so I believe this issue of passing the right flag values into cpython's libffi build is no longer relevant. -- nosy: +ned.deily resolution: -> out of date stage:

[issue17848] can't compile with clang and build a shared lib due to libffi

2020-05-07 Thread Ned Deily
Ned Deily added the comment: As of Python 3.7, Python source releases no longer "vendor" the source of libffi for Linux platforms; you need to use either a system-supplied libffi or, if really necessary, build and link with your own copy (not always easy to do). As the supplied patch modifie

[issue40554] Add escape to the glossary?

2020-05-07 Thread Inada Naoki
Inada Naoki added the comment: There are many "escape"; JSON, HTML, SQL, Python string literal, ESC-key, escape sequence in the terminal, etc... Is there a consistent meaning of "escape" in the context of Python? -- nosy: +inada.naoki ___ Python t

[issue40525] zipapps execute symlinks as if they are code

2020-05-07 Thread Filipe Laíns
Filipe Laíns added the comment: I tracked this down to zipimporter. I have one untested patch, when I run python from my development tree for some reason the zipimport definition at Lib/zipimport.py is not used. I assume something weird is going on because of the frozen circular imports. I wo

[issue36944] Add support for ARM64 to libffi

2020-05-07 Thread Ned Deily
Ned Deily added the comment: Paul, it looks like your changes were included upstream in libffi 3.3.0 which is now being used for python.org Windows builds. If that is true, can we now close this issue? -- nosy: +ned.deily resolution: -> out of date stage: -> resolved status: open

[issue31033] Add argument to .cancel() of Task and Future

2020-05-07 Thread Chris Jerdonek
Chris Jerdonek added the comment: I also posted a second PR (separate from the first) that adds a "msg" argument to Future.cancel() and Task.cancel(). That PR is also now ready for review: https://github.com/python/cpython/pull/19979 The other PR is simpler and more essential though, so I thi

[issue35061] Specify libffi.so soname for ctypes

2020-05-07 Thread Ned Deily
Ned Deily added the comment: Sorry for the long delay in answering this issue: ctypes and libffi issues do not get a lot of attention currently. I assume you must have long ago found a solution to the problem but, just for the record and assuming I understand the problem correctly, if you bu

[issue36944] Add support for ARM64 to libffi

2020-05-07 Thread Paul Monson
Paul Monson added the comment: Yes I think this can be closed. Thank you! -- status: pending -> open ___ Python tracker ___ ___ Py

  1   2   >