[issue44757] Insecure Deserialization

2021-07-28 Thread đŸ–€Black JokerđŸ–€

đŸ–€Black JokerđŸ–€  added the comment:

Hi Steven D'Aprano,
well first of all thank you to posting reply on this. Could please fix this 
follwoing errors of the code?

import python
from CallNode call
where call = value::named("yaml.load").getACall()
where call.getrNode(), "yaml.load function is unsafe when loading data from 
untrusted sources. Use yaml.safe_load instead"

--
resolution:  -> wont fix

___
Python tracker 

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



[issue44748] argparse: a bool indicating if arg was encountered

2021-07-28 Thread đŸ–€Black JokerđŸ–€

đŸ–€Black JokerđŸ–€  added the comment:

I would like to use argparse to parse boolean command-line arguments written as 
"--foo True" or "--foo False". For example:

my_program --my_boolean_flag False


However, the following test code does not do what I would like:

import argparse
parser = argparse.ArgumentParser(description="My parser")
parser.add_argument("--my_bool", type=bool)
cmd_line = ["--my_bool", "False"]
parsed_args = parser.parse(cmd_line)

--
components: +Tests -Library (Lib)
nosy: +joker
versions: +Python 3.9 -Python 3.11

___
Python tracker 

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



[issue44681] time.sleep(0.001) not working properly

2021-07-28 Thread Eryk Sun


Eryk Sun  added the comment:

> It certainly wouldn't be worth the power and CPU usage 
> impact that people would inevitable get tricked into 
> causing

To clarify, only short waits such as time.sleep(0.001) would busy loop. Waits 
longer than say 50 ms would call WaitForSingleObjectEx() or Sleep() with the 
wait time minus 50, and then busy loop until the deadline. So  time.sleep(1) 
would wait the thread for 95% of the interval.

--

___
Python tracker 

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



[issue44757] Insecure Deserialization

2021-07-28 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

This is a bug tracker, not a community help desk or forum to discuss code you 
would like to write but don't know how.

I suggest you subscribe to the Python-List mailing list, or go to Reddit's 
r/learnpython, as post there to discuss this. But you might want to do the 
Python tutorial first, because the code you have written is not even close to 
valid Python.

https://mail.python.org/mailman/listinfo/python-list

https://www.reddit.com/r/learnpython/

https://docs.python.org/3/tutorial/index.html

--
resolution: wont fix -> 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



[issue44758] Why " True != 3 in [3] " is True?

2021-07-28 Thread Antel


New submission from Antel <410828...@qq.com>:

>>> (True != 3) in [3]
False
>>> True != (3 in [3])
False

>>> True != 3 in [3]
True

--
components: Tests
messages: 398354
nosy: Antelx
priority: normal
severity: normal
status: open
title: Why " True != 3 in [3] "  is True?
type: performance
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



[issue43377] _PyErr_Display should be available in the CPython-specific API

2021-07-28 Thread Petr Viktorin


Petr Viktorin  added the comment:

PyErr_Display (without underscore) is already exposed.
This issue is about adding a variant with an additional output file argument.

The function formats an exception "just as Python would". The exact output will 
naturally be different between versions, but the function is still useful.

I'm also not sold on the "the arguments it may take" restriction:
- exceptions generally carry all of their context around
- even if they don't in the future, we'll always need a function that takes 
"just" an exception, for cases where some additional context isn't available

--

___
Python tracker 

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



[issue43377] _PyErr_Display should be available in the CPython-specific API

2021-07-28 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

> PErr_Display (without underscore) is already exposed.
> This issue is about adding a variant with an additional output file argument.

Oh, I was not aware of that :( Apologies for the confusion!

--

___
Python tracker 

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



[issue44759] ctype generates misleading error-msg opening lib.so when compiled for wrong arch

2021-07-28 Thread Stephan Bökelmann

New submission from Stephan Bökelmann :

When trying to open a lib.so that has been compiled for a different 
architecture an error-msg is emitted saying. "no such file or directory" 

this is misleading behavior. changing the error-msg to. "library not compatible 
with architecture" would have saved me an hour of work ;)

--
components: ctypes
messages: 398357
nosy: stephan.boekelmann
priority: normal
severity: normal
status: open
title: ctype generates misleading error-msg opening lib.so when compiled for 
wrong arch
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



[issue44748] argparse: a bool indicating if arg was encountered

2021-07-28 Thread Thermi


Thermi  added the comment:

joker, that is a different issue from the one described here. Please open your 
own.

--

___
Python tracker 

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



[issue44758] Why " True != 3 in [3] " is True?

2021-07-28 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

Hi Antel, thank you for your submission but this is not a bug. This is a bug 
tracker for reporting bugs, not a help desk to ask for help understanding code. 
There are many forums where you can ask for help, I suggest that you could try 
places like the Python-List mailing list or Reddit.

https://mail.python.org/mailman/listinfo/python-list

https://www.reddit.com/r/learnpython/


The three code snippets you show are all correct.

In the first case, you are comparing True != 3, which is True, and then testing 
whether True is in [3], which it is not.

In the second you compute (3 in [3]), which is True, then test True != True, 
which is False.

Lastly you do a *chained comparison* `True != 3 in [3]` which is equivalent to 
`(True != 3) and (3 in [3])` which is True.

--
nosy: +steven.daprano
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



[issue44758] Why " True != 3 in [3] " is True?

2021-07-28 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

BTW, chained comparisons are usually written like this:

0 <= x <= 100

a == b == c

spam is eggs is None

or similar. They do look weird and confusing when they include the `in` 
operator. Best not to write chained comparisons involving the `in` operator or 
other strange combinations.

--

___
Python tracker 

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



[issue44747] Refactor usage of sys._getframe at typing module

2021-07-28 Thread Ken Jin


Change by Ken Jin :


--
title: Reduce usage of sys._getframe at typing module -> Refactor usage of 
sys._getframe at typing module

___
Python tracker 

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



[issue44760] Turtle Documentation - Contents Hyperlink conflict

2021-07-28 Thread Ray Kinane


New submission from Ray Kinane :

In the Turtle module,
there are 2 methods named "clear",
one for turtle objects and one for screen objects.

In the Turtle module documentation, 
in the contents section, 
in the "Turtle methods" section, 
under "More drawing control"
the clear() method hyperlink 
does not point to the correct section in the article.
It points to the section for the clear method for screen objects.

There is another identical hyperlink issue in the same article due to 2 methods 
with the same name: "reset"

--
assignee: docs@python
components: Documentation
messages: 398361
nosy: docs@python, ray_giraffe
priority: normal
severity: normal
status: open
title: Turtle Documentation - Contents Hyperlink conflict
type: enhancement
versions: Python 3.10, Python 3.11, 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



[issue44759] ctype generates misleading error-msg opening lib.so when compiled for wrong arch

2021-07-28 Thread Eric V. Smith


Eric V. Smith  added the comment:

I don't think we get enough information from the operating system in order to 
generate the message that you'd like to see, unfortunately.

--
nosy: +eric.smith

___
Python tracker 

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



[issue43344] RotatingFileHandler breaks file type associations

2021-07-28 Thread Vinay Sajip


Vinay Sajip  added the comment:

> the problem with namer solution is that it will stop respecting backupCount 
> parameter

Not necessarily, as far as I can tell. Can you give a specific rationale for 
your statement - how does that happen, if the namer has been implemented 
carefully enough?

--

___
Python tracker 

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



[issue44759] ctype generates misleading error-msg opening lib.so when compiled for wrong arch

2021-07-28 Thread Stephan Bökelmann

Stephan Bökelmann  added the comment:

my fault!

I am running Ubuntu 18 in WSL

>> uname -a
Linux  4.4.0-22000-Microsoft #1-Microsoft Fri Jun 04 16:28:00 PST 
2021 x86_64 x86_64 x86_64 GNU/Linux

--

___
Python tracker 

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



[issue44761] NewType __module__ name

2021-07-28 Thread Yurii Karabas


New submission from Yurii Karabas <1998uri...@gmail.com>:

This issue related to https://bugs.python.org/issue44353

By default `__module__` attribute of a `NewType` is set to "typing" but in 
other typing classes it set to "__main__".

--
components: Library (Lib)
messages: 398365
nosy: kj, uriyyo
priority: normal
severity: normal
status: open
title: NewType __module__ name
type: behavior
versions: Python 3.10, Python 3.11

___
Python tracker 

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



[issue44761] NewType __module__ name default value

2021-07-28 Thread Yurii Karabas


Change by Yurii Karabas <1998uri...@gmail.com>:


--
title: NewType __module__ name -> NewType __module__ name default value

___
Python tracker 

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



[issue44761] NewType __module__ name default value

2021-07-28 Thread Yurii Karabas


Change by Yurii Karabas <1998uri...@gmail.com>:


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

___
Python tracker 

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



[issue44399] log rotator cookbook example might waste disk space

2021-07-28 Thread Vinay Sajip


Change by Vinay Sajip :


--
pull_requests: +25940
pull_request: https://github.com/python/cpython/pull/27407

___
Python tracker 

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



[issue44473] logging.handlers.QueueHandler acts unexpected

2021-07-28 Thread Vinay Sajip


Change by Vinay Sajip :


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



[issue44399] log rotator cookbook example might waste disk space

2021-07-28 Thread Vinay Sajip


Vinay Sajip  added the comment:


New changeset 174fbd85f60d7877d3a4f58214a852209f8dfbea by Vinay Sajip in branch 
'main':
bpo-44399: Document another example of unexpected behavior. (GH-27407)
https://github.com/python/cpython/commit/174fbd85f60d7877d3a4f58214a852209f8dfbea


--

___
Python tracker 

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



[issue44399] log rotator cookbook example might waste disk space

2021-07-28 Thread Vinay Sajip


Change by Vinay Sajip :


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



[issue43184] Missing docs for LoggerAdapter manager and name property

2021-07-28 Thread Vinay Sajip


Change by Vinay Sajip :


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



[issue44388] venv API Docs for EnvBuilder.ensure_directories incorrectly describe behavior

2021-07-28 Thread Vinay Sajip


Change by Vinay Sajip :


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



[issue44759] ctype generates misleading error-msg opening lib.so when compiled for wrong arch

2021-07-28 Thread Stephan Bökelmann

Stephan Bökelmann  added the comment:

Fail. Didn't read your reply carefully enough. You wasn't asking for my info.

Thanks anyway

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



[issue44761] NewType __module__ attr default value

2021-07-28 Thread Yurii Karabas


Change by Yurii Karabas <1998uri...@gmail.com>:


--
title: NewType __module__ name default value -> NewType __module__ attr default 
value

___
Python tracker 

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



[issue44600] match/case statements trace incorrectly in 3.10.0b4

2021-07-28 Thread Ɓukasz Langa

Ɓukasz Langa  added the comment:


New changeset 5502ee052fb4257ad7438dd1130c80e1a9c4bc7f by Miss Islington (bot) 
in branch '3.10':
bpo-44600: Refactor new tracing tests (GH-27396) (GH-27404)
https://github.com/python/cpython/commit/5502ee052fb4257ad7438dd1130c80e1a9c4bc7f


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue44461] 'Pdb' object has no attribute 'botframe'

2021-07-28 Thread miss-islington


miss-islington  added the comment:


New changeset 684eb5cb8016546f1f8652dae8febd5c6571193e by Jason R. Coombs in 
branch '3.10':
[3.10] bpo-44461: Check early that a pdb target is valid for execution. 
(GH-27227) (GH-27399)
https://github.com/python/cpython/commit/684eb5cb8016546f1f8652dae8febd5c6571193e


--
nosy: +miss-islington

___
Python tracker 

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



[issue44762] getpass.getpass on Windows fallback detection is bad

2021-07-28 Thread jan matejek


New submission from jan matejek :

The fallback detection for `win_getpass` checks that `sys.stdin` is different 
from `sys.__stdin__`. If yes, it assumes that it's incapable of disabling echo, 
and calls `default_getpass` which reads from stdin.

If they are the same object, it assumes it's in a terminal and uses `msvcrt` to 
read characters.

I was not able to find any rationale for this check, it seems to have been 
introduced, oh wow, in 2001, to fix something IDLE-related.

Anyway, the check is trivially incorrect. It fails when such script is launched 
from `subprocess.Popen(stdin=PIPE)`, where both `sys.stdin` and `sys.__stdin__` 
are the same instance of `TextIOWrapper`. Same actually happens in MinTTY (Git 
Bash etc.) which is not a true terminal as far as I was able to find out?

It seems that a better check would be, e.g., `sys.stdin.isatty()`, which 
correctly returns `False` both in subprocesses and in MinTTY.

--
components: Library (Lib)
messages: 398370
nosy: matejcik
priority: normal
severity: normal
status: open
title: getpass.getpass on Windows fallback detection is bad
type: behavior
versions: Python 3.10, Python 3.11, 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



[issue44657] instancemethod_call should use PyInstanceMethod_GET_FUNCTION macro

2021-07-28 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset ddf8ae31a0f371eff2db14c7f7a45976b86d56ea by Dong-hee Na in branch 
'main':
bpo-44657: Fix instancemethod_call to use PyInstanceMethod_GET_FUNCTION 
(GH-27202)
https://github.com/python/cpython/commit/ddf8ae31a0f371eff2db14c7f7a45976b86d56ea


--

___
Python tracker 

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



[issue44657] instancemethod_call should use PyInstanceMethod_GET_FUNCTION macro

2021-07-28 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 2.0 -> 3.0
pull_requests: +25941
pull_request: https://github.com/python/cpython/pull/27408

___
Python tracker 

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



[issue44657] instancemethod_call should use PyInstanceMethod_GET_FUNCTION macro

2021-07-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +25942
pull_request: https://github.com/python/cpython/pull/27409

___
Python tracker 

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



[issue44762] getpass.getpass on Windows fallback detection is bad

2021-07-28 Thread jan matejek


jan matejek  added the comment:

...this is a problem because:

When the check incorrectly infers that it can use `msvcrt` while its stdin is a 
pipe, the calls to `putwch` and `getwch` are going into the void and the 
program effectively freezes waiting for input that never comes.

See also:
https://stackoverflow.com/questions/49858821/python-getpass-doesnt-work-on-windows-git-bash-mingw64/54046572
https://github.com/ipython/ipython/issues/854

--

___
Python tracker 

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



[issue44756] In ./Doc, "make html" and "make build" should depend on "make venv"

2021-07-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +25944
pull_request: https://github.com/python/cpython/pull/27411

___
Python tracker 

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



[issue44756] In ./Doc, "make html" and "make build" should depend on "make venv"

2021-07-28 Thread Ɓukasz Langa

Ɓukasz Langa  added the comment:


New changeset d22c876d5ac5fa464337d2e82654b8d87a83cb1b by Jack DeVries in 
branch 'main':
bpo-44756: in ./Doc, `make build` depends on `make html` (#27403)
https://github.com/python/cpython/commit/d22c876d5ac5fa464337d2e82654b8d87a83cb1b


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue44756] In ./Doc, "make html" and "make build" should depend on "make venv"

2021-07-28 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 3.0 -> 4.0
pull_requests: +25943
pull_request: https://github.com/python/cpython/pull/27410

___
Python tracker 

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



[issue44762] getpass.getpass on Windows fallback detection is bad

2021-07-28 Thread jan matejek


jan matejek  added the comment:

For that matter, in standard Windows Command Prompt `sys.stdin` and 
`sys.__stdin__` are also identical, but `isatty()` reports True.

I suspect is that the code has drifted and `sys.stdin` is _always_ identical to 
`sys.__stdin__` ?

--

___
Python tracker 

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



[issue40001] ignore errors in SimpleCookie

2021-07-28 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

Aviram: see issue https://bugs.python.org/issue17340 , there is a lot of old 
discussions along the same lines.

--
nosy: +andrei.avk

___
Python tracker 

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



[issue44762] getpass.getpass on Windows fallback detection is bad

2021-07-28 Thread jan matejek


Change by jan matejek :


--
versions:  -Python 3.10, Python 3.11, 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



[issue44762] getpass.getpass on Windows fallback detection is bad

2021-07-28 Thread jan matejek


Change by jan matejek :


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



[issue42853] `OverflowError: signed integer is greater than maximum` in ssl.py for files larger than 2GB

2021-07-28 Thread Ɓukasz Langa

Ɓukasz Langa  added the comment:


New changeset 153365d864c411f6fb523efa752ccb3497d815ca by Inada Naoki in branch 
'3.9':
[3.9] bpo-42853: Fix http.client fails to download >2GiB data over TLS 
(GH-27405)
https://github.com/python/cpython/commit/153365d864c411f6fb523efa752ccb3497d815ca


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue36050] Why does http.client.HTTPResponse._safe_read use MAXAMOUNT

2021-07-28 Thread Ɓukasz Langa

Ɓukasz Langa  added the comment:


New changeset 153365d864c411f6fb523efa752ccb3497d815ca by Inada Naoki in branch 
'3.9':
[3.9] bpo-42853: Fix http.client fails to download >2GiB data over TLS 
(GH-27405)
https://github.com/python/cpython/commit/153365d864c411f6fb523efa752ccb3497d815ca


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue42853] `OverflowError: signed integer is greater than maximum` in ssl.py for files larger than 2GB

2021-07-28 Thread Ɓukasz Langa

Change by Ɓukasz Langa :


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



[issue44657] instancemethod_call should use PyInstanceMethod_GET_FUNCTION macro

2021-07-28 Thread miss-islington


miss-islington  added the comment:


New changeset c558e12695e5fe39778eb3eead9df48870356800 by Miss Islington (bot) 
in branch '3.10':
bpo-44657: Fix instancemethod_call to use PyInstanceMethod_GET_FUNCTION 
(GH-27202)
https://github.com/python/cpython/commit/c558e12695e5fe39778eb3eead9df48870356800


--

___
Python tracker 

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



[issue44754] Documentation for pop in Built-in Types

2021-07-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +25946
pull_request: https://github.com/python/cpython/pull/27413

___
Python tracker 

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



[issue44754] Documentation for pop in Built-in Types

2021-07-28 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 3.0 -> 4.0
pull_requests: +25945
pull_request: https://github.com/python/cpython/pull/27412

___
Python tracker 

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



[issue44754] Documentation for pop in Built-in Types

2021-07-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +25947
pull_request: https://github.com/python/cpython/pull/27414

___
Python tracker 

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



[issue44657] instancemethod_call should use PyInstanceMethod_GET_FUNCTION macro

2021-07-28 Thread miss-islington


miss-islington  added the comment:


New changeset c48720576d63f9a7de15a6e46b07262dd3d04a8d by Miss Islington (bot) 
in branch '3.9':
bpo-44657: Fix instancemethod_call to use PyInstanceMethod_GET_FUNCTION 
(GH-27202)
https://github.com/python/cpython/commit/c48720576d63f9a7de15a6e46b07262dd3d04a8d


--

___
Python tracker 

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



[issue44657] instancemethod_call should use PyInstanceMethod_GET_FUNCTION macro

2021-07-28 Thread Dong-hee Na


Dong-hee Na  added the comment:

Thank you Sam for the valuable report!!

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



[issue44756] In ./Doc, "make html" and "make build" should depend on "make venv"

2021-07-28 Thread Ɓukasz Langa

Ɓukasz Langa  added the comment:


New changeset f113195ac85d58bdde348b5bb74eb97e6485e408 by Miss Islington (bot) 
in branch '3.10':
bpo-44756: in ./Doc, `make build` depends on `make html` (GH-27403) (GH-27410)
https://github.com/python/cpython/commit/f113195ac85d58bdde348b5bb74eb97e6485e408


--

___
Python tracker 

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



[issue44561] Some expired hyperlinks in Python documentation

2021-07-28 Thread Éric Araujo

Éric Araujo  added the comment:

Python has thousands of open issues and PRs, so that’s why the one you opened 
didn’t have comments at first.

For cases like this, there is a 'skip-news' label to satisfy the robotic checks.

--

___
Python tracker 

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



[issue44711] Optimize type check in pipes.py

2021-07-28 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue44756] In ./Doc, "make html" and "make build" should depend on "make venv"

2021-07-28 Thread Ɓukasz Langa

Ɓukasz Langa  added the comment:

Thanks, Jack! ✹ 🍰 ✹

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



[issue44756] In ./Doc, "make html" and "make build" should depend on "make venv"

2021-07-28 Thread Ɓukasz Langa

Ɓukasz Langa  added the comment:


New changeset fd2c2465d49a8bcb32eeda82d694eed48e57ba79 by Miss Islington (bot) 
in branch '3.9':
bpo-44756: in ./Doc, `make build` depends on `make html` (GH-27403) (GH-27411)
https://github.com/python/cpython/commit/fd2c2465d49a8bcb32eeda82d694eed48e57ba79


--

___
Python tracker 

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



[issue44701] Create a @deprecated decorator (annotation)

2021-07-28 Thread Éric Araujo

Éric Araujo  added the comment:

You should propose this on python-ideas!

--
nosy: +eric.araujo

___
Python tracker 

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



[issue44754] Documentation for pop in Built-in Types

2021-07-28 Thread Ɓukasz Langa

Ɓukasz Langa  added the comment:

Thanks, Dennis! ✹ 🍰 ✹

--
nosy: +lukasz.langa
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10, 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



[issue36050] Why does http.client.HTTPResponse._safe_read use MAXAMOUNT

2021-07-28 Thread Bruce Merry


Bruce Merry  added the comment:

Re-opening because the patch to fix this has just been reverted due to 
bpo-42853.

--
status: closed -> open

___
Python tracker 

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



[issue42853] `OverflowError: signed integer is greater than maximum` in ssl.py for files larger than 2GB

2021-07-28 Thread Bruce Merry


Bruce Merry  added the comment:

This fix is going to cause a regression of bpo-36050. Would it not be possible 
to fix this in _ssl.c (by breaking a large read into multiple smaller calls to 
SSL_read)? It seems like fixing this at the SSL layer is more appropriate than 
trying to work around it at the HTTP layer, and thus impacting the performance 
of all HTTP fetches (whether using TLS or not, and whether >2GB or not).

--
nosy: +bmerry

___
Python tracker 

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



[issue36050] Why does http.client.HTTPResponse._safe_read use MAXAMOUNT

2021-07-28 Thread Inada Naoki


Inada Naoki  added the comment:

Note that it was reverted only in 3.9 branch.

--

___
Python tracker 

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



[issue27827] pathlib is_reserved fails for some reserved paths on Windows

2021-07-28 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 8.0 -> 9.0
pull_requests: +25949
pull_request: https://github.com/python/cpython/pull/27421

___
Python tracker 

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



[issue27827] pathlib is_reserved fails for some reserved paths on Windows

2021-07-28 Thread Ɓukasz Langa

Ɓukasz Langa  added the comment:


New changeset 56c1f6d7edad454f382d3ecb8cdcff24ac898a50 by Barney Gale in branch 
'main':
bpo-27827: identify a greater range of reserved filename on Windows. (GH-26698)
https://github.com/python/cpython/commit/56c1f6d7edad454f382d3ecb8cdcff24ac898a50


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue27827] pathlib is_reserved fails for some reserved paths on Windows

2021-07-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +25950
pull_request: https://github.com/python/cpython/pull/27422

___
Python tracker 

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



[issue36050] Why does http.client.HTTPResponse._safe_read use MAXAMOUNT

2021-07-28 Thread Gregory P. Smith


Change by Gregory P. Smith :


--
resolution: fixed -> 
stage: resolved -> needs patch

___
Python tracker 

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



[issue44701] Create a @deprecated decorator (annotation)

2021-07-28 Thread Leonardo Freua


Leonardo Freua  added the comment:

Ok thanks, I'll do it.

--

___
Python tracker 

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



[issue44763] "width defaults to 70." in textwrap.wrap documentation is repetitive.

2021-07-28 Thread Jack DeVries


New submission from Jack DeVries :

The phrase "width defaults to 70." in the documentation for textwrap.wrap is 
repetitive, because that information is already communicated in the function 
signature.

The desire to fix this came up this discussion around this PR:
https://github.com/python/cpython/pull/26999#discussion_r678322870

I will attach a PR momentarily.

--
assignee: docs@python
components: Documentation
messages: 398392
nosy: docs@python, jack__d
priority: normal
severity: normal
status: open
title: "width defaults to 70." in textwrap.wrap documentation is repetitive.
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



[issue44763] "width defaults to 70." in textwrap.wrap documentation is repetitive.

2021-07-28 Thread Jack DeVries


Change by Jack DeVries :


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

___
Python tracker 

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



[issue44763] "width defaults to 70." in textwrap.wrap documentation is repetitive.

2021-07-28 Thread Jack DeVries


Change by Jack DeVries :


--
pull_requests: +25952
pull_request: https://github.com/python/cpython/pull/26999

___
Python tracker 

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



[issue44098] Remove ParamSpec from __parameters__ of most typing generics

2021-07-28 Thread Ken Jin


Ken Jin  added the comment:

@Serhiy, could you please briefly describe what you are planning? I'm guessing 
you're generalizing for _TypeVarLike?

My main concern is that we should have as few differences between builtin and 
typing types as possible. typing.List is deprecated and set to remove in Python 
3.13/14, so I'm hoping the transition will be fairly painless.

Originally, the builtin types supported ParamSpec, but I removed that in 
GH-25449 for various reasons listed in that PR.

--

___
Python tracker 

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



[issue27827] pathlib is_reserved fails for some reserved paths on Windows

2021-07-28 Thread Ɓukasz Langa

Ɓukasz Langa  added the comment:


New changeset 8789add99164177f29a8cd319a834187c65ab16c by Miss Islington (bot) 
in branch '3.10':
bpo-27827: identify a greater range of reserved filename on Windows. (GH-26698) 
(GH-27421)
https://github.com/python/cpython/commit/8789add99164177f29a8cd319a834187c65ab16c


--

___
Python tracker 

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



[issue44544] Add full list of possible args to textwrap: wrap, fill, shorten

2021-07-28 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue44544] Add full list of possible args to textwrap: wrap, fill, shorten

2021-07-28 Thread Ɓukasz Langa

Ɓukasz Langa  added the comment:


New changeset c1e39d6b1167376fdaf3f288ba9a689e61c7fdd1 by Jack DeVries in 
branch 'main':
bpo-44544: [doc] list all textwrap func kwargs (GH-26999)
https://github.com/python/cpython/commit/c1e39d6b1167376fdaf3f288ba9a689e61c7fdd1


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue44544] Add full list of possible args to textwrap: wrap, fill, shorten

2021-07-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +25954
pull_request: https://github.com/python/cpython/pull/27425

___
Python tracker 

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



[issue27827] pathlib is_reserved fails for some reserved paths on Windows

2021-07-28 Thread Ɓukasz Langa

Ɓukasz Langa  added the comment:


New changeset debb751f11f5221eafcdf07a14c7e9408350ad9a by Miss Islington (bot) 
in branch '3.9':
bpo-27827: identify a greater range of reserved filename on Windows. (GH-26698) 
(#27422)
https://github.com/python/cpython/commit/debb751f11f5221eafcdf07a14c7e9408350ad9a


--

___
Python tracker 

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



[issue27827] pathlib is_reserved fails for some reserved paths on Windows

2021-07-28 Thread Ɓukasz Langa

Ɓukasz Langa  added the comment:

Barney, thanks for pushing this across the finish line! ✹ 🍰 ✹  

And of course, Eryk for the report and original patch.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
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



[issue44763] "width defaults to 70." in textwrap.wrap documentation is repetitive.

2021-07-28 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 2.0 -> 3.0
pull_requests: +25955
pull_request: https://github.com/python/cpython/pull/27426

___
Python tracker 

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



[issue44763] "width defaults to 70." in textwrap.wrap documentation is repetitive.

2021-07-28 Thread Ɓukasz Langa

Ɓukasz Langa  added the comment:


New changeset cb1d76f10ab330dbd64e6506bf7c065d499b by Jack DeVries in 
branch 'main':
bpo-44763: [doc] remove repetitive sentence from textwrap.wrap (GH-27423)
https://github.com/python/cpython/commit/cb1d76f10ab330dbd64e6506bf7c065d499b


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue44763] "width defaults to 70." in textwrap.wrap documentation is repetitive.

2021-07-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +25956
pull_request: https://github.com/python/cpython/pull/27427

___
Python tracker 

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



[issue44762] getpass.getpass on Windows fallback detection is bad

2021-07-28 Thread Eryk Sun


Eryk Sun  added the comment:

> When the check incorrectly infers that it can use `msvcrt` while 
> its stdin is a pipe, the calls to `putwch` and `getwch` are going 
> into the void and the program effectively freezes waiting for 
> input that never comes.

The C runtime's getwch() and putwch() functions use the console I/O files 
"CONIN$" and "CONOUT$". If "CONIN$" can't be opened because the process has no 
console, then getwch() fails and returns U+. But mintty does have a 
console, albeit with a hidden window, which gets inherited by bash and child 
processes. So getwch() ends up waiting for a key to be pressed in an 
inaccessible, hidden window.

It should suffice to check that sys.stdin isn't None and that 
sys.stdin.isatty() is True, since it's reasonable to assume that the console 
has a visible window in this case. Currently this isn't a bulletproof check, 
however, because the Windows C runtime doesn't implement isatty() correctly. It 
returns true for any character device, which includes the common case of 
redirecting standard I/O to the "NUL" device. io.FileIO.isatty() could be 
updated to return True only if both C isatty() is true and GetConsoleMode() 
succeeds. This would filter out false positives for non-console character 
devices, particularly "NUL".

--
nosy: +eryksun

___
Python tracker 

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



[issue44764] Handling interruption in async tasks

2021-07-28 Thread Ilian Iliev


New submission from Ilian Iliev :

The idea is to provide a way for graceful shutdown so that if an interruption 
occurs all async tasks are given a certain time to finish before we exit the 
process.

Please take a look at the provided example -> 
https://gist.github.com/IlianIliev/9aba04a74a4faddf0749533205d3b001

If the interruption happens during an await (if we use `await 
asyncio.sleep(5)`), all works correctly. The exception is raised to the root 
level and we do the graceful shutdown on line 37.

But if the interruption happens during a normal execution (`time.sleep()`) it 
is raised at the currently running line and this way breaks the function 
without any chances or recovery. 
While `time.sleep` is not that widely used, the same problem occurs if we have 
any other long-running code e.g. iterating over a big list.

This was found while looking for a way to provide a graceful shutdown for the 
grpcio server -> https://github.com/grpc/grpc/issues/26123

Is it possible to change the behaviour so the exception is raised on a higher 
level when sync tasks are executed in async context?

--
hgrepos: 407
messages: 398400
nosy: ilian
priority: normal
severity: normal
status: open
title: Handling interruption in async tasks
type: behavior
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



[issue44764] Handling interruption in async tasks

2021-07-28 Thread Ilian Iliev


Change by Ilian Iliev :


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



[issue44682] Pdb commands allows to add commands to invalid breakpoint

2021-07-28 Thread Ɓukasz Langa

Ɓukasz Langa  added the comment:


New changeset 53b9458f2e9314703a5406ca817d757f1509882a by andrei kulakov in 
branch 'main':
bpo-44682: Handle invalid arg to pdb's "commands" directive (#27252)
https://github.com/python/cpython/commit/53b9458f2e9314703a5406ca817d757f1509882a


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue44682] Pdb commands allows to add commands to invalid breakpoint

2021-07-28 Thread Ɓukasz Langa

Change by Ɓukasz Langa :


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



[issue43897] Implement support for validation of pattern matching ASTs

2021-07-28 Thread Brandt Bucher


Brandt Bucher  added the comment:


New changeset 31bec6f1b178dadec3cb43353274b4e958a8f015 by Batuhan Taskaya in 
branch 'main':
bpo-43897: AST validation for pattern matching nodes (GH24771)
https://github.com/python/cpython/commit/31bec6f1b178dadec3cb43353274b4e958a8f015


--

___
Python tracker 

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



[issue44544] Add full list of possible args to textwrap: wrap, fill, shorten

2021-07-28 Thread Ɓukasz Langa

Ɓukasz Langa  added the comment:


New changeset 97af790495f580a60253f9d8c50b26eeb53d9926 by Miss Islington (bot) 
in branch '3.10':
bpo-44544: [doc] list all textwrap func kwargs (GH-26999) (GH-27424)
https://github.com/python/cpython/commit/97af790495f580a60253f9d8c50b26eeb53d9926


--

___
Python tracker 

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



[issue44544] Add full list of possible args to textwrap: wrap, fill, shorten

2021-07-28 Thread Ɓukasz Langa

Ɓukasz Langa  added the comment:


New changeset 019a8b08fa28b26e009fd10395c7b767848b4e77 by Miss Islington (bot) 
in branch '3.9':
bpo-44544: [doc] list all textwrap func kwargs (GH-26999) (GH-27425)
https://github.com/python/cpython/commit/019a8b08fa28b26e009fd10395c7b767848b4e77


--

___
Python tracker 

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



[issue44544] Add full list of possible args to textwrap: wrap, fill, shorten

2021-07-28 Thread Ɓukasz Langa

Ɓukasz Langa  added the comment:

Thanks! ✹ 🍰 ✹

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



[issue44763] "width defaults to 70." in textwrap.wrap documentation is repetitive.

2021-07-28 Thread Ɓukasz Langa

Ɓukasz Langa  added the comment:


New changeset 369d1480b7d51b65c08664ecd63c970fb0d573e1 by Miss Islington (bot) 
in branch '3.10':
bpo-44763: [doc] remove repetitive sentence from textwrap.wrap (GH-27423) 
(GH-27426)
https://github.com/python/cpython/commit/369d1480b7d51b65c08664ecd63c970fb0d573e1


--

___
Python tracker 

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



[issue44763] "width defaults to 70." in textwrap.wrap documentation is repetitive.

2021-07-28 Thread Ɓukasz Langa

Ɓukasz Langa  added the comment:


New changeset 9337c60ba8da897f74bddef072d12093cc8c82c5 by Miss Islington (bot) 
in branch '3.9':
bpo-44763: [doc] remove repetitive sentence from textwrap.wrap (GH-27423) 
(GH-27427)
https://github.com/python/cpython/commit/9337c60ba8da897f74bddef072d12093cc8c82c5


--

___
Python tracker 

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



[issue44763] "width defaults to 70." in textwrap.wrap documentation is repetitive.

2021-07-28 Thread Ɓukasz Langa

Change by Ɓukasz Langa :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10, Python 3.9

___
Python tracker 

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



[issue42853] `OverflowError: signed integer is greater than maximum` in ssl.py for files larger than 2GB

2021-07-28 Thread jakirkham


jakirkham  added the comment:

Agree with Bruce. It seems like we could have support for OpenSSL 1.1.1 at that 
level with a compile time fallback for previous OpenSSL versions that break up 
the work. Would hope this solution also yields something we can backport more 
easily

--

___
Python tracker 

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



[issue44658] No ValueError for duplicate key value in mapping patern when lengths do not match

2021-07-28 Thread Brandt Bucher


Brandt Bucher  added the comment:

Evaluating every key in every mapping pattern and checking them for duplicates 
every time a match block is entered would be prohibitively expensive, for 
negligible gain. The length check exists to avoid this step, replacing it with 
a much cheaper O(1) trapdoor.

Imagine the overhead of validating this match statement, for example:

https://github.com/brandtbucher/patmaperformance/blob/2fe8b79691d4f11b18d65b957ed36a85cb4761a4/bm_patma_holdem.py#L54-L95

> Consider if some other code is mutating the value of `A.a`. This could create 
> some very strange and flaky bugs where the state of `A.a` can change and make 
> the pattern invalid, but nonetheless not cause an exception until much later, 
> or not at all.

That's okay with me; it's not the VM's job to check the runtime validity of 
branches that aren't taken.

> Another option if this problem is isolated to mapping patterns, we could 
> introduce a new op-code: BUILD_MATCH_MAP, which is essentially a wrapper 
> around BUILD_MAP that disallows duplicate key values.

I'm not sure what you mean by this. We don't call BUILD_MAP when evaluating 
mapping patterns... in fact, we don't build any dictionaries at all (except for 
collecting remaining items using **rest).

Unless others disagree, I'm probably going to close this as "not a bug".

--
assignee:  -> brandtbucher

___
Python tracker 

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



[issue44765] Misspelled Word In Docs

2021-07-28 Thread Eesa Ibrahim Khokhar


New submission from Eesa Ibrahim Khokhar :

Quote Official docs:
"For e.g. server can **chose** to send 417 Expectation Failed as a response 
header and return False."
Above, choose is misspelled.

--
messages: 398410
nosy: khokhareesa.home
priority: normal
severity: normal
status: open
title: Misspelled Word In Docs

___
Python tracker 

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



[issue44766] [easy doc] Remove redundant info in README.valgrind

2021-07-28 Thread hai shi


New submission from hai shi :

Objects/obmalloc.c hasn't use the Py_USING_MEMORY_DEBUGGER macro now. So this 
line can be deleted.
https://github.com/python/cpython/blob/31bec6f1b178dadec3cb43353274b4e958a8f015/Misc/README.valgrind#L17.

--
assignee: docs@python
components: Documentation
messages: 398411
nosy: docs@python, shihai1991
priority: normal
severity: normal
status: open
title: [easy doc] Remove redundant info in README.valgrind
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



[issue42853] `OverflowError: signed integer is greater than maximum` in ssl.py for files larger than 2GB

2021-07-28 Thread Bruce Merry


Bruce Merry  added the comment:

> It seems like we could have support for OpenSSL 1.1.1 at that level with a 
> compile time fallback for previous OpenSSL versions that break up the work. 
> Would hope this solution also yields something we can backport more easily

I'd have to look at exactly how the SSL_read API works, but I think once we're 
in C land and can read into regions of a buffer, reading in 2GB chunks is 
unlikely to cause a performance hit (unlike the original bpo-36050, where 
Python had to read a bunch of separate buffers then join them together). So 
trying to have 3.9 support both SSL_read_ex AND have a fallback sounds like 
it's adding complexity and risking inconsistency if the fallback doesn't 
perfectly mimic the SSL_read_ex path, for very little gain.

If no-one else steps up sooner I can probably work on a patch, but before 
sinking time into it I'd like to hear if there is agreement that this is a 
reasonable approach and ideally have a volunteer to review it (hopefully 
someone who is familiar with OpenSSL, since I've only briefly dealt with it 
years ago and crypto isn't somewhere you want to make mistakes).

--

___
Python tracker 

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



[issue44748] argparse: a bool indicating if arg was encountered

2021-07-28 Thread hai shi


Change by hai shi :


--
nosy: +paul.j3, rhettinger

___
Python tracker 

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



[issue44767] python -m flask run gives OSError: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions

2021-07-28 Thread Chandrakant Naik


New submission from Chandrakant Naik :

Attached is teh app.py program. I tried runnign it in VS Code via the cmd - 
python -m flask run. It gives me the below error 

OSError: [WinError 10013] An attempt was made to access a socket in a way 
forbidden by its access permissions

Tried changing the port and executing it still no luck

--
components: Library (Lib)
files: app.py
messages: 398413
nosy: Jimbofbx, chandrakant.rvce, loewis, pitrou, tim.golden
priority: normal
severity: normal
status: open
title: python -m flask run gives OSError: [WinError 10013] An attempt was made 
to access a socket in a way forbidden by its access permissions
type: behavior
versions: Python 3.9
Added file: https://bugs.python.org/file50189/app.py

___
Python tracker 

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



[issue44767] python -m flask run gives OSError: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions

2021-07-28 Thread Eric V. Smith


Eric V. Smith  added the comment:

This sounds like a flask problem, not a python bug.

--
nosy: +eric.smith

___
Python tracker 

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



[issue44765] Misspelled Word In Docs

2021-07-28 Thread Zachary Ware


Zachary Ware  added the comment:

This is at 
https://docs.python.org/3/library/http.server.html#http.server.BaseHTTPRequestHandler.handle_expect_100,
 which can be found in Doc/library/http.server.rst

--
assignee:  -> docs@python
components: +Documentation
keywords: +easy, newcomer friendly
nosy: +docs@python, zach.ware
stage:  -> needs patch
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



[issue44762] getpass.getpass on Windows fallback detection is bad

2021-07-28 Thread Zachary Ware


Change by Zachary Ware :


--
components: +Windows
nosy: +paul.moore, steve.dower, tim.golden, zach.ware
stage:  -> needs patch
versions: +Python 3.10, Python 3.11

___
Python tracker 

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



  1   2   >