[issue14916] PyRun_InteractiveLoop fails to run interactively when using a Linux pty that's not tied to stdin/stdout

2020-09-10 Thread pmp-p
Change by pmp-p : -- versions: +Python 3.6, Python 3.7, Python 3.8, Python 3.9 -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5 ___ Python tracker

[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2020-09-10 Thread Skip Montanaro
Skip Montanaro added the comment: @Vladyslav.Bondar I can't tell where you are suggesting MinProtocol should be set. I don't see that particular string in any .c, .h or .py file in the Python source. -- ___ Python tracker

[issue37149] link to John Shipman's Tkinter 8.5 documentation fails: website no longer available

2020-09-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 06d0b8b67e8aebd8fe4c34e97d6915c11f4afa30 by Mark Roseman in branch 'master': bpo-37149: Change Shipman tkinter link from archive.org to TkDocs (GH-22188) https://github.com/python/cpython/commit/06d0b8b67e8aebd8fe4c34e97d6915c11f4afa30

[issue37149] link to John Shipman's Tkinter 8.5 documentation fails: website no longer available

2020-09-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +21253 pull_request: https://github.com/python/cpython/pull/22192 ___ Python tracker ___

[issue37149] link to John Shipman's Tkinter 8.5 documentation fails: website no longer available

2020-09-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +21254 pull_request: https://github.com/python/cpython/pull/22193 ___ Python tracker ___

[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2020-09-10 Thread Vladyslav Bondar
Vladyslav Bondar added the comment: This will help to solve it https://stackoverflow.com/questions/61568215/openssl-v1-1-1-ubuntu-20-tlsv1-no-protocols-available But in my case I've defined: MinProtocol = None -- nosy: +Vladyslav.Bondar ___

[issue14916] PyRun_InteractiveLoop fails to run interactively when using a Linux pty that's not tied to stdin/stdout

2020-09-10 Thread pmp-p
Change by pmp-p : -- pull_requests: +21251 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22190 ___ Python tracker ___

[issue39107] Upgrade tcl/tk to 8.6.10 (Windows and maxOS)

2020-09-10 Thread Mark Roseman
Change by Mark Roseman : -- nosy: +markroseman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17254] add thai encoding aliases to encodings.aliases

2020-09-10 Thread Benjamin Wood
Benjamin Wood added the comment: Bumping this again. I'd like to try and understand why this change can not or has not been approved. I added the technical info here to the github PR. Is there a shortage of reviewers? What can I do to help speed up the process? --

[issue37149] link to John Shipman's Tkinter 8.5 documentation fails: website no longer available

2020-09-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 8a30bdd21dff6d1957df135c9d0b9983a0f61228 by Miss Islington (bot) in branch '3.8': bpo-37149: Change Shipman tkinter link from archive.org to TkDocs (GH-22188) (#22193)

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2020-09-10 Thread Steve Dower
Steve Dower added the comment: We'd CreateFile the file and then immediately pass it to _open_osfhandle, which would keep the semantics the same apart from the share flags. I'm not entirely against getting rid of O_TEXT support, but haven't taken the time to think through the implications.

[issue41744] NuGet python.props only works in python nuget, not other variants

2020-09-10 Thread Steve Dower
Steve Dower added the comment: Thanks! Just need a NEWS file (click Details next to the failed check for the helper app). Something like "Fixes automatic import of props file when using the Nuget package" would be good. (Also posted on the PR) --

[issue41756] Do not always use exceptions to return result from coroutine

2020-09-10 Thread Vladimir Matveev
New submission from Vladimir Matveev : Currently async functions are more expensive to use comparing to their sync counterparts. A simple microbenchmark shows that difference could be quite significant: ``` import time def f(a): if a == 0: return 0 return f(a - 1) async def

[issue41756] Do not always use exceptions to return result from coroutine

2020-09-10 Thread Vladimir Matveev
Change by Vladimir Matveev : -- keywords: +patch pull_requests: +21255 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22196 ___ Python tracker

[issue41757] weakmethod's ref is deleted before weakref's garbage-collect callback is executed

2020-09-10 Thread Giordon Stark
New submission from Giordon Stark : Hi, this is my first issue, so I hope to try my best to explain the problem. Unfortunately, I cannot get an easy minimum-reproducible-example of this because I can only seem to invoke this behavior using pytest (6.0.1) on two tests of our code. First, let

[issue37149] link to John Shipman's Tkinter 8.5 documentation fails: website no longer available

2020-09-10 Thread miss-islington
miss-islington added the comment: New changeset 1b4bdb4cd71df6339da3f247516e0c642f40c37e by Miss Islington (bot) in branch '3.9': bpo-37149: Change Shipman tkinter link from archive.org to TkDocs (GH-22188) https://github.com/python/cpython/commit/1b4bdb4cd71df6339da3f247516e0c642f40c37e

[issue41755] Docs: Please remove `from distutils.core import setup`

2020-09-10 Thread Thomas Guettler
New submission from Thomas Guettler : Please remove this page or at least the code snippet containing `from distutils.core import setup` on this page: https://docs.python.org/3/distutils/setupscript.html There is the more up to date doc here:

[issue37149] link to John Shipman's Tkinter 8.5 documentation fails: website no longer available

2020-09-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: The tkdocs pages load in less than a second rather than in several seconds, have the obsolete link lined out, and include a short explanatory note. So I made the replacement. Ned, please backport to 3.7 and 3.6 if still built nightly. --

[issue41757] weakmethod's ref is deleted before weakref's garbage-collect callback is executed

2020-09-10 Thread Giordon Stark
Giordon Stark added the comment: This PR seems highly related: https://github.com/python/cpython/pull/18189. Not sure if it should be linked to this issue or not. -- ___ Python tracker

[issue41756] Do not always use exceptions to return result from coroutine

2020-09-10 Thread Yury Selivanov
Yury Selivanov added the comment: Big +1 from me. This is something I always wanted to do myself (since the time of PEP 492 & 525 implementations) and I think this is a necessary change. It's great that this isn't just a C API UX improvement but also yields a big perf improvement.

[issue41730] Show deprecation warnings for tkinter.tix

2020-09-10 Thread wyz23x2
wyz23x2 added the comment: OK. What should the message be? "tkinter.tix is deprecated (and will be removed in Python 3.x), use tkinter.ttk instead"? -- ___ Python tracker

[issue41744] NuGet python.props only works in python nuget, not other variants

2020-09-10 Thread Vaclav Slavik
Vaclav Slavik added the comment: Thank you, I didn't consider that situation. I forced-pushed an update to the PR now. I opted for duplicate file rather than including, because I think it imposes the least maintenance burden on keeping compatibility: the other alternative would mean - one

[issue41730] Show deprecation warnings for tkinter.tix

2020-09-10 Thread E. Paine
E. Paine added the comment: As I believe planning for removal (including the version this should occur in) is better suited to #31371, I think it would be best to remain non-committal about the version. I would personally prefer something a little more vague (such as below), though as I

[issue41370] PEP 585 and ForwardRef

2020-09-10 Thread wyz23x2
Change by wyz23x2 : -- keywords: +patch nosy: +wyz23x2 nosy_count: 6.0 -> 7.0 pull_requests: +21245 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22186 ___ Python tracker

[issue41370] PEP 585 and ForwardRef

2020-09-10 Thread wyz23x2
Change by wyz23x2 : -- pull_requests: -21245 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41730] Show deprecation warnings for tkinter.tix

2020-09-10 Thread wyz23x2
wyz23x2 added the comment: All tests have passed. Now it's time to merge! -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41370] PEP 585 and ForwardRef

2020-09-10 Thread wyz23x2
Change by wyz23x2 : -- pull_requests: +21248 pull_request: https://github.com/python/cpython/pull/22186 ___ Python tracker ___ ___

[issue41730] Show deprecation warnings for tkinter.tix

2020-09-10 Thread wyz23x2
wyz23x2 added the comment: @epaine The doc (https://docs.python.org/3/library/tkinter.tix.html) states "This Tk extension is unmaintained and should not be used in new code.". -- ___ Python tracker

[issue41370] PEP 585 and ForwardRef

2020-09-10 Thread wyz23x2
Change by wyz23x2 : -- pull_requests: +21247 pull_request: https://github.com/python/cpython/pull/22186 ___ Python tracker ___ ___

[issue41370] PEP 585 and ForwardRef

2020-09-10 Thread wyz23x2
Change by wyz23x2 : -- pull_requests: -21248 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40600] Add option to disallow > 1 instance of an extension module

2020-09-10 Thread STINNER Victor
STINNER Victor added the comment: One option is to get the behavior before multi-phase initialization. We store extensions in a list. Once it's load, it cannot be unloaded before we exit Python. See _PyState_AddModule() and _PyState_AddModule(). Calling PyInit_xxx() the second time would

[issue41730] Show deprecation warnings for tkinter.tix

2020-09-10 Thread wyz23x2
Change by wyz23x2 : -- keywords: +patch pull_requests: +21246 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22186 ___ Python tracker ___

[issue41370] PEP 585 and ForwardRef

2020-09-10 Thread wyz23x2
Change by wyz23x2 : -- pull_requests: -21247 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40600] Add option to disallow > 1 instance of an extension module

2020-09-10 Thread Dong-hee Na
Dong-hee Na added the comment: One of my opinions is that Since module object supports detecting error during Py_mod_exec, The only thing we have to do is return -1 when the module has already existed. we should define new exception type and don't have to define new slots. The pros of this

[issue40288] [subinterpreters] atexit module should not be loaded more than once per interpreter

2020-09-10 Thread STINNER Victor
STINNER Victor added the comment: I would prefer a more generic solution, if possible: > bpo-40600: "Add an option to disallow creating more than one instance of a > module". -- ___ Python tracker

[issue41754] Webbrowser Module Cannot Find xdg-settings on OSX

2020-09-10 Thread Tony DiLoreto
New submission from Tony DiLoreto : The following code does not work on many OSX installations of Python via homebrew: >>> import webbrowser >>> webbrowser.open("http://www.google.com;) And throws the following error stack trace: File

[issue41052] Opt out serialization/deserialization for heap type

2020-09-10 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +21250 pull_request: https://github.com/python/cpython/pull/22189 ___ Python tracker ___

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-09-10 Thread STINNER Victor
STINNER Victor added the comment: New changeset f76d894dc5d5facce1a6c1b71637f6a2b3f9fd2b by Mohamed Koubaa in branch 'master': bpo-1635741: Port cmath to multi-phase init (PEP 489) (GH-22165) https://github.com/python/cpython/commit/f76d894dc5d5facce1a6c1b71637f6a2b3f9fd2b --

[issue37149] link to John Shipman's Tkinter 8.5 documentation fails: website no longer available

2020-09-10 Thread Mark Roseman
Change by Mark Roseman : -- pull_requests: +21249 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/22188 ___ Python tracker ___

[issue41716] SyntaxError: EOL while scanning string literal

2020-09-10 Thread Larry Hastings
Change by Larry Hastings : -- components: +Interpreter Core -Argument Clinic nosy: -larry ___ Python tracker ___ ___

[issue40600] Add option to disallow > 1 instance of an extension module

2020-09-10 Thread mohamed koubaa
mohamed koubaa added the comment: Something like this? ``` static PyObject *def; PyMODINIT_FUNC PyInit_mymod(void) { if (def == NULL) { def = PyModuleDef_Init(); } return def; } ``` Then add a flag to PyModuleDef to indicate it is already exec? --

[issue41716] SyntaxError: EOL while scanning string literal

2020-09-10 Thread chen-y0y0
chen-y0y0 added the comment: Yep. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19521] Parallel build race condition on AIX since python-2.7

2020-09-10 Thread Stefan Krah
Stefan Krah added the comment: I have been asked to backport this to 3.8. There's a very small window of opportunity: 3.8.6: Monday, 2020-09-21 3.8.7rc1: Monday, 2020-11-02 3.8.7: Monday, 2020-11-16 (final version!) Backporting procedures since 3.8 are unclear and a source of constant

[issue41730] Show deprecation warnings for tkinter.tix

2020-09-10 Thread wyz23x2
wyz23x2 added the comment: Can any core reviewer review the PR? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2020-09-10 Thread Eryk Sun
Eryk Sun added the comment: > we'd have to reimplement the UCRT function using the system API. Could the implementation drop support for os.O_TEXT? I think Python 3 should have removed both os.O_TEXT and os.O_BINARY. 3.x has no need for the C runtime's ANSI text mode, with its Ctrl+Z

[issue41631] _ast module: get_global_ast_state() doesn't work with Mercurial lazy import

2020-09-10 Thread STINNER Victor
STINNER Victor added the comment: About subinterpreters. In Python 3.8, _ast.AST type is a static type: static PyTypeObject AST_type = {...}; In Python 3.9, it's now a heap type: static PyType_Spec AST_type_spec = {...}; state->AST_type = PyType_FromSpec(_type_spec); In Python 3.8, the