[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 
C++ 11 and/or C++ 14 in macOS python.org installer

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 test_tabnanny errors on Windows or Mac.  Are you 2 
on *nix?

For test_embed, all tests are skipped for me because _testembed.exe does not 
exist.  I am guessing that this is normal since the first line of the file says 
# Run the tests in Programs/_testembed.c (tests for the CPython embedding APIs)
This suggests that it should never fail when running the test suite normally.  
Victor?

--
nosy: +vstinner

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 the tests.

It would be more convenient if we had a Makefile option to install the tests 
separately.

It's now possible to disable installing tests with a filthy hack: make install 
TEST_MODULES= TESTSUBDIRS=

However, it's not possible to similarly hack make libinstall LIBSUBDIRS=
Because it installs some toplevel stuff, then runs lib2to3.pgen2.driver on the 
grammar that got skipped by the LIBSUBDIRS= hack.

Thoughts on maybe splitting this up at install time? Would probably mean 
duplicating some of libinstall as testinstall...

--
nosy: +eschwartz

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 >&log 
But I don't know where to look for the log file

--
nosy: +wingarmac

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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  0 64.XXX.XXX.XXX:80113.58.229.12:46996 CLOSE_WAIT 
 10486/python3.8  off (0.00/0/0)
tcp6   0  0 64.XXX.XXX.XXX:80222.137.35.237:54914CLOSE_WAIT 
 10485/python3.8  off (0.00/0/0)
tcp6   0  0 64.XXX.XXX.XXX:80119.39.47.229:53882 CLOSE_WAIT 
 10486/python3.8  off (0.00/0/0)
tcp6   0  0 64.XXX.XXX.XXX:80123.14.254.238:49262CLOSE_WAIT 
 10486/python3.8  off (0.00/0/0)
tcp6   0  0 64.XXX.XXX.XXX:80121.57.230.51:35036 CLOSE_WAIT 
 10486/python3.8  off (0.00/0/0)
tcp6   0  0 64.XXX.XXX.XXX:80124.235.138.253:44882   CLOSE_WAIT 
 10486/python3.8  off (0.00/0/0)
tcp6   0  0 64.XXX.XXX.XXX:8036.5.157.219:38006  CLOSE_WAIT 
 10486/python3.8  off (0.00/0/0)
tcp6   0  0 64.XXX.XXX.XXX:80150.255.5.121:39288 CLOSE_WAIT 
 10486/python3.8  off (0.00/0/0)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 open a file by double clicking it. It actually 
worked a few times, but most of the time, nothing happened, and I would open 
IDLE first, and then open a file from its file menu. 

But today, IDLE will not open. When I click on the icon in the dock like I 
usually did, it seems to open for about .5 seconds, and then quits. Also, now 
when I double click on a .py file, IDLE will open for about .5 seconds and then 
quits. I reinstalled the package, but no change.

However, in terminal I can launch python with this command: python3.9. Then I 
can launch IDLE with this command: import idlelib.idle. The IDLE window opens, 
and I can open files from the file menu and they run as before. However, the 
title of the file menu is now "Python" where before, it was "IDLE"

--
nosy: +KevinPurrone
versions: +Python 3.9 -Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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:

forward()
backward()
left()
right()

adds additional complexity. The natural starting point for these types of 
activities with kids is a transition from the physical world of devices such as 
the Bee-bot 
(https://www.tts-international.com/bee-bot-programmable-floor-robot/1015268.html)
 which have pre-defined lengths (i.e. 15cm) and turn angles (i.e. 90 degrees) 
so that they can focus primarily on sequencing and learning commands without 
the cognitive load of additional information.

It would be an ideal starting point for the forward(), backward(), left() and 
right() commands to be overloaded such that there is a default value. This 
reduces the cognitive load for young students, because it instead means they 
can focus on learning basic commands, sequencing and syntax without also 
needing to understand angles and relative lengths.

Suggestion would be to set a default value for movement (i.e. forward and 
backward) of 50, and default angles for turning (left and right) of 90 degrees.

This simple (and trivial) change would massively help thousands of students get 
started with Python, without in any way impacting existing use of Turtle.

--
components: Library (Lib)
messages: 386750
nosy: Bruce1979
priority: normal
severity: normal
status: open
title: TURTLE: Default values for basic Turtle commands
type: enhancement
versions: Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 the 
tutorial and make something up for the reference/lexical_analysis.rst (which 
needs  a section of soft keywords which are not in the PEP trilogy. Perhaps I 
can rescue something from PEP 622)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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) is defined as x,
PyObject_TypeCheck(ob, U(f(c)))
expands to
(Py_IS_TYPE(ob, f(c)) || ...)
but < and > aren’t treated as brackets by the preprocessor so Py_IS_TYPE is now 
invoked with 3 arguments instead of just 2, breaking module compilation.

As arguments are expected to be values, surrounding each with parentheses 
solves the problem. But there are many such macros so that’s not an one-line 
fix.

Note: the example is from PyGLM (simplified), it doesn’t compile on 3.9 due to 
this issue.

--
components: C API
messages: 386746
nosy: numberZero
priority: normal
severity: normal
status: open
title: Python macros don’t shield arguments
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 reproduce the 
issue.

--
components: +Library (Lib) -Windows

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 code page override in the source files. (Potentially a "#pragma 
code_page(1252)" might make more sense for our build, but I'm not sure, and I'm 
just as happy to got to UTF-8 if it doesn't break anything.)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 docstrings were unintentionally altered in 
recent AC updates. Docstrings should be restored.

connect() and enable_shared_cache() (latter is undocumented) are ok.

complete_statement() docs should be updated to reflect implementation.

--
title: sqlite3.create_function takes parameter named narg, not num_params -> 
Update sqlite3 docs and docstrings to reflect implementation

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 trust the output of the cherry_picker tool to 3.8.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 also says:
"While uClibc releases are on hold, you may use uClibc-ng"

libc part of platform tuple on uClibc-ng systems is expected to be "uclibc".

--
nosy: +Arfrever

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 in the same
> directory as the extension module.
>
> In 3.8+, the search path for the dependent DLLs of a normally imported
> extension module includes the following directories:
>
> * the loaded extension module's directory
> * the application directory (e.g. that of python.exe)
> * the user DLL search directories that get added by
>   SetDllDirectory() and AddDllDirectory(), such as with
>   os.add_dll_directory()
> * %SystemRoot%\System32
>
> Note that the above list does not include the current working directory or
> %PATH% directories.
>
> > It would be helpful if it listed the actual name of
> > the DLL that it cannot find.
>
> WinAPI LoadLibraryExW() doesn't have an out parameter to get the missing
> DLL or procedure name that caused the call to fail. All we have is the
> error code to report, such as ERROR_MOD_NOT_FOUND (126) and
> ERROR_PROC_NOT_FOUND (127). Using a debugger, you can see the name of the
> missing DLL or procedure if loader snaps are enabled for the application.
>
> --
> nosy: +eryksun
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 someone wants to prepare a patch, feel free. It'll probably impact 
publishing, so adding the RM for awareness.

--
nosy: +pablogsal

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 policies.

There's almost certainly nothing we can change that would prevent this, so 
we'll eventually close this issue as not a bug. But will leave it open for now 
to see if we can get you going.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 fully-formed yet. Could be good to loop them 
in for review and such, if so.

+nosy Carol since I'm pretty sure she's involved with that.

--
nosy: +willingc

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 https://www.python.org/dev/peps/pep-3126/ .

I'll close here.

--
nosy: +mark.dickinson
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 cases needed to form lists of length 0 or 1.)"

>>> import sys
>>> print(sys.version)
3.7.3 (default, Jul 25 2020, 13:03:44)
[GCC 8.3.0]
>>> test = [ "foo" "bar" ]
>>> type(test)

>>> print(test)
['foobar']
>>> import json
>>> json.dumps({ "foo": test })
'{"foo": ["foobar"]}'
>>>

In a complex dict structure this is an easy way to shoot yourself in the foot.

--
messages: 386725
nosy: mikesiegel
priority: normal
severity: normal
status: open
title: Lists without commas?

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 in NumPy, but when I was trying to cast it to a C 
variable, was having a hard time doing so without losing precision.

Please feel free to close the issue, hopefully will see long double support 
sometime in the future.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 the author and lead 
developer or musl libc).

I'm not sure its worth spend time on uClibc which does not seem to have any 
commits at all since 2015. https://git.uclibc.org/uClibc/log/

We will work on our side on buildbot with Alpine linux.

Thank you for being understanding.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
any extra precision that the C long double had.

If you're asking for Python to grow a new type of "float" with long double 
precision, that's a *much* bigger ask, and realistically it's not going to 
happen in the forseeable future.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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. 

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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? Are you writing C extensions for 
Python, or are you using ctypes?

--
nosy: +mark.dickinson

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 that one is autogenerated from the parser, so 
it's likely that no changes are required there. Correct me if I'm wrong here.

I'll set up a branch in github and add you as a collaborator so we can prepare 
a PR. I'll base the branch of Brandt's implementation PR. If you give me your 
github id I can add you as collaborator so we can work there.

--
nosy: +Daniel Moisset

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 or so.

--
nosy: +nirs

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 next steps here would be:
- document the platform triplet in regards of musl libc (and potentially other 
libcs like uclibc and embedded newlibc)
- buildbot with Alpine musl

Let's continue this on https://discuss.python.org/t/wheels-for-musl-alpine/7084

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 Conill from Alpine pointed out that:

Linux has not supported booting on traditional 31-bit s390 since
Linux 4.1 in 2015. If you can't boot s390 (not s390x) with a modern
kernel, it is absurd to demand that other projects support s390.

https://github.com/pyca/cryptography/issues/5771#issuecomment-775872483

I propose to remove check for __s390__ from configure.ac and configure.

We might also want to remove __alpha__, __hppa__, and __m68k__ at a later 
point. DEC hasn't been around for a long time.

--
components: Interpreter Core
messages: 386709
nosy: christian.heimes
priority: normal
severity: normal
status: open
title: Remove s390 support
versions: Python 3.10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 implementation, rather than the documentation.

It would be better to make these parameters positional only in the
first place, but now it's too late for such backward incompatible
change :-(

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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),
Lib/test/test_dbm.py:suites = [unittest.makeSuite(c) for c in classes]
Lib/test/test_io.py:suite = unittest.TestSuite([unittest.makeSuite(test) 
for test in tests])
Lib/test/test_threading_local.py:
suite.addTest(unittest.makeSuite(ThreadLocalTest))
Lib/test/test_threading_local.py:
suite.addTest(unittest.makeSuite(PyThreadingLocalTest))
Lib/test/test_zipimport.py:# item in a list sorted by name, like 
unittest.makeSuite() does.)
Lib/test/support/__init__.py:
suite.addTest(unittest.findTestCases(sys.modules[cls]))
Lib/test/support/__init__.py:suite.addTest(unittest.makeSuite(cls))
Lib/test/support/testresult.py:suite.addTest(unittest.makeSuite(TestTests))
Lib/test/test_email/torture_test.py:
suite.addTest(unittest.makeSuite(testclass))
Lib/test/test_math.py:suite.addTest(unittest.makeSuite(MathTests))
Lib/test/test_math.py:suite.addTest(unittest.makeSuite(IsCloseTests))

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 dependencies. In practice, it's too 
convenient to make the assumption that some Unix programs are available and 
work properly.

But PRs are welcome to reduce dependencies to external tools ;-)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

threading._make_invoke_excepthook logs threading.excepthook failure using 
sys.excepthook.

Note: Carl also suggested to add a way to invoke sys.unraisablehook explicitly, 
not only for testing purpose. It would help in some cases.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 a summarized version for non-technical users
whatsnew/3.10.rst

If I missed anything, please point them out :).

--
nosy: +kj

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: +avrahami.ben

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 removed from 
3.12 earliest.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 method overrides in queue
type: enhancement
versions: Python 3.10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 `long double`. Can you please tell me how I can 
do something like `PyFloat_FromLongDouble`

--
components: ctypes
messages: 386698
nosy: ganesh3597
priority: normal
severity: normal
status: open
title: How to use `long double` as a PyObject?
type: enhancement
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com