[issue45735] Promise the long-time truth that `args=list` works

2021-11-05 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
Removed message: https://bugs.python.org/msg405847

___
Python tracker 

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



[issue45735] Promise the long-time truth that `args=list` works

2021-11-05 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
keywords: +patch
pull_requests: +27691
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/29437

___
Python tracker 

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



[issue45735] Promise the long-time truth that `args=list` works

2021-11-05 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

I relied on this for many years.  So, yet it would be nice to guarantee it :-)

--
nosy: +rhettinger

___
Python tracker 

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



[issue45735] Promise the long-time truth that `args=list` works

2021-11-05 Thread Tim Peters


Change by Tim Peters :


--
title: Promise that the long-time truth that `args=list` works -> Promise the 
long-time truth that `args=list` works

___
Python tracker 

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



[issue45735] Promise that the long-time truth that `args=list` works

2021-11-05 Thread Tim Peters


New submission from Tim Peters :

A number of contexts allow specifying a tuple of arguments to be passed later 
to a function. The Thread constructor is a fine example, and happened to come 
up (again! for me) here today:

https://stackoverflow.com/questions/69858950/why-do-we-have-to-add-comma-in-args-in-python-multithreading/69859068

This often confuses especially newbies, because the function they intend to 
parallelize often takes only a single argument, and Python's syntax for a 
1-element tuple actually _requires_ parentheses in the context of an argument 
list, with a naked trailing comma:

t = threading.Thread(target=access, args=(thread_number,))

It "looks weird" to people.

I'm not suggesting to change that, but instead to officially bless the 
workaround I've seen very often in real code: use a list instead.

t = threading.Thread(target=access, args=[thread_number])

Nobody scratches their head over what that means.

CPython's implementations typically couldn't care less what kind of sequence is 
used, and none that I'm aware of verify that it's specifically a tuple. The 
implementations just go on to do some simple variation of

self.target(*self.args)

Tuple or list makes no real difference. I'm not really keen to immortalize the 
"any sequence type whatsoever that just happens to work" implementation 
behavior, but am keen to promise that a list specifically will work. A lot of 
code already relies on it.

--
assignee: docs@python
components: Documentation
keywords: easy
messages: 405846
nosy: docs@python, tim.peters
priority: low
severity: normal
stage: needs patch
status: open
title: Promise that the long-time truth that `args=list` works
type: behavior
versions: Python 3.11

___
Python tracker 

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



[issue45734] Spam

2021-11-05 Thread Zachary Ware


Change by Zachary Ware :


Removed file: https://bugs.python.org/file50427/logo-thumbnail.png

___
Python tracker 

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



[issue45734] Spam

2021-11-05 Thread Zachary Ware


Change by Zachary Ware :


Removed file: https://bugs.python.org/file50428/logo-thumbnail.png

___
Python tracker 

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



[issue45734] Spam

2021-11-05 Thread Zachary Ware


Change by Zachary Ware :


--
Removed message: https://bugs.python.org/msg405844

___
Python tracker 

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



[issue45734] Spam

2021-11-05 Thread Zachary Ware


Change by Zachary Ware :


--
Removed message: https://bugs.python.org/msg405845

___
Python tracker 

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



[issue45734] Spam

2021-11-05 Thread Zachary Ware


Change by Zachary Ware :


--
components:  -Build
nosy:  -skillovillaofficial
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
title: Data Science and Machine Learning Course -> Spam
type: performance -> 
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



[issue45734] Data Science and Machine Learning Course

2021-11-05 Thread Skillovilla Official


Skillovilla Official  added the comment:

- Data Science and Machine Learning Course 
Learn the syntactical application of python in data science. Get to grips with 
statistics, probability, and core mathematical concepts, which are the 
foundations of data science.
- https://www.skillovilla.com/tracks/data-science-and-machine-learning

--
Added file: https://bugs.python.org/file50428/logo-thumbnail.png

___
Python tracker 

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



[issue45734] Data Science and Machine Learning Course

2021-11-05 Thread Skillovilla Official


New submission from Skillovilla Official :

best data science courses , best data science courses online , data science 
beginners , data science certification , data science certification course, 
data science course fees , data science course with placement guarantee , data 
science full course, data science online classes, data science online course, 
data scientist course, data scientist course fees , 
https://www.skillovilla.com/tracks/data-science-and-machine-learning

--
components: Build
files: logo-thumbnail.png
messages: 405844
nosy: skillovillaofficial
priority: normal
severity: normal
status: open
title: Data Science and Machine Learning Course
type: performance
versions: Python 3.9
Added file: https://bugs.python.org/file50427/logo-thumbnail.png

___
Python tracker 

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



[issue45728] SharedMemory documentation: System V vs Posix

2021-11-05 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

'System V' is in the first line of the second paragraph of
https://docs.python.org/3/library/multiprocessing.shared_memory.html

Davin, git blame says you wrote this in Feb 2019.

--
nosy: +davin, pitrou, terry.reedy
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



[issue45722] documentation missing information on objects in submodules

2021-11-05 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

https://docs.python.org/3/reference/import.html#submodules

The point of the section is that even though the names 'for' and 'bar' are not 
directly importing into 'spam', they get attached to 'spam' any way as indirect 
effect of 'from'.  'Foo' and 'Bar are directly imported and so are also bound.  
How about 

"Executing the following puts a name binding to foo and bar (as well as Foo and 
Bar) in the spam module:

>>> spam.Foo

(This should be checked in case the .foo changes the report.)

I think one example showing both foo and Foo would be enough.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue45721] Improve error message for OS command entered at >>> prompt

2021-11-05 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Agreed. 'pip ...' not working is a recurring question on stackoverflow, usually 
from an IDLE user.  'python' is much rarer.  Note that IDLE's shell may be a 
beginner's only exposure to the word 'shell'.  The standard Windows shell is 
the Command Prompt console, so one has to say 'Command Prompt command'.  Would 
'bash command' work elsewhere?

--
nosy: +pablogsal, terry.reedy
title: Improve error message when python shell command is entered at the REPL 
prompt -> Improve error message for OS command entered at >>> prompt

___
Python tracker 

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



[issue45720] Remove shlwapi dependency on Windows

2021-11-05 Thread Steve Dower


Steve Dower  added the comment:


New changeset 5017306c8732b3ceda878db13088f8c2cf0c5e71 by Miss Islington (bot) 
in branch '3.9':
bpo-45720: Drop references to shlwapi.dll on Windows (GH-29417)
https://github.com/python/cpython/commit/5017306c8732b3ceda878db13088f8c2cf0c5e71


--

___
Python tracker 

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



[issue45720] Remove shlwapi dependency on Windows

2021-11-05 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



[issue45711] Simplify the interpreter's (type, val, tb) exception representation

2021-11-05 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Would there be any change at the Python level?

--
nosy: +terry.reedy
type:  -> performance

___
Python tracker 

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



[issue45710] Junction/symbolic folder access error on Windows 11

2021-11-05 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Eryk, does this or does this not look to you like a bug in CPython?  I don't 
know enough to tell.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue45733] importlib.abc.Traversable.name does not match

2021-11-05 Thread John-Mark Gurney


New submission from John-Mark Gurney :

The documentation for Traversable.name says it is a method, not a property:
https://docs.python.org/3/library/importlib.html#importlib.abc.Traversable.name

The issue is that with Python 3.9.7 (default, Nov  1 2021, 11:26:33), using a 
standard posix module (on MacOSX), it returns a string and not a method.  I 
have not tested on newer versions, but expect similar issues.  I have tagged 
the newer versions to get exposure, feel free to untag the versions that are 
confirmed to be unaffected by this bug.

```
$ python3.9
Python 3.9.7 (default, Nov  1 2021, 11:26:33) 
[Clang 7.0.2 (clang-700.1.81)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import mod

>>> ^D
```

This is with a module dir named `mod`, w/ an empty `res.txt` file, and the 
following in `__init__.py`:
```
from importlib import resources

r = resources.files(__name__) / 'res.txt'

print(repr(type(r.name)))
```

--
messages: 405837
nosy: jmg
priority: normal
severity: normal
status: open
title: importlib.abc.Traversable.name does not match
type: behavior
versions: Python 3.10, Python 3.11, Python 3.9

___
Python tracker 

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



[issue45699] AttributeError: 'list' object has no attribute 'find'

2021-11-05 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
resolution:  -> not a bug
stage:  -> resolved
status: pending -> closed

___
Python tracker 

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



[issue45720] Remove shlwapi dependency on Windows

2021-11-05 Thread Steve Dower


Steve Dower  added the comment:


New changeset 804ea41211b042fa20c3cd8c0457bbfa3873128a by Steve Dower in branch 
'3.10':
bpo-45720: Drop references to shlwapi.dll on Windows (GH-29417)
https://github.com/python/cpython/commit/804ea41211b042fa20c3cd8c0457bbfa3873128a


--

___
Python tracker 

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



[issue45720] Remove shlwapi dependency on Windows

2021-11-05 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 5.0 -> 6.0
pull_requests: +27690
pull_request: https://github.com/python/cpython/pull/29436

___
Python tracker 

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



[issue45730] ERROR: PyYAML-6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl is not a supported wheel on this platform

2021-11-05 Thread Joef Huang


Joef Huang  added the comment:

Thanks Eric. I created an issue in the pip repo.

--

___
Python tracker 

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



[issue45732] Update python.org Windows and macOS installers to use Tk 8.6.12

2021-11-05 Thread Ned Deily


New submission from Ned Deily :

https://sourceforge.net/p/tcl/mailman/message/37380142/

--
components: Build, Windows, macOS
messages: 405834
nosy: ned.deily, paul.moore, ronaldoussoren, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Update python.org Windows and macOS installers to use Tk 8.6.12
versions: Python 3.10, Python 3.11, Python 3.9

___
Python tracker 

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



[issue45720] Remove shlwapi dependency on Windows

2021-11-05 Thread Steve Dower


Change by Steve Dower :


--
pull_requests: +27689
pull_request: https://github.com/python/cpython/pull/29435

___
Python tracker 

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



[issue45720] Remove shlwapi dependency on Windows

2021-11-05 Thread Steve Dower


Steve Dower  added the comment:


New changeset a4774f42e35861c4bb16928cffb011c2d8a285ac by Steve Dower in branch 
'main':
bpo-45720: Drop references to shlwapi.dll on Windows (GH-29417)
https://github.com/python/cpython/commit/a4774f42e35861c4bb16928cffb011c2d8a285ac


--

___
Python tracker 

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



[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-11-05 Thread Ned Deily


Ned Deily  added the comment:

Thanks everyone, especially Marc! python.org macOS installers for 3.9.8, 
3.10.0, and 3.11.0a2 with patched versions of Tk to avoid the filedialog 
problems on macOS 12 Monterey are now released and available for download. We 
can now close this issue and move on :)

https://discuss.python.org/t/python-3-9-8-and-3-11-0a2-are-now-available/11763

--
status: open -> closed

___
Python tracker 

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



[issue45720] Remove shlwapi dependency on Windows

2021-11-05 Thread Eryk Sun


Eryk Sun  added the comment:

> I also don't actually see gdi32 being transitively loaded as
> claimed in the Twitter thread, even back to 3.8. So presumably
> there's something else going on to cause that issue.

Since Windows XP, shlwapi.dll has increasingly made use of delay loading, but 
up to Windows 8.1 it was still immediately loading user32.dll and gdi32.dll. In 
Windows 10, shlwapi.dll finally made them delay loaded dependencies. Also, in 
Windows 10, PathIsRelativeW is forwarded to the implementation in 
kernelbase.dll, not that it matters from the end user's perspective since it's 
not in an API set.

Regarding user32.dll, there's still an issue with ssl, hashlib, winsound, and 
ctypes not delay loading it, or DLLs that directly depend on it such as 
ole32.dll and oleaut32.dll. In most use cases these DLLs would never be loaded. 

When user32.dll loads, the process and the loading thread are converted to GUI 
versions, i.e. they're extended in the kernel with the window manager's 
Win32Process and Win32Thread structures, and the process connects to a window 
station and desktop (e.g. r"WinSta0\Default"). One concern with converting to a 
GUI process is that the system doesn't send CTRL_LOGOFF_EVENT and 
CTRL_SHUTDOWN_EVENT console events to GUI processes. Thus a console script 
can't handle those events with a simple ctypes-based handler as long as 
importing ctypes always loads user32.dll.

--

___
Python tracker 

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



[issue45730] ERROR: PyYAML-6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl is not a supported wheel on this platform

2021-11-05 Thread Eric V. Smith


Eric V. Smith  added the comment:

This is really a question for pip, which is a third party product (despite a 
version of it shipping with core python). You can find their issue tracker at 
https://pip.pypa.io/en/stable/

When reporting the bug there, you'll need to provide information about which 
python you're using, how you installed it, and which version of pip you're 
using. And probably also the verbose output from pip.

--
nosy: +eric.smith

___
Python tracker 

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



[issue43158] uuid won't build when libuuid is installed in a non-standard place

2021-11-05 Thread Christian Heimes


Christian Heimes  added the comment:


New changeset 9b0f45c069863517a24239da301a1bf1697ac2e7 by Christian Heimes in 
branch 'main':
bpo-43158: Regenerate configure again (GH-29433)
https://github.com/python/cpython/commit/9b0f45c069863517a24239da301a1bf1697ac2e7


--

___
Python tracker 

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



[issue45731] Handle --enable-loadable-sqlite-extensions in configure

2021-11-05 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


--
nosy: +erlendaasland

___
Python tracker 

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



[issue45730] ERROR: PyYAML-6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl is not a supported wheel on this platform

2021-11-05 Thread Joef Huang


Joef Huang  added the comment:

Thanks Christian. But why the python installer suddenly started using cp39 of 
the yaml wheel? It used to be using cp36 of the wheel which was working fine. 
Trying to gather more information so that I can talk to the 3rd party about 
this.

--

___
Python tracker 

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



[issue45675] pkgutil.get_data() doesn't add subpackages to parent packages when importing

2021-11-05 Thread Brett Cannon


Brett Cannon  added the comment:

FYI the long-term plan is to deprecate pkgutil, so I would use newer APIs as 
provided by importlib.

--

___
Python tracker 

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



[issue45731] Handle --enable-loadable-sqlite-extensions in configure

2021-11-05 Thread Christian Heimes


Change by Christian Heimes :


--
keywords: +patch
pull_requests: +27688
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/29434

___
Python tracker 

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



[issue45701] Add tuple tests to `functools.lru_cache`

2021-11-05 Thread Raymond Hettinger


Change by Raymond Hettinger :


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



[issue45731] Handle --enable-loadable-sqlite-extensions in configure

2021-11-05 Thread Christian Heimes


New submission from Christian Heimes :

The --enable-loadable-sqlite-extensions configure option is currently handled 
by a check in setup.py. The approach is incompatible with Modules/Setup and 
yields incorrect results for --enable-loadable-sqlite-extensions=no. Instead of 
reading the value from CONFIG_ARGS, configure should add an AC_DEFINE to 
pyconfig.h

--
assignee: christian.heimes
components: Build
messages: 405826
nosy: christian.heimes
priority: normal
severity: normal
status: open
title: Handle --enable-loadable-sqlite-extensions in configure
type: enhancement
versions: Python 3.11

___
Python tracker 

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



[issue45679] typing.Literal[True] is implicitly converted to typing.Literal[1]

2021-11-05 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset 60b5333fa936a7e7f078a82e0fa3752cc9b6c5fb by Nikita Sobolev in 
branch 'main':
bpo-45679: add `tuple` tests with `lru_cache` to `test_functools` (GH-29339)
https://github.com/python/cpython/commit/60b5333fa936a7e7f078a82e0fa3752cc9b6c5fb


--

___
Python tracker 

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



[issue24319] Crash during "make coverage-report"

2021-11-05 Thread Irit Katriel


Irit Katriel  added the comment:

Please reopen or create a new issue if you see it on a current python version.

--
resolution:  -> out of date
stage:  -> resolved
status: pending -> closed

___
Python tracker 

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



[issue45730] ERROR: PyYAML-6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl is not a supported wheel on this platform

2021-11-05 Thread Christian Heimes


Christian Heimes  added the comment:

This is the wrong place to report bugs with third party packages or wheels. The 
Python bug tracker is only for core development. Please use one of the 
community channels to get assistance, https://www.python.org/community/

--
nosy: +christian.heimes
resolution:  -> third party
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



[issue36281] OSError: handle is closed for ProcessPoolExecutor and run_in_executor

2021-11-05 Thread Irit Katriel


Change by Irit Katriel :


--
stage:  -> resolved
status: pending -> closed

___
Python tracker 

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



[issue22678] An OSError subclass for "no space left on device" would be nice: NoSpaceError

2021-11-05 Thread Irit Katriel


Change by Irit Katriel :


--
resolution:  -> rejected
stage: patch review -> resolved
status: pending -> closed

___
Python tracker 

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



[issue23449] Fatal errors rebuilding 3.5 from Visual Studio Windows 8.1 64 bit

2021-11-05 Thread Irit Katriel


Change by Irit Katriel :


--
stage:  -> resolved
status: pending -> closed

___
Python tracker 

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



[issue32291] Value error for string shared memory in multiprocessing

2021-11-05 Thread Irit Katriel


Change by Irit Katriel :


--
stage:  -> resolved
status: pending -> closed

___
Python tracker 

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



[issue43158] uuid won't build when libuuid is installed in a non-standard place

2021-11-05 Thread Christian Heimes


Change by Christian Heimes :


--
pull_requests: +27687
status: pending -> open
pull_request: https://github.com/python/cpython/pull/29433

___
Python tracker 

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



[issue45729] [doc] "history and license" link has wrong target

2021-11-05 Thread Alex Waygood

Alex Waygood  added the comment:

@Éric: I personally found it difficult to immediately understand what the issue 
was about when reading only the title on the BPO homepage, and thought the 
change in title would help clarify, having seen other documentation issues 
marked similarly on the tracker.

--

___
Python tracker 

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



[issue45730] ERROR: PyYAML-6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl is not a supported wheel on this platform

2021-11-05 Thread Joef Huang


New submission from Joef Huang :

We have been using this command to install Python to our container:
RUN pip3 install -U pip && \
pip install wheel && \
pip wheel -w /tmp/wheels 

It started failing today with the following error:

ERROR: 
PyYAML-6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
 is not a supported wheel on this platform.

It turned out the install now downloads the cp39 wheel: 

12:46:14  Collecting pyyaml>=3.12
12:46:14Downloading 
PyYAML-6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
 (661 kB)


When this worked a couple of days ago, the install downloaded a different wheel:

15:03:12  Collecting pyyaml>=3.12
15:03:12Downloading 
PyYAML-6.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
 (603 kB)


Why does the python install download the cp39 wheel now?

--
components: Installation
messages: 405821
nosy: joefh
priority: normal
severity: normal
status: open
title: ERROR: 
PyYAML-6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
 is not a supported wheel on this platform
versions: Python 3.6

___
Python tracker 

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



[issue45729] [doc] "history and license" link has wrong target

2021-11-05 Thread Éric Araujo

Éric Araujo  added the comment:

Tracked to https://github.com/python/python-docs-theme/issues/89

AlexWaygood: can I ask why add pseudo-tags to the title field when we do have 
structured data (components set to doc) on this tracker?  Is it a new practice?

--
nosy: +AlexWaygood

___
Python tracker 

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



[issue45684] `functools.singledispatchmethod` does not define `__class_getitem__`

2021-11-05 Thread Alex Waygood


Alex Waygood  added the comment:

To clarify why this is an issue:

It's probably quite improbable that anybody would ever need to use 
`singledispatchmethod` in a type annotation. But, if they do, they'll find 
themselves in an impossible situation if they're using mypy with the `--strict` 
setting. If you're using `--strict` (as I always do), mypy will complain if you 
leave unparameterised any class that is marked as a generic in typeshed. But if 
you try to parameterise `singledispatchmethod`, and you're not using `from 
__future__ import annotations`, your code will fail at runtime.

It would be better if the cpython source were changed to add 
`__class_getitem__` to `singledispatchmethod`, rather than making the class no 
longer generic in typeshed. This is because being able to parameterise classes 
gives mypy much more information to work with, giving it the ability to provide 
far more fine-grained analysis of your code.

Here is a minimal reproducible example of the error mypy will give: 
https://mypy-play.net/?mypy=latest=3.10=show-error-codes%2Cstrict

--

___
Python tracker 

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



[issue45729] [doc] "history and license" link has wrong target

2021-11-05 Thread Alex Waygood


Change by Alex Waygood :


--
title: "history and license" link has wrong target -> [doc] "history and 
license" link has wrong target

___
Python tracker 

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



[issue45729] "history and license" link has wrong target

2021-11-05 Thread Éric Araujo

Éric Araujo  added the comment:

It happens on all pages for all versions, because the link is empty.
3.8 doesn’t have that line so doesn’t show the bug.  I am trying to find where 
that is defined.  Strangely, I don’t find results looking for `please donate` 
which is the line below…

--
nosy: +eric.araujo
type:  -> behavior
versions: +Python 3.11, Python 3.9

___
Python tracker 

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



[issue45699] AttributeError: 'list' object has no attribute 'find'

2021-11-05 Thread Éric Araujo

Éric Araujo  added the comment:

Also note that Python 3.6 only receives security updates now.  Does your 
problem still happen with a current version?

--
components:  -Parser
nosy: +eric.araujo
status: open -> pending
type: behavior -> 

___
Python tracker 

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



[issue45512] [sqlite3] simplify "isolation level"

2021-11-05 Thread Dong-hee Na


Dong-hee Na  added the comment:

Hmm, now I understood what you intended,
The code was hard to read without knowing the condition of the begin_statement.
Would this be a trade-off in terms of code readability?

--
nosy: +corona10

___
Python tracker 

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



[issue45630] Dump CodeObject API for debugging

2021-11-05 Thread penguin_wwy


penguin_wwy <940375...@qq.com> added the comment:

I hope that this function can be used in the _PyEval_EvalFrameDefault(or other 
customized eval_frame), for example, after calling the _Py_Quicken to confirm 
whether the instruction is modified correctly 
https://github.com/python/cpython/pull/29243/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de

--

___
Python tracker 

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



[issue45675] pkgutil.get_data() doesn't add subpackages to parent packages when importing

2021-11-05 Thread Éric Araujo

Change by Éric Araujo :


--
nosy: +brett.cannon, eric.snow, ncoghlan
versions: +Python 3.11 -Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

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



[issue45704] string.Formatter.parse does not handle auto-numbered positional fields

2021-11-05 Thread Eric V. Smith


Eric V. Smith  added the comment:

That is, return field_name as an int if it's an int, otherwise as a string.

--

___
Python tracker 

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



[issue38323] asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)

2021-11-05 Thread William Fisher


William Fisher  added the comment:

asyncio.MultiLoopChildWatcher has two problems that create a race condition.

1. The SIGCHLD signal handler does not guard against interruption/re-entry.
2. The SIGCHLD signal handler can interrupt add_child_handler's 
`self._do_waitpid(pid)`.


Symptoms:

Log messages that look like this:

1634935451.761 WARNING Unknown child process pid 8747, will report returncode 
255
...
1634935451.762 WARNING Child watcher got an unexpected pid: 8747
Traceback (most recent call last):
  File 
"/Users/runner/hostedtoolcache/Python/3.9.7/x64/lib/python3.9/asyncio/unix_events.py",
 line 1306, in _do_waitpid
loop, callback, args = self._callbacks.pop(pid)
KeyError: 8747


Background:

I've been working on a library to make calling asyncio subprocesses more 
convenient. As part of my testing, I've been stress testing asyncio using 
different child watcher policies. My CI build runs more than 200 tests each on 
macOS, Linux and FreeBSD. I've noticed a small percentage of sporadic failures 
using MultiLoopChildWatcher.

My understanding of Python signal functions is that:

1. Upon receipt of a signal, the native "C" signal handler sets a flag that 
indicates the signal arrived.
2. The main thread checks the signal flags after each bytecode instruction. If 
a signal flag is set, Python saves the call stack, runs the signal handler on 
the main thread immediately, then pops the stack when it returns (assuming no 
exception raised by signal handler).
3. If you are in the middle of a signal handler running on the main thread and 
Python detects another signal flag, your signal handler can be interrupted.
4. Stacked signal handlers run in LIFO order. The last one that enters will run 
to completion without interruption.


Explanation:

I wrapped MultiLoopChildWatcher's sig_chld function in a decorator that logs 
when it is entered and exited. This clearly shows that _sig_chld is being 
re-entered. In the following log snippet, I'm running two commands in a 
pipeline "tr | cat".

1634935451.743 DEBUG process '/usr/bin/tr' created: pid 8747
...
1634935451.746 DEBUG process '/bin/cat' created: pid 8748
...
1634935451.761 DEBUG enter '_sig_chld' 20
1634935451.761 DEBUG enter '_sig_chld' 20
1634935451.761 WARNING Unknown child process pid 8747, will report returncode 
255
1634935451.762 DEBUG process 8748 exited with returncode 0
1634935451.762 DEBUG exit '_sig_chld' 20
1634935451.762 WARNING Child watcher got an unexpected pid: 8747
Traceback (most recent call last):
  File 
"/Users/runner/hostedtoolcache/Python/3.9.7/x64/lib/python3.9/asyncio/unix_events.py",
 line 1306, in _do_waitpid
loop, callback, args = self._callbacks.pop(pid)
KeyError: 8747
1634935451.763 WARNING Unknown child process pid 8748, will report returncode 
255
1634935451.763 WARNING Child watcher got an unexpected pid: 8748
Traceback (most recent call last):
  File 
"/Users/runner/hostedtoolcache/Python/3.9.7/x64/lib/python3.9/asyncio/unix_events.py",
 line 1306, in _do_waitpid
loop, callback, args = self._callbacks.pop(pid)
KeyError: 8748
1634935451.763 DEBUG exit '_sig_chld' 20


Here is the breakdown of what happens:

1. Pid 8747 exits and we enter _sig_chld #1.
2. sig_chld #1 calls os.waitpid which gives (pid, status) = (8747, 0).
3. Before sig_chld #1 has a chance to call `self._callbacks.pop(pid)`, it is 
interrupted.
4. sig_chld #2 calls os.waitpid for pid 8747. We get a ChildProcessError and 
then "Unknown child process pid 8747, will report returncode 255"
5. sig_chld #2 invokes the callback for pid 8747 saying the returncode=255.
6. sig_chld #2 continues to completion. It reaps pid 8748 normally.
7. sig_chld #1 picks up where it left off. We get an error when we try to pop 
the callback for 8747.
8. sig_chld #1 calls os.waitpid for pid 8748. This gives us failure messages 
because it was done by sig_chld #2.

The issue of interruption can also happen in the case of running a single 
process. If the _sig_chld interrupts the call to `self._do_waitpid(pid)` in 
add_child_watcher, a similar interleaving can occur.


Work-Around:

In my tests, I patched MultiLoopChildWatcher and so far, it appears to be more 
reliable. In add_child_handler, I call raise_signal(SIGCHLD) so that all the 
work is done in the signal handler.


class PatchedMultiLoopChildWatcher(asyncio.MultiLoopChildWatcher):
"Test race condition fixes in MultiLoopChildWatcher."

def add_child_handler(self, pid, callback, *args):
loop = asyncio.get_running_loop()
self._callbacks[pid] = (loop, callback, args)

# Prevent a race condition in case signal was delivered before
# callback added.
signal.raise_signal(signal.SIGCHLD)

@_serialize
def _sig_chld(self, signum, frame):
super()._sig_chld(signum, frame)


_serialize is a decorator that looks like this:


def _serialize(func):
"""Decorator to serialize a non-reentrant signal function.
If one client is already in the critical 

[issue45718] asyncio: MultiLoopWatcher has a race condition (Proposed work-around)

2021-11-05 Thread William Fisher


William Fisher  added the comment:

Thanks, I will comment on bpo-38323 directly.

--
resolution:  -> duplicate
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



[issue45243] [sqlite3] add support for changing connection limits

2021-11-05 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 3d42cd9461e60c7427f3793f640cd975fbd99289 by Erlend Egeberg 
Aasland in branch 'main':
bpo-45243: Use connection limits to simplify `sqlite3` tests (GH-29356)
https://github.com/python/cpython/commit/3d42cd9461e60c7427f3793f640cd975fbd99289


--

___
Python tracker 

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



[issue45726] Documentation for `@singledispatch` and `@singledispatchmethod` could be improved

2021-11-05 Thread Alex Waygood

Alex Waygood  added the comment:

Thanks for reviewing and merging, Łukasz -- appreciate it!

--

___
Python tracker 

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



[issue45726] Documentation for `@singledispatch` and `@singledispatchmethod` could be improved

2021-11-05 Thread Łukasz Langa

Łukasz Langa  added the comment:

Thanks, Alex! ✨  ✨  

I'm not a native speaker so your review of my language use was helpful 邏

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



[issue41122] functools.singledispatchfunction has confusing error message if no positional arguments are passed in

2021-11-05 Thread Alex Waygood


Change by Alex Waygood :


--
nosy: +AlexWaygood, lukasz.langa, rhettinger
versions: +Python 3.10, Python 3.11, 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



[issue45726] Documentation for `@singledispatch` and `@singledispatchmethod` could be improved

2021-11-05 Thread miss-islington


Change by miss-islington :


--
pull_requests: +27686
pull_request: https://github.com/python/cpython/pull/29431

___
Python tracker 

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



[issue45726] Documentation for `@singledispatch` and `@singledispatchmethod` could be improved

2021-11-05 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 4.0 -> 5.0
pull_requests: +27685
pull_request: https://github.com/python/cpython/pull/29430

___
Python tracker 

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



[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-11-05 Thread Marc Culler


Marc Culler  added the comment:

Well, not exactly ...

culler@abner ~ % export SYSTEM_VERSION_COMPAT=1
culler@abner ~ % sw_vers
ProductName:Mac OS X
ProductVersion: 10.16
BuildVersion:   20G224
culler@abner ~ % export SYSTEM_VERSION_COMPAT=0
culler@abner ~ % sw_vers   
ProductName:macOS
ProductVersion: 11.6.1
BuildVersion:   20G224

But that would only be helpful to me if the operatingSystemVersion
property of an NSProcessInfo object also depended on that environment
variable.  Feel free to check the docs for an answer to that question:

https://developer.apple.com/documentation/foundation/nsprocessinfo/1410906-operatingsystemversion

--

___
Python tracker 

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



[issue45729] "history and license" link has wrong target

2021-11-05 Thread Jacob Lifshay


New submission from Jacob Lifshay :

https://docs.python.org/3.10/library/csv.html
at the bottom the "history and license" link just links back to csv.html, 
rather than the correct target.

--
assignee: docs@python
components: Documentation
messages: 405807
nosy: docs@python, programmerjake
priority: normal
severity: normal
status: open
title: "history and license" link has wrong target
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



[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-11-05 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

> Where do you think that "feature" is documented?

I'd have to check, but I didn't learn this from Twitter, although it wouldn't 
surprise me if I learned this from a WWDC talk.

The beta for Big Sur never identified itself as 10.16 other than through this 
feature.  I guess Apple determined that too many applications only looked at 
the minor version determine if the current system is new enough. 

Applications compiled with/linked against a 11.0 or 12.0 SDK will always just 
see the real system version.

Note that this also affects programs just opening the SystemVersion.plist file, 
that will get substituted by an alternative version when the opening process 
links against an older SDK.  Calling sw_vers and parsing the output does return 
the right version though.

--

___
Python tracker 

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



[issue45724] Segmentation fault

2021-11-05 Thread ghost_in _the_wires


ghost_in _the_wires  added the comment:

Oh I see. Thanks for your response! I thought that it's something wrong with 
python on arm64.

--

___
Python tracker 

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



[issue45678] `functools.singledispatchmethod` is missing tests (and is buggy in 3.9)

2021-11-05 Thread Łukasz Langa

Łukasz Langa  added the comment:

Thanks, Alex! ✨  ✨

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



[issue45678] `functools.singledispatchmethod` is missing tests (and is buggy in 3.9)

2021-11-05 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset bcb236c19e4ddf5ccf0fc45ab541eabf1f757a64 by Miss Islington (bot) 
in branch '3.10':
bpo-45678: Add more ``singledispatchmethod`` tests (GH-29412) (GH-29424)
https://github.com/python/cpython/commit/bcb236c19e4ddf5ccf0fc45ab541eabf1f757a64


--

___
Python tracker 

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



[issue45723] Improve and simplify configure.ac checks

2021-11-05 Thread Christian Heimes


Change by Christian Heimes :


--
keywords: +patch
pull_requests: +27684
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/29429

___
Python tracker 

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



[issue45704] string.Formatter.parse does not handle auto-numbered positional fields

2021-11-05 Thread Eric V. Smith


Eric V. Smith  added the comment:

I think your code is rational. But since string.Formatter gets such little use, 
I'm not sure it's worth adding this to the stdlib. On the other hand, it could 
be used internal to string.Formatter.

We'd need to pick a better name, though. And maybe it should return the 
field_name as an int.

--

___
Python tracker 

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



[issue45630] Dump CodeObject API for debugging

2021-11-05 Thread Guido van Rossum


Guido van Rossum  added the comment:

Why not propose a slight extension to the dis module?

--

___
Python tracker 

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



[issue45718] asyncio: MultiLoopWatcher has a race condition (Proposed work-around)

2021-11-05 Thread Chris Jerdonek


Chris Jerdonek  added the comment:

Since issue 38323 is still open, I think you should just comment on that 
instead of creating a new issue.

--
nosy: +chris.jerdonek

___
Python tracker 

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



[issue45723] Improve and simplify configure.ac checks

2021-11-05 Thread Christian Heimes


Christian Heimes  added the comment:

The first PR adds helper macros, AC_CACHE_CHECK() [1] and AS_VAR_IF() [2]. It 
also unified internal variables to use format "ac_cv_func_$funcname", 
"ac_cv_func_lib_$library_$funcname", or "ac_cv_header_$headername_h". "ac_cv" 
stands for autoconf cached value.

AC_CACHE_CHECK() replaces AC_MSG_CHECKING() and AC_MSG_RESULT(). The syntax is 
AC_CACHE_CHECK([text], [cache variable], [body]) where body is only excecuted 
when the cache variable is not set. The body has to set the cache variable to 
yes or no. Any output and AC_DEFINE must occur outside the body.

AS_VAR_IF() is a nicer way to write if test $variable = value; then; fi.

[1] 
https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Caching-Results.html#Caching-Results
[2] 
https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Polymorphic-Variables.html

--

___
Python tracker 

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



[issue45716] Confusing parsing error message when trying to use True as keyword argument

2021-11-05 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
pull_requests: +27683
pull_request: https://github.com/python/cpython/pull/29428

___
Python tracker 

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



[issue45716] Confusing parsing error message when trying to use True as keyword argument

2021-11-05 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



[issue45716] Confusing parsing error message when trying to use True as keyword argument

2021-11-05 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset e2d65630f36712dbdbf7711520c985c526a5cc25 by Pablo Galindo Salgado 
in branch 'main':
bpo-45716: Improve the error message when using True/False/None as keywords in 
a call (GH-29413)
https://github.com/python/cpython/commit/e2d65630f36712dbdbf7711520c985c526a5cc25


--

___
Python tracker 

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



[issue45728] SharedMemory documentation: System V vs Posix

2021-11-05 Thread jkrupp

New submission from jkrupp :

Hi,

the documentation for the shared_memory module states that "shared memory 
refers to “System V style” shared memory". However, I believe it might be 
clearer to talk about "POSIX style shared memory" here instead.

Primed by the "System V style"-comment, I had expected that shared memory 
blocks could be identified through a numeric ID (as used by the system V shared 
memory APIs `shmget`, `shmat`, ...). After looking at the implementation it 
became clear though, that the newer POSIX-API (`shm_open`, `shm_unlink`, ...) 
is used, which explains why shared memory blocks have a *name* instead.

Technically, the documentation only uses "System V style" to distinguish it 
from "distributed shared memory", and further states that "[it] is not 
necessarily implemented explicitly as such". Yet, this distinction is 
particularly relevant if memory is to be shared with other (non-python!) 
processes (although placement of shared_memory in the multiprocessing package 
might indicate that that is not one of its expected use-cases...)

--
assignee: docs@python
components: Documentation
messages: 405797
nosy: docs@python, jkrupp
priority: normal
severity: normal
status: open
title: SharedMemory documentation: System V vs Posix
type: enhancement
versions: Python 3.10, Python 3.11, 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



[issue27313] test case failures in test_widgets.ComboboxTest.of test_ttk_guionly on OS X with Cocoa Tk 8.5.18

2021-11-05 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +27682
pull_request: https://github.com/python/cpython/pull/29425

___
Python tracker 

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



[issue45160] ttk.OptionMenu radiobuttons change variable value twice

2021-11-05 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +27681
pull_request: https://github.com/python/cpython/pull/29425

___
Python tracker 

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



[issue27313] test case failures in test_widgets.ComboboxTest.of test_ttk_guionly on OS X with Cocoa Tk 8.5.18

2021-11-05 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests:  -27678

___
Python tracker 

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



[issue45704] string.Formatter.parse does not handle auto-numbered positional fields

2021-11-05 Thread Sascha Desch


Sascha Desch  added the comment:

That definition of `.parse()` definitely makes sense. Do you then think this is 
out of scope for `Formatter` in general or just for `.parse()`?. Just for 
reference, this is what I currently use to get automatic numbering to work for 
my use case. 

```
def parse_command_template(format_string):

auto_numbering_error = ValueError(
'cannot switch from automatic field numbering to manual field 
specification')

index = 0
auto_numbering = None

for literal_text, field_name, spec, conversion in 
Formatter().parse(format_string):
if field_name is not None:
if field_name.isdigit():
if auto_numbering is True:
raise auto_numbering_error
auto_numbering = False

if field_name == '':
if auto_numbering is False:
raise auto_numbering_error
auto_numbering = True
field_name = str(index)
index += 1

yield literal_text, field_name, spec, conversion
```

--

___
Python tracker 

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



[issue45708] PEP 515-style formatting with underscores does not seem to work for Decimal

2021-11-05 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

This is a duplicate of issue43624. It was also discussed in Discuss.

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Add underscore as a decimal separator for string formatting

___
Python tracker 

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



[issue45727] Parse error when missing commas is inconsistent

2021-11-05 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
keywords: +patch
pull_requests: +27680
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/29427

___
Python tracker 

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



[issue45727] Parse error when missing commas is inconsistent

2021-11-05 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

>(I don't know if these nit-picky parsing issues are too annoying, if they are 
>please tell me to stop filing them).

Don't worry, I think is great to discuss these cases. If there are too many, 
then maybe it will take a while to correct, but please, don't stop :)

> That looks potentially quite confusing to me?

I agree is unfortunate that is inconsistent, but unfortunately, this is going 
to be a bit of a pain because the way the expression rule is reached. I will 
try to see if we can easily fix this without having to restructure a bunch of 
the grammar

--

___
Python tracker 

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



[issue45724] Segmentation fault

2021-11-05 Thread Eric V. Smith


Eric V. Smith  added the comment:

I assume this is a problem with the third party library, not with Python 
itself. If so, you'll have to contact the authors of OneForAll.

But if you can create a small program that demonstrates the problem, maybe 
someone here could take a look at it. As it is, you've given us no way to 
duplicate the problem, so we can't help.

--
nosy: +eric.smith

___
Python tracker 

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



[issue45727] Parse error when missing commas is inconsistent

2021-11-05 Thread Alex Waygood


Change by Alex Waygood :


--
nosy: +AlexWaygood

___
Python tracker 

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



[issue45727] Parse error when missing commas is inconsistent

2021-11-05 Thread Carl Friedrich Bolz-Tereick


New submission from Carl Friedrich Bolz-Tereick :

I found following inconsistency in the error message when there's a missing 
comma (it behaves that way both on main and 3.10).

Here's what happens with numbers, as expected:

Python 3.11.0a1+ (heads/main:32f55d1a5d, Nov  5 2021, 13:18:52) [GCC 11.2.0] on 
linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 1 2 3 4
  File "", line 1
1 2 3 4
^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?

But with names the error is further right in the lines:

>>> a b c d
  File "", line 1
a b c d
  ^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
>>> a b c d e f g
  File "", line 1
a b c d e f g
  ^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?

That looks potentially quite confusing to me?

(I don't know if these nit-picky parsing issues are too annoying, if they are 
please tell me to stop filing them).

--
messages: 405792
nosy: Carl.Friedrich.Bolz, pablogsal
priority: normal
severity: normal
status: open
title: Parse error when missing commas is inconsistent
versions: Python 3.11

___
Python tracker 

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



[issue45708] PEP 515-style formatting with underscores does not seem to work for Decimal

2021-11-05 Thread Sander Bollen


Sander Bollen  added the comment:

Thanks for looking into this so swiftly!

As a user, I have found PEP515 to be worded a little ambiguously with regards 
to formatting using underscores as thousands separators. While it enumerates a 
collection of types as far as the constructor is concerned, it does not do so 
for formatting. Instead, it says to support `_` as thousands separator for 
formatting wherever `,` is allowed. Since `,` does work for Decimal, I have 
taken that to imply `_` should work for Decimal as well.

--

___
Python tracker 

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



[issue45677] [doc] improve sqlite3 docs

2021-11-05 Thread Erlend E. Aasland


Erlend E. Aasland  added the comment:

See also discussion on Discourse: 
https://discuss.python.org/t/avoid-addressing-the-user-directly-when-writing-docs/11671

--

___
Python tracker 

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



[issue45615] Missing test for type of error when printing traceback for non-exception

2021-11-05 Thread Nikita Sobolev

Nikita Sobolev  added the comment:

Thanks!

пт, 5 нояб. 2021 г. в 12:47, Irit Katriel :

>
> Irit Katriel  added the comment:
>
> It's been merged now, so go ahead.
>
> Note that there are two traceback printing functions - in the interpreter
> in traceback.c and in the library in traceback.py. They are expected to
> work the same as much as possible.
>
> If you add a test to BaseExceptionReportingTests, it will test both
> versions (see the PyExcReportingTests and PyExcReportingTests subclasses).
>
> --
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue45726] Documentation for `@singledispatch` and `@singledispatchmethod` could be improved

2021-11-05 Thread Alex Waygood


Change by Alex Waygood :


--
keywords: +patch
pull_requests: +27679
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/29426

___
Python tracker 

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



[issue45726] Documentation for `@singledispatch` and `@singledispatchmethod` could be improved

2021-11-05 Thread Alex Waygood


New submission from Alex Waygood :

The documentation for `functools.singledispatch` and 
`functools.singledispatchmethod` contains a few small grammar mistakes and 
instances of slightly inelegant writing. PR to follow shortly.

--
assignee: docs@python
components: Documentation
messages: 405788
nosy: AlexWaygood, docs@python, lukasz.langa, rhettinger
priority: normal
severity: normal
status: open
title: Documentation for `@singledispatch` and `@singledispatchmethod` could be 
improved
type: enhancement
versions: Python 3.10, Python 3.11, Python 3.9

___
Python tracker 

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



[issue45721] Improve error message when python shell command is entered at the REPL prompt

2021-11-05 Thread Alex Waygood


Alex Waygood  added the comment:

+1 for adding r"pip\s" as a special case as well. A few months ago, I was 
trying to (remotely) help a beginner friend debug why his attempt to install a 
library wasn't working. It took me ages before I realised he was entering it 
into the interactive REPL rather than a terminal window.

--
nosy: +AlexWaygood

___
Python tracker 

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



[issue45724] Segmentation fault

2021-11-05 Thread ghost_in _the_wires


ghost_in _the_wires  added the comment:

When trying to run this tool https://github.com/shmilylty/OneForAll in 
Parallels Desktop virtual environment (Ubuntu 20.0.4 aarch64) I've got 
segmentation fault in ssl, http client and threading. Full log in file

--

___
Python tracker 

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



[issue45724] Segmentation fault

2021-11-05 Thread ghost_in _the_wires


New submission from ghost_in _the_wires :

Test

--

___
Python tracker 

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



[issue45725] test_freeze doesn't clean up after itself

2021-11-05 Thread Mark Shannon


New submission from Mark Shannon :

test_tools leaves a copy of the source in Tools/freeze/test/outdir/

which messes up grep and other tools used for searching the source.

--
components: Tests
messages: 405784
nosy: Mark.Shannon, eric.snow
priority: normal
severity: normal
status: open
title: test_freeze doesn't clean up after itself
versions: Python 3.11

___
Python tracker 

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



[issue45724] Segmentation fault

2021-11-05 Thread ghost_in _the_wires


Change by ghost_in _the_wires :


--
files: log.txt
nosy: ghost.in.the.wires
priority: normal
severity: normal
status: open
title: Segmentation fault
versions: Python 3.10
Added file: https://bugs.python.org/file50426/log.txt

___
Python tracker 

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



[issue27313] test case failures in test_widgets.ComboboxTest.of test_ttk_guionly on OS X with Cocoa Tk 8.5.18

2021-11-05 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +27678
pull_request: https://github.com/python/cpython/pull/29425

___
Python tracker 

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



  1   2   >