[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

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

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

[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

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

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

[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! -- ___ Pyth

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

[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 ___ __

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

[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` o

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

[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

[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

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

[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

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

[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 ___ __

[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

[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 ___ _

[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 ___ ___ P

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

[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 ___ ___ P

[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 ___ ___ P

[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 ___ ___ P

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

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

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

[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/684eb5cb8016546f1f8652dae8febd5

[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

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

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

[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 ___ __

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

[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 ___ __

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

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

[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__` ? -- _

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

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

[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

[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

[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

[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 ___ ___ P

[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/c558e12695e5fe39778eb3eead9df48870356

[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 ___ __

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

[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 ___ __

[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/c48720576d63f9a7de15a6e46b07262dd3d04a

[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 ___ _

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

[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

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

[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 ___ _

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

[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

[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

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

[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

[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

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

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

[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 ___ __

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

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

[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/cpyt

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

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

[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

[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/8789add99164177f29a8cd319a834187

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

[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

[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 ___ __

[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/debb751f11f5221eafcdf07a14c7e940835

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

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

[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

[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 ___ __

[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()

[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/9aba04a74a4fa

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

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

[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 ___ ___ P

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

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

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

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

[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/369d1480b7d51b65c08664ecd63c970fb0d573

[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/9337c60ba8da897f74bddef072d12093cc8c82c

[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 ___ __

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

[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) trapdoo

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

[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

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

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

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

[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 ___ __

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

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

  1   2   >