[issue46175] Zero argument super() does not function properly inside generator expressions

2021-12-25 Thread TobiasHT


TobiasHT  added the comment:

I'm not so sure, but I think this characteristic was carried from python 2. I 
guess it's not well documented because they assumed that people would carry on 
the knowledge to python 3. To be on the safe side, I always pass the arguments 
to super.

https://docs.python.org/2/library/functions.html#super

--
nosy: +TobiasHT

___
Python tracker 

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



[issue978604] wait_variable hangs at exit

2021-12-25 Thread Daniel Diniz


Daniel Diniz  added the comment:

Confirmed on Python 3.11.0a3+, assuming older versions also affected. This 
issue has different versions of tests to confirm it, but I think not in a test 
suite-friendly format yet.

There's also a patch and detailed analysis by gpolo indicating that it might 
need editing _tkinter.c to handle fallout from his proposed Python-side patch.

--
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.2, Python 
3.3

___
Python tracker 

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



[issue42259] pprint: infinite recursion for saferepr() when using nested objects, but str() works

2021-12-25 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

The recursion protection in `saferepr` applies when two conditions are met: 

- the structure is subclassed from list, tuple or dict
- __repr__ is not overriden

In this case neither condition is met.

However, the recursion is caused by the `__repr__` so when it's removed, 
recursion doesn't happen (but not due to recursion protection).

Btw also note that recursive path must be continuous for recursion detection to 
apply, e.g. if it's list[cust_obj[list[cust_obj...]]], detection also won't 
work.

I don't think we can fix this in code in a straightforward way, because  we 
want to avoid recursively calling saferepr in case __repr__ does not recurse.

In other words, if we knew __repr__ DOES recurse, we could call saferepr 
recursively and apply recursion detection without any problems, but __repr__ 
might intentionally say something like "", and then 
recursively calling saferepr would be undesirable.

So unfortunately we lose the recursion detection because of that.

One possible option would be to add an optional param like *force_recursion*, 
to recurse with detection even on overridden *__repr__*. I'm not sure it's 
worth it. But that's something users can consider: subclass PrettyPrinter and 
override saferepr() and either remove the checks for __repr__ override or add a 
param to do just that.

Current docs really make it sound like any recursion that shows up in repr() 
will be protected; it's really much more limited than that. Adding PR to 
clarify the limitations.

--
versions: +Python 3.11 -Python 3.8

___
Python tracker 

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



[issue42259] pprint: infinite recursion for saferepr() when using nested objects, but str() works

2021-12-25 Thread Andrei Kulakov


Change by Andrei Kulakov :


--
keywords: +patch
nosy: +andrei.avk
nosy_count: 2.0 -> 3.0
pull_requests: +28477
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/30256

___
Python tracker 

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



[issue46177] can't install launcher for all users

2021-12-25 Thread Dennis Sweeney


Dennis Sweeney  added the comment:

Try right-clicking the installer and choosing "run as administrator". Then 
hopefully that checkbox should be available.

It's not enough to be logged in as an admin, you also have to run this 
particular program with admin permissions.

--
nosy: +Dennis Sweeney

___
Python tracker 

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



[issue46177] can't install launcher for all users

2021-12-25 Thread Amine Harrabi


Amine Harrabi  added the comment:

the install launcher for all users is grayed out although im logged in as admin
windows 10 64bit

--
Added file: https://bugs.python.org/file50521/Annotation 2021-12-25 165843.png

___
Python tracker 

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



[issue46177] can't install launcher for all users

2021-12-25 Thread Amine Harrabi


Change by Amine Harrabi :


Added file: https://bugs.python.org/file50520/Annotation 2021-12-25 165843.png

___
Python tracker 

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



[issue46177] can't install launcher for all users

2021-12-25 Thread Amine Harrabi


Change by Amine Harrabi :


--
type:  -> behavior

___
Python tracker 

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



[issue46177] can't install launcher for all users

2021-12-25 Thread Amine Harrabi


New submission from Amine Harrabi :

the install launcher for all users is grayed out although im logged in as admin

--
components: Windows
messages: 409173
nosy: Amine, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: can't install launcher for all users
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



[issue46173] Clarify conditions under which float(x) with large x raises OverflowError

2021-12-25 Thread Mark Dickinson


Mark Dickinson  added the comment:

Changing to a documentation issue.

--
assignee:  -> docs@python
components: +Documentation -Interpreter Core
nosy: +docs@python
resolution: not a bug -> 
title: float(x) with large x not raise OverflowError -> Clarify conditions 
under which float(x) with large x raises OverflowError
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



[issue46175] Zero argument super() does not function properly inside generator expressions

2021-12-25 Thread Carlos Damazio


Carlos Damazio  added the comment:

By explicitly sending a type and object to the super function, it should work 
as usual, like in the file that I've just sent. I've seen this behavior before, 
it's related to Python's module reload function, which returns a new reference 
to the reloaded module. This issue is not widely known though, should be 
documented.

--
nosy: +carlosdamazio
Added file: https://bugs.python.org/file50519/superbug-fixd.py

___
Python tracker 

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



[issue46032] functools' singledispatch does not support GenericAlias

2021-12-25 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 03c7449fbc7c57f5e0365f234a0b65c1dde763f2 by Serhiy Storchaka in 
branch '3.10':
[3.10] bpo-46032: Check types in singledispatch's register() at declaration 
time (GH-30050) (GH-30254)
https://github.com/python/cpython/commit/03c7449fbc7c57f5e0365f234a0b65c1dde763f2


--

___
Python tracker 

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



[issue46032] functools' singledispatch does not support GenericAlias

2021-12-25 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 6.0 -> 7.0
pull_requests: +28476
pull_request: https://github.com/python/cpython/pull/30255

___
Python tracker 

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



[issue46032] functools' singledispatch does not support GenericAlias

2021-12-25 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +28475
pull_request: https://github.com/python/cpython/pull/30254

___
Python tracker 

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



[issue46032] functools' singledispatch does not support GenericAlias

2021-12-25 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 078abb676cf759b1e960f78390b6e80f256f0255 by Serhiy Storchaka in 
branch 'main':
bpo-46032: Check types in singledispatch's register() at declaration time 
(GH-30050)
https://github.com/python/cpython/commit/078abb676cf759b1e960f78390b6e80f256f0255


--

___
Python tracker 

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



[issue40296] help(list[int]) fails

2021-12-25 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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

___
Python tracker 

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



[issue46176] mmap module add MAP_STACK constant mostly for OpenBSD

2021-12-25 Thread David CARLIER


Change by David CARLIER :


--
components: Library (Lib)
nosy: devnexen
priority: normal
pull_requests: 28473
severity: normal
status: open
title: mmap module add MAP_STACK constant mostly for OpenBSD
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



[issue4079] urllib.request.Request 'timeout' attribute needs to have a default

2021-12-25 Thread Alex Waygood


Change by Alex Waygood :


--
title: urllib.requst.Request 'timeout' attribute needs to have a default -> 
urllib.request.Request 'timeout' attribute needs to have a default

___
Python tracker 

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



[issue46175] Zero argument super() does not function properly inside generator expressions

2021-12-25 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue46172] [doc] Outdated description of `license` object

2021-12-25 Thread CCXXXI


CCXXXI  added the comment:

3.10.1 packaged by conda-forge on Windows. Maybe the behavior is changed by 
conda-forge.

```
from sys import version

print(version)
print(license)
license()
```

```
3.10.1 | packaged by conda-forge | (main, Dec 22 2021, 01:34:40) [MSC v.1929 64 
bit (AMD64)]
See https://www.python.org/psf/license/
See https://www.python.org/psf/license/
```

--

___
Python tracker 

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