[issue31751] Support for C++ 11 and/or C++ 14 in macOS python.org installer

2021-02-09 Thread Gregory P. Smith
Gregory P. Smith added the comment: seems likely. reopen if this is still relevant to any modern release. -- nosy: +gregory.p.smith resolution: -> out of date stage: -> resolved status: open -> closed title: Support for C++ 11 and/or C++ 14 in python.org installer -> Support for

[issue43181] Python macros don’t shield arguments

2021-02-09 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43181] Python macros don’t shield arguments

2021-02-09 Thread Gregory P. Smith
Gregory P. Smith added the comment: This bug is valid, that macro and likely others aren't up to best practices. C macros are a PITA to get right. -- keywords: +3.9regression nosy: +gregory.p.smith stage: -> needs patch type: -> compile error versions: +Python 3.10

[issue43172] Fix test_readline when compiled using --with-readline=edit

2021-02-09 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +23288 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/24499 ___ Python tracker

[issue43174] Windows: Use /utf-8 compiler flag

2021-02-09 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +23287 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24498 ___ Python tracker ___

[issue43001] python3.9.1 test_embed test_tabnanny failed

2021-02-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: A 300 KB file of unknown type that has to be downloaded and opened with an unknown program is pretty useless. Please state system/OS, exact Python release, command run, and copy-paste the errors here on the web page. I do not see test_embed or

[issue27640] Add --disable-test-modules configure option to not build nor install tests

2021-02-09 Thread Eli Schwartz
Eli Schwartz added the comment: I have a slightly different interest in declining to install tests... Arch Linux provides the tests as a split subpackage with currently some hacky shell globbing to delete the tests after make install, then do a second libinstall and delete everything but

[issue43183] Asyncio can't close sockets properly on Linux cause CLOSE_WAIT

2021-02-09 Thread Bob
Change by Bob : -- assignee: -> christian.heimes components: +SSL nosy: +christian.heimes versions: +Python 3.10, Python 3.7, Python 3.9 ___ Python tracker ___

[issue38946] IDLE on macOS 10.15 Catalina does not open double-clicked files if app already launched

2021-02-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yes, the program title depends on what 'app' you start. I presume that this is normal for Mac. -- ___ Python tracker ___

[issue43001] python3.9.1 test_embed test_tabnanny failed

2021-02-09 Thread Tony Martin Berbel
Tony Martin Berbel added the comment: I found lastlog and attached it ! -- Added file: https://bugs.python.org/file49800/lastlog ___ Python tracker ___

[issue43001] python3.9.1 test_embed test_tabnanny failed

2021-02-09 Thread Tony Martin Berbel
Tony Martin Berbel added the comment: I had the same error I ran the make test command with > But I don't know where to look for the log file -- nosy: +wingarmac ___ Python tracker

[issue43181] Python macros don’t shield arguments

2021-02-09 Thread William Pickard
William Pickard added the comment: This feels like it's more of an issue with the C++ compiler you're using. (I can tell it's C++ because of template syntax) -- nosy: +WildCard65 ___ Python tracker

[issue43183] Asyncio can't close sockets properly on Linux cause CLOSE_WAIT

2021-02-09 Thread Bob
Change by Bob : Added file: https://bugs.python.org/file49799/server.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43183] Asyncio can't close sockets properly on Linux cause CLOSE_WAIT

2021-02-09 Thread Bob
New submission from Bob : I wrote a simple proxy with Python3.8 and Asyncio, but I found it couldn't handle passive close correctly, a lot of CLOSE_WAIT sockets couldn't be released. I had trouble shot it for a long time with no progress. netstat -anop tcp | grep CLOSE_WAIT tcp6 0

[issue38946] IDLE on macOS 10.15 Catalina does not open double-clicked files if app already launched

2021-02-09 Thread Kevin Purrone
Kevin Purrone added the comment: Sorry, I meant to say the title of the PROGRAM in the menu items is now Python. -- ___ Python tracker ___

[issue38946] IDLE on macOS 10.15 Catalina does not open double-clicked files if app already launched

2021-02-09 Thread Kevin Purrone
Kevin Purrone added the comment: I have little experience posting in forums, so if this post is in the wrong place, please let me know. I am running Python3.9, with Apple OS 10.15.7 I was using IDLE successfully for a class in Python for the past three weeks, although I was rarely able to

[issue43183] Asyncio can't close sockets properly on Linux cause CLOSE_WAIT

2021-02-09 Thread Bob
Change by Bob : -- components: asyncio nosy: Bob_2021, asvetlov, yselivanov priority: normal severity: normal status: open title: Asyncio can't close sockets properly on Linux cause CLOSE_WAIT type: behavior versions: Python 3.8 ___ Python tracker

[issue43182] TURTLE: Default values for basic Turtle commands

2021-02-09 Thread Bruce Fuda
New submission from Bruce Fuda : Since Python is being taught to students of all ages and in particular younger kids (i.e. 6 - 10 yo) who are learning not just python, but many related things for the first time, the need to include values as arguments to basic Turtle functions like:

[issue42217] compiler: merge co_code and co_lnotab

2021-02-09 Thread Inada Naoki
Inada Naoki added the comment: New changeset bdb941be423bde8b02a5695ccf51c303d6204bed by Inada Naoki in branch 'master': bpo-42217: compiler: merge same co_code and co_linetable objects (GH-23056) https://github.com/python/cpython/commit/bdb941be423bde8b02a5695ccf51c303d6204bed --

[issue42217] compiler: merge co_code and co_lnotab

2021-02-09 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue42128] Structural Pattern Matching (PEP 634)

2021-02-09 Thread Daniel Moisset
Daniel Moisset added the comment: @Ken: I've invited you to the repo. For tracking the WIP, https://github.com/dmoisset/cpython/tree/patma-docs Do you want to see if you can base the reference/compound_stmts.rst changes in PEP 634? I'll try to fit a variant of the Appendix A of PEP 636 into

[issue42919] Blank in multiline “if expressions” will lead to EOF errors

2021-02-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Closing as "not a bug" as per the previous discussion. If someone sees new information here, please, feel free to re-open. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python

[issue43181] Python macros don’t shield arguments

2021-02-09 Thread Vitaliy
New submission from Vitaliy : There is a lot of macros like: #define PyObject_TypeCheck(ob, tp) \ (Py_IS_TYPE(ob, tp) || PyType_IsSubtype(Py_TYPE(ob), (tp))) These work fine until an argument happen to contain a comma. That’s possible as a result of other macro’s expansion. E.g. if U(x)

[issue43179] Remove s390 support

2021-02-09 Thread Arfrever Frehtes Taifersar Arahesis
Change by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43175] filecmp is not working for UTF-8 BOM file.

2021-02-09 Thread Steve Dower
Steve Dower added the comment: I think you copy-pasted that code snippet incorrectly, because it has mismatched quotes. Can you paste the correct code? Also, please attach both files that are not comparing equal, ideally in a ZIP file (to avoid any modifications in transit), so that we can

[issue43174] Windows: Use /utf-8 compiler flag

2021-02-09 Thread Steve Dower
Steve Dower added the comment: The new property should go into PCbuild/pyproject.props, but otherwise seems like an okay change. It *will* cause any string literals (const char *) to be UTF-8, but they ought to all be ASCII anyway. It shouldn't affect resource files, because those have a

[issue43163] codeop prematurely raises on 2nd line when closer is needed

2021-02-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset dbb228189b4eb7ab41f326eb79dae669b2c81177 by Pablo Galindo in branch 'master': bpo-43163: Handle unclosed parentheses in codeop (GH-24483) https://github.com/python/cpython/commit/dbb228189b4eb7ab41f326eb79dae669b2c81177 --

[issue43163] codeop prematurely raises on 2nd line when closer is needed

2021-02-09 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue31751] Support for C++ 11 and/or C++ 14 in python.org installer

2021-02-09 Thread Ronald Oussoren
Ronald Oussoren added the comment: Can this be closed as out of date? 1. universal2 installers are build using Xcode 12 2. the regular installers are build on macOS 10.9 and the system compilers on that system should support C++ 11 and 14. --

[issue43094] Update sqlite3 docs and docstrings to reflect implementation

2021-02-09 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Module level function discrepancies: register_converter(), register_adapter(), and enable_callback_tracebacks() docstrings were unintentionally altered in recent AC updates. Docstrings should be restored. Docs are ok. adapt() is not documented, but

[issue41100] Support macOS 11 and Apple Silicon Macs

2021-02-09 Thread Ronald Oussoren
Ronald Oussoren added the comment: There is no ETA. I'm spending more time away from the computer and on other projects when I'm not at work. I also have no personal need for 3.8 support. If anyone else is up to the job: the back port to 3.9 should be a good starting point, but I don't

[issue43112] SOABI on Linux does not distinguish between GNU libc and musl libc

2021-02-09 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: While original uClibc is not maintained, its fork called uClibc-ng is supposedly binary-compatible with uClibc and is still somehow maintained: https://uclibc-ng.org/ https://repo.or.cz/w/uclibc-ng.git https://www.uclibc.org/news.html

[issue41824] Docs for typing.ForwardRef don't state that it was added in 3.7

2021-02-09 Thread Guido van Rossum
Change by Guido van Rossum : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43112] SOABI on Linux does not distinguish between GNU libc and musl libc

2021-02-09 Thread Olivier Le Floch
Change by Olivier Le Floch : -- nosy: +olivierlefloch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43173] Python Windows DLL search paths

2021-02-09 Thread Jeff Moguillansky
Jeff Moguillansky added the comment: Thanks for the feedback On Mon, Feb 8, 2021, 8:29 PM Eryk Sun wrote: > > Eryk Sun added the comment: > > > What's the correct way to set the DLL search path when running a python > script? > > If possible, the simplest approach is to put dependent DLLs

[issue43156] Python windows installer has a confusing name - add setup to its name

2021-02-09 Thread Steve Dower
Steve Dower added the comment: In principle I agree, but need to spend some time thinking about the compatibility implications. We've already changed the download page for 3.10, so changing the download names as well won't hurt too much - I don't think there's a real need for redirects. If

[issue43173] Python Windows DLL search paths

2021-02-09 Thread Steve Dower
Steve Dower added the comment: Eryk answered the question sufficiently, here's the link to the add_dll_directory docs: https://docs.python.org/library/os.html#os.add_dll_directory -- resolution: -> not a bug stage: -> resolved status: open -> closed

[issue43166] Unused letters in Windows-specific pragma optimize

2021-02-09 Thread Steve Dower
Steve Dower added the comment: New changeset b74396c3167cc780f01309148db02709bc37b432 by Steve Dower in branch 'master': bpo-43166: Disable ceval.c optimisations for Windows debug builds (GH-24485) https://github.com/python/cpython/commit/b74396c3167cc780f01309148db02709bc37b432 --

[issue43166] Unused letters in Windows-specific pragma optimize

2021-02-09 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43166] Unused letters in Windows-specific pragma optimize

2021-02-09 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +23286 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24485 ___ Python tracker ___

[issue43127] Unable to install Python 3.9.1 - Windows 10

2021-02-09 Thread Steve Dower
Steve Dower added the comment: Oh, you might also be able to install Python from the Microsoft Store more easily - open the Store app and search for it. It's identical, just packaged differently. -- ___ Python tracker

[issue43127] Unable to install Python 3.9.1 - Windows 10

2021-02-09 Thread Steve Dower
Steve Dower added the comment: Yeah, system policy is not something we can work around. If you can, maybe try installing for all users? (Under customised install options.) You might have to right click the installer and run as an administrator, which sometimes helps get around these

[issue41824] Docs for typing.ForwardRef don't state that it was added in 3.7

2021-02-09 Thread Ken Jin
Ken Jin added the comment: I think we can close this now. Thanks for reporting it Dominic, and thanks Guido for all your help! -- ___ Python tracker ___

[issue41824] Docs for typing.ForwardRef don't state that it was added in 3.7

2021-02-09 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 822f7c266f886677047338e8b167ba39a6abd91e by Ken Jin in branch '3.8': [3.8] bpo-41824: Fix indentation issue in ForwardRef docs (#24495) https://github.com/python/cpython/commit/822f7c266f886677047338e8b167ba39a6abd91e --

[issue43156] Python windows installer has a confusing name - add setup to its name

2021-02-09 Thread Barry Alan Scott
Barry Alan Scott added the comment: Understood that changing the status quo may have problems. Maybe you do an HTTP redirect from the old name to the new name? Or have the installed available under both names but only advertise the new name? --

[issue41824] Docs for typing.ForwardRef don't state that it was added in 3.7

2021-02-09 Thread Ken Jin
Change by Ken Jin : -- pull_requests: +23285 pull_request: https://github.com/python/cpython/pull/24495 ___ Python tracker ___ ___

[issue41824] Docs for typing.ForwardRef don't state that it was added in 3.7

2021-02-09 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset c8a48c6d0417cc8f256a40142962825febdc2e20 by Ken Jin in branch '3.8': [3.8] bpo-41824: Add versionadded for typing.ForwardRef docs (#24224) (#24494) https://github.com/python/cpython/commit/c8a48c6d0417cc8f256a40142962825febdc2e20 --

[issue41824] Docs for typing.ForwardRef don't state that it was added in 3.7

2021-02-09 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 917eca700aa341f8544ace43b75d41b477e98b72 by Ken Jin in branch '3.9': bpo-41824: Add versionadded for typing.ForwardRef docs (#24224) (#24493) https://github.com/python/cpython/commit/917eca700aa341f8544ace43b75d41b477e98b72 --

[issue41824] Docs for typing.ForwardRef don't state that it was added in 3.7

2021-02-09 Thread Ken Jin
Change by Ken Jin : -- pull_requests: +23284 pull_request: https://github.com/python/cpython/pull/24494 ___ Python tracker ___ ___

[issue41824] Docs for typing.ForwardRef don't state that it was added in 3.7

2021-02-09 Thread Ken Jin
Change by Ken Jin : -- pull_requests: +23283 pull_request: https://github.com/python/cpython/pull/24493 ___ Python tracker ___ ___

[issue42128] Structural Pattern Matching (PEP 634)

2021-02-09 Thread Brandt Bucher
Brandt Bucher added the comment: Also, see my msg379831 above. We can't entirely rely on the PEPs, of course, but I think we could still get some decent reuse out of them. BTW, has the new docs WG started up yet? I keep hearing about it every once in a while, but I'm not sure if it's

[issue43112] SOABI on Linux does not distinguish between GNU libc and musl libc

2021-02-09 Thread Tianon
Change by Tianon : -- nosy: +tianon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43180] Lists without commas?

2021-02-09 Thread Mark Dickinson
Mark Dickinson added the comment: This is by design. It's not really to do with lists, but to do with placing two string literals next to each other. See: https://docs.python.org/3/reference/lexical_analysis.html#string-literal-concatenation See also

[issue43180] Lists without commas?

2021-02-09 Thread Mike Siegel
New submission from Mike Siegel : Perhaps I'm missing something here but this behavior seems unexpected to me. "Lists The items of a list are arbitrary Python objects. Lists are formed by placing a *comma-separated* list of expressions in square brackets. (Note that there are no special

[issue43177] How to use `long double` as a PyObject?

2021-02-09 Thread Ganesh Kathiresan
Ganesh Kathiresan added the comment: Oh apologies for changing the version, makes sense for 3.10. I had it opened before the change and sort of conflicted into taking my old preset 3.7 on the page -- ___ Python tracker

[issue43177] How to use `long double` as a PyObject?

2021-02-09 Thread Ganesh Kathiresan
Ganesh Kathiresan added the comment: Oh I see. Yeah my ask is particularly around support for long double precision in python. What I am trying to do is essentially attempt to speed up the comparison of NumPy scalars: https://github.com/numpy/numpy/pull/17970. We have support for float128

[issue36859] sqlite3 dml statement detection does not account for CTEs

2021-02-09 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- pull_requests: +23282 pull_request: https://github.com/python/cpython/pull/24492 ___ Python tracker ___

[issue43112] SOABI on Linux does not distinguish between GNU libc and musl libc

2021-02-09 Thread Natanael Copa
Natanael Copa added the comment: This mentions some examples for musl triplets/tuples: https://wiki.musl-libc.org/getting-started.html It points to https://github.com/richfelker/musl-cross-make/blob/master/README.md#supported-targets which I think is the best documentation. (Rich Felker is

[issue36859] sqlite3 dml statement detection does not account for CTEs

2021-02-09 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Thanks, Charles. I'll give it a shot and see if get can provoke a response :) -- ___ Python tracker ___

[issue42128] Structural Pattern Matching (PEP 634)

2021-02-09 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: The grammar is indeed auto-generated by reading the actual Grammar file, python.gram. Here's the lexer Pablo had developed for doing the syntax-highlighting. https://github.com/python/cpython/blob/master/Doc/tools/extensions/peg_highlight.py --

[issue43177] How to use `long double` as a PyObject?

2021-02-09 Thread Mark Dickinson
Mark Dickinson added the comment: I'm setting the Python version to 3.10 here: this is a request for a new feature, and as such it can't go into already-released Python versions. -- versions: +Python 3.10 -Python 3.7 ___ Python tracker

[issue43177] How to use `long double` as a PyObject?

2021-02-09 Thread Mark Dickinson
Mark Dickinson added the comment: > Any plans to add it in the future? It depends - it's not really clear to me what you're asking for. If you just want to get a Python `float` from a C long double, then cast to double in the C code and then use `PyFloat_FromDouble`. Obviously that loses

[issue42128] Structural Pattern Matching (PEP 634)

2021-02-09 Thread Ken Jin
Ken Jin added the comment: Hi Daniel, wow thanks for the offer! My GitHub username is Fidget-Spinner. I'm not sure about the grammar file either. Oh, thanks for mentioning the tutorial recommendation by the SC, I'll keep that in mind.  -- ___

[issue36859] sqlite3 dml statement detection does not account for CTEs

2021-02-09 Thread Charles
Charles added the comment: Yeah, go for it erlendaasland - I abandoned all hope of getting it merged, and have just been maintaining my own pysqlite3 which simplifies my life greatly. -- ___ Python tracker

[issue43177] How to use `long double` as a PyObject?

2021-02-09 Thread Ganesh Kathiresan
Ganesh Kathiresan added the comment: Ohh ok, thanks for the info Mark. Any plans to add it in the future? My bad, sorry, will change to C-API. -- components: +C API -ctypes versions: +Python 3.7 -Python 3.10 ___ Python tracker

[issue43177] How to use `long double` as a PyObject?

2021-02-09 Thread Mark Dickinson
Change by Mark Dickinson : -- versions: +Python 3.10 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43177] How to use `long double` as a PyObject?

2021-02-09 Thread Mark Dickinson
Mark Dickinson added the comment: You're correct that there's nothing in the C-API to handle a C `long double`. (Similarly, there's very little for C `float` values.) You've added "ctypes" as a component, but in the message you're talking about the C-API. Can you clarify what you're doing?

[issue36859] sqlite3 dml statement detection does not account for CTEs

2021-02-09 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: I believe GH-13216 would be an improvement. I see that your original branch is unavailable, Charles; would you mind if I cherry-picked it and rebased it onto master? The sqlite3 module now requires SQLite >= 3.7.15 which simplifies the change a lot.

[issue42128] Structural Pattern Matching (PEP 634)

2021-02-09 Thread Daniel Moisset
Daniel Moisset added the comment: Hey Ken, I was about to take on this myself, but I wouldn't mind a bit of help. Your list seems ok, I would add to it a section about PM in the python tutorial (which was explicitly mentioned in the SC acceptance notice). Regarding the grammar, I believe

[issue29988] with statements are not ensuring that __exit__ is called if __enter__ succeeds

2021-02-09 Thread Nir Soffer
Nir Soffer added the comment: Does https://github.com/python/cpython/pull/1799 solve this issue for synchronous with? with closing(this), closing(that): If it does, can we backport this fix to python 3.6? 3.6 is used as system python for RHEL/Centos 8, will be used for at least 5 years

[issue41282] Deprecate and remove distutils

2021-02-09 Thread Lumír Balhar
Change by Lumír Balhar : -- nosy: +frenzy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43112] SOABI on Linux does not distinguish between GNU libc and musl libc

2021-02-09 Thread Christian Heimes
Christian Heimes added the comment: I stand corrected. The last element in the platform triplet does seem to indicate libc. Is there any formal definition of the platform triplet or is it defined by GCC's reference implementation? A quick search didn't reveal any decisive results. The

[issue43179] Remove s390 support

2021-02-09 Thread Christian Heimes
New submission from Christian Heimes : configure.ac contains triplet definitions for s390 and s390x mainframes. While s390x (Linux on IBM Z) is still widely supported, s390 is not. s390 was released in 1990 and discontinued in 1998, https://en.wikipedia.org/wiki/IBM_System/390 Ariadne

[issue42686] include built-in Math functions in SQLite to 3.35.0 of march 2021

2021-02-09 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- components: +Library (Lib), Windows nosy: +paul.moore, tim.golden, zach.ware ___ Python tracker ___

[issue43094] sqlite3.create_function takes parameter named narg, not num_params

2021-02-09 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- keywords: +patch pull_requests: +23280 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24489 ___ Python tracker

[issue43094] sqlite3.create_function takes parameter named narg, not num_params

2021-02-09 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Quoting from Victor Stinner's reply on python-dev (https://mail.python.org/archives/list/python-...@python.org/message/X6SZIVOZ233TLLJV43UQEHMV3ELGP34S/): If there are applications relying on the parameter name, it's better to trust the Python

[issue43068] test_subprocess: test_specific_shell() fails on AMD64 FreeBSD Shared 3.x

2021-02-09 Thread Kubilay Kocak
Kubilay Kocak added the comment: P.S gdb and bash have been rebuilt :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43068] test_subprocess: test_specific_shell() fails on AMD64 FreeBSD Shared 3.x

2021-02-09 Thread Kubilay Kocak
Kubilay Kocak added the comment: Note: Not suggesting dep removals, just a try-except-skip block in the (hopefully) one place the sub-process handler in the test framework that runs then :) -- ___ Python tracker

[issue5846] Deprecate obsolete functions in unittest

2021-02-09 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: > I'm sure Gerhard wouldn't say no to changing the sqlite3 test prefix to "test_"... FYI, the sqlite3 tests have now been cleaned up (GH-20538). Remaining occurrences in Lib/test: Lib/test/test_pdb.py:unittest.makeSuite(PdbTestCase),

[issue13508] ctypes' find_library breaks with ARM ABIs

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

[issue43068] test_subprocess: test_specific_shell() fails on AMD64 FreeBSD Shared 3.x

2021-02-09 Thread STINNER Victor
STINNER Victor added the comment: > As far as I'm aware, the best practice and recommendation for these cases is > that 'tests should not test dependencies', and to skip/skipif these > (external) dependencies are not available or fail to load/run. In theory, we should limit external

[issue43148] Call sys.unraisablehook in the REPL when sys.excepthook is broken

2021-02-09 Thread STINNER Victor
STINNER Victor added the comment: It makes sense to call _PyErr_WriteUnraisableMsg() when sys.excepthook raise a new exception. Do you want to propose a PR for that? sys.excepthook documentation mentions sys.unraisablehook: https://docs.python.org/dev/library/sys.html#sys.excepthook

[issue42128] Structural Pattern Matching (PEP 634)

2021-02-09 Thread Ken Jin
Ken Jin added the comment: Guido and Brandt, may I take a stab at the docs for this? I'll probably base most of it off PEP 636's tutorial. Relevant parts of the docs that I've identified: reference/lexical_analysis.rst reference/compound_stmts.rst reference/grammar.rst # this probably needs

[issue43178] Redundant method overrides in queue

2021-02-09 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 1.0 -> 2.0 pull_requests: +23279 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24488 ___ Python tracker

[issue36517] typing.NamedTuple does not support mixins

2021-02-09 Thread Ben Avrahami
Ben Avrahami added the comment: The patch PR blocks out a useful idiom: generic Nametuple >>> class LLNode(NamedTuple, Generic[T]): ... value :T ... next: Optional[LLNode[T]] I put forward that, at the least, NamedTuple should accept do-nothing bases like Generic. -- nosy:

[issue43162] Enum regression: AttributeError when accessing class variables on instances

2021-02-09 Thread Miro Hrončok
Miro Hrončok added the comment: "Wait for the warning to appear in at least two major Python versions. It's fine to wait more than two releases." https://www.python.org/dev/peps/pep-0387/#basic-policy-for-backwards-compatibility So indeed, if you add the warning in 3.10, the behavior can be

[issue43178] Redundant method overrides in queue

2021-02-09 Thread Peleg Shilo
New submission from Peleg Shilo : PriorityQueue and LIFOQueue override the _qsize method without actually changing it. They should just inherit it normally. -- components: Library (Lib) messages: 386699 nosy: peleg2 priority: normal severity: normal status: open title: Redundant

[issue43177] How to use `long double` as a PyObject?

2021-02-09 Thread Ganesh Kathiresan
New submission from Ganesh Kathiresan : I wanted to know if there is a way to parse and store c `long double`. I only found `PyFloat_FromDouble` and in the same page, `PyFloat_GetMax` returns: > Return the maximum representable finite float DBL_MAX as C double. Meaning, there is no scope of