[issue42306] wrong exception handling in case asyncio.shiled usage

2020-11-10 Thread Alex Alex
New submission from Alex Alex : There is not any message about exception from try block. See attach. -- components: asyncio files: scratch_31.py messages: 380640 nosy: Alex Alex, asvetlov, yselivanov priority: normal severity: normal status: open title: wrong exception handling in case

[issue42302] [Turtle] Add clockwise and anticlockwise method as alias to right and left

2020-11-10 Thread Eric V. Smith
Eric V. Smith added the comment: I think having two ways to do the same thing in a module targeted toward beginners would be too confusing. -- nosy: +eric.smith ___ Python tracker __

[issue42304] [easy C] long type performance waste in 64-bit Windows build

2020-11-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is the problem exactly? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-

[issue42303] I found a bug while checking string with find()

2020-11-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: str.find() does not work like you think. Please read the documentation. In your case you likely need to use the "in" operator. -- nosy: +serhiy.storchaka resolution: wont fix -> not a bug stage: -> resolved status: open -> closed _

[issue42304] [easy C] long type performance waste in 64-bit Windows build

2020-11-10 Thread Ma Lin
Ma Lin added the comment: > What is the problem exactly? There are several different problems, such as: https://github.com/python/cpython/blob/v3.10.0a2/Modules/mathmodule.c#L2033 In addition, `utf16_decode` also has this problem, I forgot this: https://github.com/python/cpython/blob/v3.10.0a

[issue42302] [Turtle] Add clockwise and anticlockwise method as alias to right and left

2020-11-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Actually there are many aliases in the turtle module following the early Logo traditions. For example rt=right. If clockwise is a new standard for this command in modern Turtle implementation, we can add yet one alias. Otherwise I agree with Raymond.

[issue42304] [easy C] long type performance waste in 64-bit Windows build

2020-11-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I do not think that this is suitable for newcomers because you need to have deep understanding why it was written in such form at first place and what will be changed if you change it. The code was written when unsigned long long was not standard and 64-bi

[issue42305] Added Auto_Complete DropBox Suggestion For Tkinter

2020-11-10 Thread E. Paine
Change by E. Paine : -- nosy: +epaine, gpolo, serhiy.storchaka versions: +Python 3.10 -Python 3.7 ___ Python tracker ___ ___ Python-

[issue42304] [easy C] long type performance waste in 64-bit Windows build

2020-11-10 Thread STINNER Victor
STINNER Victor added the comment: > There are several different problems, such as: > https://github.com/python/cpython/blob/v3.10.0a2/Modules/mathmodule.c#L2033 I don't think that it's worth it to optimize this one. > In addition, `utf16_decode` also has this problem, I forgot this: https://g

[issue42302] [Turtle] Add clockwise and anticlockwise method as alias to right and left

2020-11-10 Thread Steven D'Aprano
Steven D'Aprano added the comment: On Tue, Nov 10, 2020 at 09:55:40AM +, Serhiy Storchaka wrote: > If clockwise is a new > standard for this command in modern Turtle implementation, we can add > yet one alias. Otherwise I agree with Raymond. I had a very quick look at some Logo implemen

[issue42304] [easy C] long type performance waste in 64-bit Windows build

2020-11-10 Thread Ma Lin
Ma Lin added the comment: > I do not think that this is suitable for newcomers because you need to have > deep understanding why it was written in such form at first place and what > will be changed if you change it. I agree contributors need to understand code, rather than simply replace th

[issue42307] make install must not copy python.o into $prefix/lib/python3.10/config-3.10-x86_64-linux-gnu/

2020-11-10 Thread STINNER Victor
New submission from STINNER Victor : Commands reproduce the issue: cd /path/to/python/source/ ./configure --prefix /opt/pymaster CFLAGS="-O0" make make install make install copies python.o: $ find /opt/pymaster/ -name "*.o" /opt/pymaster/lib/python3.10/config-3.10-x86_64-linux-gnu/python.o T

[issue42308] Add threading.__excepthook__ similar to sys.__excepthook__

2020-11-10 Thread Mario Corchero
New submission from Mario Corchero : The sys module contains __excepthook__ to recover sys.excepthook if necessary. The same is not present in the threading module, even if threading.excepthook is exposed. -- components: Library (Lib) messages: 380651 nosy: mariocj89, vstinner priorit

[issue42308] Add threading.__excepthook__ similar to sys.__excepthook__

2020-11-10 Thread Mario Corchero
Change by Mario Corchero : -- keywords: +patch pull_requests: +22116 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23218 ___ Python tracker ___ _

[issue42307] make install must not copy python.o into $prefix/lib/python3.10/config-3.10-x86_64-linux-gnu/

2020-11-10 Thread STINNER Victor
STINNER Victor added the comment: python.o is installed by "make libainstall". It is done since 2001 (commit 85515ad9795ffc3b676cbddeeea2b003818a2623). Git history: commit 49fd7fa4431da299196d74087df4a04f99f9c46f Author: Thomas Wouters Date: Fri Apr 21 10:40:58 2006 + Merge p3yk

[issue42307] make install must not copy python.o into $prefix/lib/python3.10/config-3.10-x86_64-linux-gnu/

2020-11-10 Thread STINNER Victor
STINNER Victor added the comment: At commit 85515ad9795ffc3b676cbddeeea2b003818a2623, "make install" installs the following files in the config/ directory: $ find /opt/pyold/lib/python2.1/config/ /opt/pyold/lib/python2.1/config/ /opt/pyold/lib/python2.1/config/libpython2.1.a /opt/pyold/lib/py

[issue42307] make install must not copy python.o into $prefix/lib/python3.10/config-3.10-x86_64-linux-gnu/

2020-11-10 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +22117 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23219 ___ Python tracker ___ _

[issue42307] make install must not copy python.o into $prefix/lib/python3.10/config-3.10-x86_64-linux-gnu/

2020-11-10 Thread STINNER Victor
STINNER Victor added the comment: python.o is the object file build by the C compiler from Programs/python.c. I don't see why anyone would need such object file. Programs/python.c: --- /* Minimal main program -- everything is loaded from the library */ #include "Python.h" #ifdef MS_WINDOWS

[issue40943] PEP 353: Drop support for PyArg_ParseTuple() "#" formats when PY_SSIZE_T_CLEAN is not defined

2020-11-10 Thread STINNER Victor
STINNER Victor added the comment: libxml2 is hit by this issue: * https://gitlab.gnome.org/GNOME/libxml2/-/issues/203 * https://gitlab.gnome.org/GNOME/libxml2/-/merge_requests/87 (my proposed fix) -- ___ Python tracker

[issue42309] BUILD: AIX-64-bit segmentation fault

2020-11-10 Thread Michael Felt
New submission from Michael Felt : Successfully built and packaged the Python-3.9.0 distribution tar archive without modification - as 32-bit. Repeating the same process with the following environment change: # export OBJECT_MODE=64 fails with a segmentation fault by the "first-phase" pytho

[issue42260] [C API] Add PyInterpreterState_SetConfig(): reconfigure an interpreter

2020-11-10 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9e1b828265e6bfb58f1e0299bd78d8ff6347a2ba by Victor Stinner in branch 'master': bpo-42260: Compute the path config in the main init (GH-23211) https://github.com/python/cpython/commit/9e1b828265e6bfb58f1e0299bd78d8ff6347a2ba -- ___

[issue42260] [C API] Add PyInterpreterState_SetConfig(): reconfigure an interpreter

2020-11-10 Thread STINNER Victor
STINNER Victor added the comment: If we remove Modules/getpath.c, it will no longer be possible to automatically computes the path configuration when one of the following getter function will be called: * Py_GetPath() * Py_GetPrefix() * Py_GetExecPrefix() * Py_GetProgramFullPath() * Py_GetPy

[issue42260] [C API] Add PyInterpreterState_SetConfig(): reconfigure an interpreter

2020-11-10 Thread STINNER Victor
STINNER Victor added the comment: > If we remove Modules/getpath.c, it will no longer be possible to > automatically computes the path configuration when one of the following > getter function will be called: (...) It is not really an incompatible change according to the documentation: "Not

[issue42288] typing.get_type_hints() returns Optional[Any] if the default value of the argument is None

2020-11-10 Thread Komiya Takeshi
Komiya Takeshi added the comment: Wow, I don't know that behavior. Thank you for your wisdom! -- ___ Python tracker ___ ___ Python-

[issue42260] [C API] Add PyInterpreterState_SetConfig(): reconfigure an interpreter

2020-11-10 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22118 pull_request: https://github.com/python/cpython/pull/23220 ___ Python tracker ___ __

[issue42310] for loop creates element in defaultdict

2020-11-10 Thread Sandro Barnabishvili
New submission from Sandro Barnabishvili : from collections import defaultdict d = defaultdict(list) for _ in d['a']: pass print(d.keys()) For loop creates element with key 'a'. Is it expected behavior? -- components: Argument Clinic messages: 380661 nosy: larry, sandrobarna priority:

[issue42310] for loop creates element in defaultdict

2020-11-10 Thread Larry Hastings
Larry Hastings added the comment: Yes. Read the documentation for "defaultdict". In the future, please read the documentation before filing bugs. -- components: -Argument Clinic resolution: -> not a bug stage: -> resolved status: open -> closed type: behavior ->

[issue42308] Add threading.__excepthook__ similar to sys.__excepthook__

2020-11-10 Thread STINNER Victor
STINNER Victor added the comment: Can't you do that in your own hook? For example: orig_hook = threading.excepthook threading.excepthook = myhook def myhook(args): try: ... except: print("too bad!") orig_hook(args) I found one interesting usage of sys.__excepthook__

[issue42171] Add PEP 573 to the stable ABI

2020-11-10 Thread miss-islington
miss-islington added the comment: New changeset 0b9c4c6fcf2b0673fa45ddfa092934a9d5479b8c by Petr Viktorin in branch 'master': bpo-42171: Add PEP573-related items to the limited API (GH-23009) https://github.com/python/cpython/commit/0b9c4c6fcf2b0673fa45ddfa092934a9d5479b8c -- nosy:

[issue14019] Unify tests for str.format and string.Formatter

2020-11-10 Thread STINNER Victor
STINNER Victor added the comment: Since nobody implemented this idea in 8 years, maybe it's time to give up and close this issue as out of date. It seeems like Nick was busy with other stuff, and nobody took this task in the meanwhile. -- ___ Pyth

[issue42308] Add threading.__excepthook__ similar to sys.__excepthook__

2020-11-10 Thread Mario Corchero
Mario Corchero added the comment: > I found one interesting usage of sys.__excepthook__ in > code.InteractiveInterpreter: That is exactly what I wished this was there for hehe. We are installing a custom version of excepthook and wanted to check if the user had changed it. -- _

[issue42183] Stack overflow error with asyncio.all_tasks and wait_for

2020-11-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +22121 pull_request: https://github.com/python/cpython/pull/23223 ___ Python tracker ___ __

[issue42183] Stack overflow error with asyncio.all_tasks and wait_for

2020-11-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +22120 pull_request: https://github.com/python/cpython/pull/23222 ___ Python tracker ___ __

[issue42183] Stack overflow error with asyncio.all_tasks and wait_for

2020-11-10 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +22119 pull_request: https://github.com/python/cpython/pull/23221 ___ Python tracker _

[issue42183] Stack overflow error with asyncio.all_tasks and wait_for

2020-11-10 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 42d873c63aa9d160c132be4a34599531574db12c by Andrew Svetlov in branch 'master': bpo-42183: Fix a stack overflow error for asyncio Task or Future repr() (GH-23020) https://github.com/python/cpython/commit/42d873c63aa9d160c132be4a34599531574db12c

[issue40137] TODO list when PEP 573 "Module State Access from C Extension Methods" will be implemented

2020-11-10 Thread Petr Viktorin
Petr Viktorin added the comment: It should be possible to get them back using _PyType_GetModuleByDef. -- nosy: +petr.viktorin ___ Python tracker ___ __

[issue40137] TODO list when PEP 573 "Module State Access from C Extension Methods" will be implemented

2020-11-10 Thread STINNER Victor
STINNER Victor added the comment: Oh nice, in this case, I reopen my issue :-) -- resolution: fixed -> status: closed -> open ___ Python tracker ___ _

[issue42310] for loop creates element in defaultdict

2020-11-10 Thread Larry Hastings
Change by Larry Hastings : -- nosy: -larry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue42310] for loop creates element in defaultdict

2020-11-10 Thread Steven D'Aprano
Steven D'Aprano added the comment: As Larry said, yes, this is expected behaviour, and has nothing to do with the for loop. The purpose of defaultdict is that dict lookups create the entry if it doesn't exist: >>> from collections import defaultdict >>> d = defaultdict(list) >>> x = d['any k

[issue14935] PEP 384 Refactoring applied to _csv module

2020-11-10 Thread Petr Viktorin
Change by Petr Viktorin : -- nosy: +petr.viktorin nosy_count: 2.0 -> 3.0 pull_requests: +22122 pull_request: https://github.com/python/cpython/pull/23224 ___ Python tracker ___

[issue42307] make install must not copy python.o into $prefix/lib/python3.10/config-3.10-x86_64-linux-gnu/

2020-11-10 Thread Ned Deily
Ned Deily added the comment: I don't know for sure why python.o is included but perhaps the intent was to allow a user to rebuild a static interpreter with an user-supplied extension as is hinted at in https://docs.python.org/dev/extending/extending.html#compilation-and-linkage --

[issue42183] Stack overflow error with asyncio.all_tasks and wait_for

2020-11-10 Thread miss-islington
miss-islington added the comment: New changeset 90115a2cf7033c990a54d1ecb90ebd850b5f13cf by Miss Islington (bot) in branch '3.9': bpo-42183: Fix a stack overflow error for asyncio Task or Future repr() (GH-23020) https://github.com/python/cpython/commit/90115a2cf7033c990a54d1ecb90ebd850b5f13

[issue42183] Stack overflow error with asyncio.all_tasks and wait_for

2020-11-10 Thread miss-islington
miss-islington added the comment: New changeset 109c17315af124b25853c248f4a9bf00f03036f6 by Miss Islington (bot) in branch '3.8': bpo-42183: Fix a stack overflow error for asyncio Task or Future repr() (GH-23020) https://github.com/python/cpython/commit/109c17315af124b25853c248f4a9bf00f03036

[issue42307] make install must not copy python.o into $prefix/lib/python3.10/config-3.10-x86_64-linux-gnu/

2020-11-10 Thread STINNER Victor
STINNER Victor added the comment: Oh! I managed to build a static Python with the following commands: cd /opt/pymaster/lib/python3.10/config-3.10-x86_64-linux-gnu gcc -static -o ~/python-static python.o -L. $(./python-config.py --libs --embed) I get a static binary: $ ldd ~/python-static

[issue42183] Stack overflow error with asyncio.all_tasks and wait_for

2020-11-10 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.7 ___ Python tracker ___ ___

[issue42171] Add PEP 573 to the stable ABI

2020-11-10 Thread Petr Viktorin
Petr Viktorin added the comment: Added. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42311] It seems like ctypes code makes truncated pointer values in x64(access violations)

2020-11-10 Thread Taekab Park
New submission from Taekab Park : It seems like ctypes code makes truncated pointer values in x64(access violations) windows10 x64 options : __cdecl(/Gd) tested : python(x64) 3.2, 3.4, 3.6, 3.9 dll build with vc++2015 The test code is simple. Simply loaded TestDll and called function and c

[issue42312] sys.prefix is set incorrectly on Mac OS X

2020-11-10 Thread Michael Ferguson
New submission from Michael Ferguson : I have been trying to create a wrapper script for `python3` in a venv that behaves similarly to a symbolic link. I am able to use `exec -a` in bash to run `python3` with `argv[0]` set to the wrapper script. This allows it to function similarly to the sym

[issue42313] rstrip removes the trailing `e`s.

2020-11-10 Thread Athul R
New submission from Athul R : rstrip removes the trailing `e`s. i = "external_e_object" i = i.rstrip('_object') print(i) """ It should have printed `external_e` but it prints only `external_`. """ It happens only when I user rstrip("_object") not for other strings. # =

[issue42312] sys.prefix is set incorrectly on Mac OS X

2020-11-10 Thread Michael Ferguson
Michael Ferguson added the comment: In the above I meant to include the `bin` path in the examples, but it does not matter for the behavior (exec -a test-venv/bin/python3 python3 -c 'import sys; print(sys.executable); print (sys.prefix);') -- ___

[issue42111] Make the xxlimited module an example of best extension module practices

2020-11-10 Thread Petr Viktorin
Change by Petr Viktorin : -- keywords: +patch pull_requests: +22123 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23226 ___ Python tracker ___ __

[issue42312] sys.prefix is set incorrectly on Mac OS X

2020-11-10 Thread Ned Deily
Ned Deily added the comment: I'm not sure I understand exactly what you are trying to accomplish but one potential issue strikes me: you may need to ensure you are execing the right python binary by including a more complete path: $ (exec -a test-venv/bin/python3 test-venv/bin/python3 -c 'im

[issue42313] rstrip removes the trailing `e`s.

2020-11-10 Thread Zachary Ware
Zachary Ware added the comment: See https://docs.python.org/3/library/stdtypes.html#str.rstrip The `{l,r,}strip` methods remove all characters contained in the passed-in string; `"aabbccddeeffgg".rstrip("gfe") == "aabbccdd"` -- nosy: +zach.ware resolution: -> not a bug stage: -> re

[issue42307] make install must not copy python.o into $prefix/lib/python3.10/config-3.10-x86_64-linux-gnu/

2020-11-10 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > But... does any user really build Python manually after Python is installed? > The Python build system couldn't handle that as part of the regular build? > Maybe using a new configure --enable-static flag? Embedding? But they should use the .a not a

[issue42014] shutil.rmtree calls onerror with different function than failed

2020-11-10 Thread miss-islington
miss-islington added the comment: New changeset e59b2deffde61e5641cabd65034fa11b4db898ba by Michal Čihař in branch 'master': bpo-42014: shutil.rmtree: call onerror with correct function (GH-22585) https://github.com/python/cpython/commit/e59b2deffde61e5641cabd65034fa11b4db898ba -- no

[issue42014] shutil.rmtree calls onerror with different function than failed

2020-11-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +22125 pull_request: https://github.com/python/cpython/pull/23229 ___ Python tracker ___ __

[issue42314] Incorrect documentation entry for venv

2020-11-10 Thread Adrien
New submission from Adrien : Hello, I am reading the venv official documentation available here: https://docs.python.org/3/library/venv.html If I pick English - 3.9.0, it's stated: "Changed in version 3.8: Add --upgrade-deps option to upgrade pip + setuptools to the latest on PyPI" When I ru

[issue42014] shutil.rmtree calls onerror with different function than failed

2020-11-10 Thread miss-islington
Change by miss-islington : -- keywords: +patch pull_requests: +22124 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23228 ___ Python tracker ___ _

[issue42307] make install must not copy python.o into $prefix/lib/python3.10/config-3.10-x86_64-linux-gnu/

2020-11-10 Thread Ned Deily
Ned Deily added the comment: > Embedding? The example I cited from the docs was for extending Python by building a new interpreter using an installed Python, not embedding. Dunno how often that is done, though. Perhaps on Windows where it was more difficult to build an interpreter from sour

[issue42014] shutil.rmtree calls onerror with different function than failed

2020-11-10 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- nosy: -giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue26388] Disabling changing sys.argv[0] with runpy.run_module(...alter_sys=True)

2020-11-10 Thread William Schwartz
Change by William Schwartz : -- nosy: +William.Schwartz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue42014] shutil.rmtree calls onerror with different function than failed

2020-11-10 Thread miss-islington
miss-islington added the comment: New changeset c745b36ee3786fabc9231a43c085218df27dcd47 by Miss Islington (bot) in branch '3.8': bpo-42014: shutil.rmtree: call onerror with correct function (GH-22585) https://github.com/python/cpython/commit/c745b36ee3786fabc9231a43c085218df27dcd47 ---

[issue42014] shutil.rmtree calls onerror with different function than failed

2020-11-10 Thread miss-islington
miss-islington added the comment: New changeset 14a343a9af27725faeab8b330a6d66ff573704d3 by Miss Islington (bot) in branch '3.9': bpo-42014: shutil.rmtree: call onerror with correct function (GH-22585) https://github.com/python/cpython/commit/14a343a9af27725faeab8b330a6d66ff573704d3 ---

[issue42311] It seems like ctypes code makes truncated pointer values in x64(access violations)

2020-11-10 Thread Eryk Sun
Eryk Sun added the comment: A function that returns a pointer needs an explicit `restype` set. A function parameter that's a pointer generally requires `argtypes` to be set. For example: _testdll.GetPointer.restype = ctypes.c_void_p _testdll.SetPointer.argtypes = (ctypes.c_void_p,) U

[issue40137] TODO list when PEP 573 "Module State Access from C Extension Methods" will be implemented

2020-11-10 Thread hai shi
Change by hai shi : -- versions: +Python 3.10 -Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue42315] `python -m` semantics conflict with `__file__`'s being optional

2020-11-10 Thread William Schwartz
New submission from William Schwartz : `python -m mod` sets `sys.argv[0]` to the `mod.__file__` according to https://docs.python.org/3.9/using/cmdline.html#cmdoption-m > If ["-m"] is given, the first element of sys.argv will be the full path to > the module file (while the module file is being

[issue42313] rstrip removes the trailing `e`s.

2020-11-10 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: For 3.9+, you could do exactly what you want with .removesuffix (/.removeprefix) methods; >>> test = "external_e_object" >>> test.removesuffix("_object") 'external_e' -- nosy: +BTaskaya ___ Python

[issue42316] Walrus Operator in list index

2020-11-10 Thread Brandon
New submission from Brandon : Reading the PEP 572 document I don't see anything stating that Walrus operator in list indexes must be enclosed in parenthesis. Minimal Example: ''' In [1]: a = list(range(10)) In [2]: idx = -1 In [3]: a[idx := idx +1] File "", line 1 a[idx := idx +1]

[issue42158] http.server doesn't guess n-quads, n-triples, notation3 and TriG MIME types

2020-11-10 Thread Dylan Van Assche
Change by Dylan Van Assche : -- keywords: +patch pull_requests: +22126 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/23230 ___ Python tracker

[issue34365] datetime's documentation refers to "comparison [...] falling back to the default scheme of comparing object addresses"

2020-11-10 Thread Xtrem532
Change by Xtrem532 : -- nosy: +Xtrem532 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue42312] sys.prefix is set incorrectly on Mac OS X

2020-11-10 Thread Michael Ferguson
Michael Ferguson added the comment: > I'm not sure I understand exactly what you are trying to accomplish but one > potential issue strikes me: you may need to ensure you are execing the right > python binary by including a more complete path: That does not help with the original problem I w

[issue42309] BUILD: AIX-64-bit segmentation fault

2020-11-10 Thread Michael Felt
Michael Felt added the comment: On a different server, different compiler (xlc-v13, mine is xlc-v11) it gets past this point. So, perhaps it is a compiler issue. As the second system is missing many 64-bit libraries - still cannot build 64-bit Python-3.9. Low priority - imho. --

[issue11728] mbox parser incorrect behaviour

2020-11-10 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___ _

[issue16926] setup.py register does not always respect --repository

2020-11-10 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___ _

[issue6899] Base.replace breaks tree

2020-11-10 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 3.3 ___ Python tracker ___ __

[issue35560] format(float(123), "00") causes segfault in debug builds

2020-11-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +22127 pull_request: https://github.com/python/cpython/pull/23231 ___ Python tracker ___ __

[issue42273] Using LazyLoader leads to AttributeError

2020-11-10 Thread E. Paine
E. Paine added the comment: In short, the module isn't being added to the package's namespace because we are directly modifying sys.modules (hence why the behaviour would be the same if we imported using `import foo.b` as `from foo import b`). I personally prefer to use the metapath instead

[issue42312] sys.prefix is set incorrectly on Mac OS X

2020-11-10 Thread Ned Deily
Ned Deily added the comment: Sorry, I didn't intend to criticize what you are trying to do, I just not sure I understand it so I could give a more helpful response. It seems to me that an explanation for the difference in behavior you are seeing between your Ubuntu and macOS setups is in exa

[issue35560] format(float(123), "00") causes segfault in debug builds

2020-11-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: This bug was introduced into the Python 3.6.8 "bugfix" release. https://github.com/python/cpython/pull/23231 will fix it if anyone needs that on modern 3.6. -- nosy: +gregory.p.smith versions: +Python 3.6 ___ Py

[issue42312] sys.prefix is set incorrectly on Mac OS X

2020-11-10 Thread Ronald Oussoren
Ronald Oussoren added the comment: The difference in behaviour is because the executable does not look at argv[0] to find its location on macOS. Your trick therefore doesn't work. I prefer the current behaviour. What I don't understand is *why* you want to do this. If I read your report cor

[issue42314] Incorrect documentation entry for venv

2020-11-10 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 2.0 -> 3.0 pull_requests: +22128 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23232 ___ Python tracker

[issue42267] Python 3.9 broken installer

2020-11-10 Thread JackSkellington
JackSkellington added the comment: Thank you for everything. -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker ___

[issue42317] Docs of `typing.get_args`: Mention that due to caching of typing generics the order of arguments for Unions can be different from the one of the returned tuple

2020-11-10 Thread Dominik V.
New submission from Dominik V. : Due to caching of `__getitem__` for generic types, the order of arguments as returned by `get_args` might be different for Union: ```python >>> from typing import List, Union, get_args >>> get_args(get_args(List[Union[int, str]])[0]) (, ) >>> get_args(get_args(

[issue42302] [Turtle] Add clockwise and anticlockwise method as alias to right and left

2020-11-10 Thread Ravi Chityala
Ravi Chityala added the comment: Hello All In math and physics we typically use terms clockwise and anti-clockwise and not right and left for rotation. This change will make it easy for kids to learn the terms that they will eventually use in math and physics anyway. The change I am proposing

[issue42297] [argparse] Bad error message formatting when using custom usage text

2020-11-10 Thread paul j3
paul j3 added the comment: We could look into using a different more compact 'prog' for these error messages. Currently the subparser 'prog' uses the main prog plus positionals plus the subparser name. The goal is to construct a subparser usage that reflects required input. This is fine

[issue42312] sys.prefix is set incorrectly on Mac OS X

2020-11-10 Thread Ronald Oussoren
Ronald Oussoren added the comment: Note that the same is true for python3 outside of a venv, it does not use argv[0] to locate says.prefix (for framework builds). That’s intentional. -- ___ Python tracker _

[issue42103] [security] DoS (MemError via CPU and RAM exhaustion) when processing malformed Apple Property List files in binary format

2020-11-10 Thread Ned Deily
Ned Deily added the comment: New changeset 225e3659556616ad70186e7efc02baeebfeb5ec4 by Serhiy Storchaka in branch '3.7': [3.7] bpo-42103: Improve validation of Plist files. (GH-22882) (#23117) https://github.com/python/cpython/commit/225e3659556616ad70186e7efc02baeebfeb5ec4 --

[issue42103] [security] DoS (MemError via CPU and RAM exhaustion) when processing malformed Apple Property List files in binary format

2020-11-10 Thread Ned Deily
Ned Deily added the comment: New changeset a63234c49b2fbfb6f0aca32525e525ce3d43b2b4 by Serhiy Storchaka in branch '3.6': [3.6] bpo-42103: Improve validation of Plist files. (GH-22882) (GH-23118) https://github.com/python/cpython/commit/a63234c49b2fbfb6f0aca32525e525ce3d43b2b4 -- __

[issue35560] format(float(123), "00") causes segfault in debug builds

2020-11-10 Thread Ned Deily
Ned Deily added the comment: New changeset dae5d728bc3f1d4039b64e4ec3a9036fd5d19587 by Miss Islington (bot) in branch '3.6': bpo-35560: Remove assertion from format(float, "n") (GH-11288) (GH-23231) https://github.com/python/cpython/commit/dae5d728bc3f1d4039b64e4ec3a9036fd5d19587 --

[issue1598083] Top-level exception handler writes to stdout unsafely

2020-11-10 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___ ___

[issue42085] Add dedicated slot for sending values

2020-11-10 Thread Yury Selivanov
Yury Selivanov added the comment: Vladimir, please do a follow up PR documenting Py_TPFLAGS_HAVE_AM_SEND. -- ___ Python tracker ___ ___

[issue42085] Add dedicated slot for sending values

2020-11-10 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 1e996c3a3b51e9c6f1f4cea8a6dbcf3bcb865060 by Vladimir Matveev in branch 'master': bpo-42085: Introduce dedicated entry in PyAsyncMethods for sending values (#22780) https://github.com/python/cpython/commit/1e996c3a3b51e9c6f1f4cea8a6dbcf3bcb86506

[issue42260] [C API] Add PyInterpreterState_SetConfig(): reconfigure an interpreter

2020-11-10 Thread STINNER Victor
STINNER Victor added the comment: New changeset ace3f9a0ce7b9fe8ae757fdd614f1e7a171f92b0 by Victor Stinner in branch 'master': bpo-42260: Fix _PyConfig_Read() if compute_path_config=0 (GH-23220) https://github.com/python/cpython/commit/ace3f9a0ce7b9fe8ae757fdd614f1e7a171f92b0 -- __

[issue42103] [security] DoS (MemError via CPU and RAM exhaustion) when processing malformed Apple Property List files in binary format

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

[issue41832] PyType_FromSpec() should accept tp_doc=NULL

2020-11-10 Thread Petr Viktorin
Petr Viktorin added the comment: The PR entirely removed the note that a slot's value "May not be NULL". In fact, only tp_doc may be NULL. AFAIK, the restriction is still there for other slots. Can that note be added back? -- status: closed -> open ___

[issue42312] sys.prefix is set incorrectly on Mac OS X

2020-11-10 Thread Michael Ferguson
Michael Ferguson added the comment: > For example, when I run the test exec on my macOS system, it is clear that > the python3 being invoked is not the venv one but a different python3 > altogether that shows up earlier on PATH. In the test case I am interested in, PATH is not set to the ven

[issue42307] make install must not copy python.o into $prefix/lib/python3.10/config-3.10-x86_64-linux-gnu/

2020-11-10 Thread Neil Schemenauer
Neil Schemenauer added the comment: I think the comments are correct in that it is used to create a new statically linked interpreter that includes a user provided extension module. We could include python.o inside the libpythonXX.a file but then I think it breaks if you are embedding (e.g.

[issue16781] execfile/exec execution in other than global scope uses locals(), leading to undefined behavior

2020-11-10 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.6, Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___ _

[issue41073] [C API] PyType_GetSlot() should accept static types

2020-11-10 Thread miss-islington
miss-islington added the comment: New changeset a13b26cac1519dad7bbc8651de7b826df7389d75 by Hai Shi in branch 'master': bpo-41073: PyType_GetSlot() can now accept static types. (GH-21931) https://github.com/python/cpython/commit/a13b26cac1519dad7bbc8651de7b826df7389d75 -- nosy: +mis

[issue4655] during Python installation, setup.py should not use .pydistutils.cfg

2020-11-10 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___ __

  1   2   >