[issue42913] asyncio.ProactorEventLoop mishandles signal wakeup file descriptor

2021-07-28 Thread Guido van Rossum
Guido van Rossum added the comment: Have you investigated how that could be implemented and what the new API would look like? Personally I don't really like signals (they're not portable and code using them is super hard to get right) and I hesitate to add to their API. OTOH maybe you'll be

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

2021-07-28 Thread paul j3
paul j3 added the comment: More on the refactoring of error handling in _parse_known_args https://bugs.python.org/issue29670#msg288990 This is in a issue wanting better handling of the pre-populated "required" arguments, https://bugs.python.org/issue29670 argparse: does not respect

[issue40263] ValueError exception on _winapi.WaitForMultipleObjects

2021-07-28 Thread Jason R. Coombs
Change by Jason R. Coombs : -- nosy: -jaraco ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40263] ValueError exception on _winapi.WaitForMultipleObjects

2021-07-28 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: -25966 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44771] Adopt changes from importlib_resources 5.2

2021-07-28 Thread Jason R. Coombs
Jason R. Coombs added the comment: On further consideration, the concern I had may not be manifest in the implementation. It may be the _adapters.wrap_spec provides all the compatibility that's needed. I'll see if I can concoct an idiomatic case, but I may find that there's no concern at

[issue44771] Adopt changes from importlib_resources 5.2

2021-07-28 Thread Jason R. Coombs
Jason R. Coombs added the comment: I've put together a patch based on python/importlib_resources@3b24bd6307, and interestingly, the tests pass... which is a little concerning because in https://github.com/python/importlib_resources/pull/221#discussion_r659214483, I describe a compatibility

[issue44771] Adopt changes from importlib_resources 5.2

2021-07-28 Thread Jason R. Coombs
Change by Jason R. Coombs : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40263] ValueError exception on _winapi.WaitForMultipleObjects

2021-07-28 Thread Jason R. Coombs
Change by Jason R. Coombs : -- nosy: +jaraco nosy_count: 8.0 -> 9.0 pull_requests: +25966 pull_request: https://github.com/python/cpython/pull/27436 ___ Python tracker ___

[issue44771] Adopt changes from importlib_resources 5.2

2021-07-28 Thread Jason R. Coombs
Change by Jason R. Coombs : -- keywords: +patch pull_requests: +25965 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27436 ___ Python tracker ___

[issue44771] Adopt changes from importlib_resources 5.2

2021-07-28 Thread Jason R. Coombs
New submission from Jason R. Coombs : Importlib_resources 5.1 and 5.2 introduced the following changes (more details at https://importlib-resources.readthedocs.io/en/latest/history.html#v5-2-1): - Added ``simple`` module implementing adapters from a low-level resources reader interface to a

[issue42119] Error when debugging logging.FileHandler subclass __init__ method

2021-07-28 Thread Andrei Kulakov
Andrei Kulakov added the comment: Françoise: You can simply set the two attrs required by __repr__ in the pdb session: ./python.exe ~/temp/a.py --INS-- > /Users/ak/opensource/cpython/Lib/logging/__init__.py(1152)__init__() ->

[issue44770] float('nan') is True

2021-07-28 Thread Tim Peters
Tim Peters added the comment: Sorry, I'm just going to close this. For values of all numeric types now, `bool(x)` returns the same as `x != type(x)(0)`. Besides being backward-incompatible, making an exception for NaN would be jarringly inconsistent. Note that you don't need numpy to

[issue44770] float('nan') is True

2021-07-28 Thread Dennis Sweeney
Dennis Sweeney added the comment: Do you have a particular use case for this? This is a backwards-incompatible change, and the existing behavior (the only false-y float being 0.0) is very old and well-established. If this change was implemented, I suspect almost every use of it would

[issue44765] Misspelled Word In Docs

2021-07-28 Thread Eesa Ibrahim Khokhar
Eesa Ibrahim Khokhar added the comment: Thanks! On Wed, Jul 28, 2021 at 4:50 PM pavel-lexyr wrote: > > Change by pavel-lexyr : > > > -- > keywords: +patch > nosy: +pavel-lexyr > nosy_count: 3.0 -> 4.0 > pull_requests: +25959 > stage: needs patch -> patch review > pull_request:

[issue44770] float('nan') is True

2021-07-28 Thread Marty
New submission from Marty : I know that there is numpy.isnan() for checking if a value is float('nan') but I think that native python should logically return False in bool(float('nan')). -- messages: 398448 nosy: vpjtqwv0101 priority: normal severity: normal status: open title:

[issue43897] Implement support for validation of pattern matching ASTs

2021-07-28 Thread Brandt Bucher
Change by Brandt Bucher : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43897] Implement support for validation of pattern matching ASTs

2021-07-28 Thread miss-islington
miss-islington added the comment: New changeset 405f5c54914483607194a3ba6d4e50533d92bad1 by Miss Islington (bot) in branch '3.10': [3.10] bpo-43897: Reject "_" captures and top-level MatchStar in the AST validator (GH-27432) (GH-27435)

[issue43897] Implement support for validation of pattern matching ASTs

2021-07-28 Thread Brandt Bucher
Brandt Bucher added the comment: New changeset 8d0647485db5af2a0f0929d6509479ca45f1281b by Brandt Bucher in branch 'main': bpo-43897: Reject "_" captures and top-level MatchStar in the AST validator (GH-27432) https://github.com/python/cpython/commit/8d0647485db5af2a0f0929d6509479ca45f1281b

[issue43897] Implement support for validation of pattern matching ASTs

2021-07-28 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +25964 pull_request: https://github.com/python/cpython/pull/27435 ___ Python tracker

[issue42913] asyncio.ProactorEventLoop mishandles signal wakeup file descriptor

2021-07-28 Thread Michel Hidalgo
Michel Hidalgo added the comment: Circling back. I've been giving some thought to this. While this could be fixed within asyncio.proactor_events.ProactorEventLoop and asyncio.unix_events._UnixSelectorEventLoop implementations (e.g. calling signal.set_wakeup_fd once and forwarding signal

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

2021-07-28 Thread Jack DeVries
Jack DeVries added the comment: @brandtbucher yeah, you can close it, this was a silly idea. -- ___ Python tracker ___ ___

[issue44393] segfault with sys.setrecursionlimit

2021-07-28 Thread Jack DeVries
Jack DeVries added the comment: What about low recursion limits? This program causes a segfault for me:: import sys sys.setrecursionlimit(4) print('goodbye, world') -- nosy: +jack__d ___ Python tracker

[issue43548] RecursionError depth exceptions break pdb's interactive tracing.

2021-07-28 Thread Jack DeVries
Jack DeVries added the comment: @behindthebrain, I noticed that this script behaves weirdly when I try to set breakpoints at various places. However, the problem goes away when I raise the recursion limit. Things in python will not work right if you set the recursion limit to a low value.

[issue44768] dataclasses.dataclass and collections.namedtuple do the same thing

2021-07-28 Thread pavel-lexyr
pavel-lexyr added the comment: Thank you all for your input! Migrating the discussion to https://mail.python.org/archives/list/python-id...@python.org/thread/UQRCDWMFNC5NRLLQCTYPOEGWJOIV7BGJ/ for now, if anyone wants to continue. -- resolution: rejected ->

[issue44768] dataclasses.dataclass and collections.namedtuple do the same thing

2021-07-28 Thread pavel-lexyr
Change by pavel-lexyr : -- resolution: -> rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19217] Calling assertEquals for moderately long list takes too long

2021-07-28 Thread Jack DeVries
Change by Jack DeVries : -- pull_requests: +25963 pull_request: https://github.com/python/cpython/pull/27434 ___ Python tracker ___

[issue19217] Calling assertEquals for moderately long list takes too long

2021-07-28 Thread Jack DeVries
Jack DeVries added the comment: I'm going to go ahead and submit my PR under the assumption that Lukasz will probably prefer to actually be able to review it when he takes a look at this, and additionally we haven't heard from @eamanu. @eamanu, I'll close it if you would like to continue;

[issue43497] SyntaxWarning for "assertion is always true, perhaps remove parentheses?" does not work with constants

2021-07-28 Thread Irit Katriel
Change by Irit Katriel : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue44752] Tab completion executes @property getter function

2021-07-28 Thread Jack DeVries
Change by Jack DeVries : -- pull_requests: +25962 pull_request: https://github.com/python/cpython/pull/27433 ___ Python tracker ___

[issue43548] RecursionError depth exceptions break pdb's interactive tracing.

2021-07-28 Thread Irit Katriel
Irit Katriel added the comment: What do you mean by "it handles them as would be expected"? What is expected? Ideally, can you provide a script with another exception type that shows it? Specify also how you are running the script and what output you get. (I tried to modify your script

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

2021-07-28 Thread Jason R. Coombs
Jason R. Coombs added the comment: This issue is solved. Thanks Irit for taking the time to investigate the issue and do the hard part of developing a test. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python

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

2021-07-28 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset 49b5e20fa8c091f9158ccd26f9a12fc1e91cfc93 by Jason R. Coombs in branch '3.9': [3.9] bpo-44461: Check early that a pdb target is valid for execution. (GH-27227) (GH-27400)

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

2021-07-28 Thread Christian Heimes
Christian Heimes added the comment: A patch would not land in Python 3.9 since this would be a new feature and out-of-scope for a released version. Do you really want to store gigabytes of downloads in RAM instead of doing chunked reads and store them on disk? If you cannot or don't want to

[issue15870] PyType_FromSpec should take metaclass as an argument

2021-07-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I'll reopen this issue to resume the discussion. The motivating case - PEP 3121 refactoring of the ctypes module - is still open. See bpo-15884. -- resolution: rejected -> stage: resolved -> patch review status: closed -> open versions:

[issue15787] [meta issue] PEP 3121, 384 Refactoring

2021-07-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > The work is now tracked at bpo-1635741. Which work? bpo-1635741 does not appear to be a meta-issue and in msg381432 it loops back here. -- versions: +Python 3.11 -Python 3.4 ___ Python tracker

[issue38902] image/webp support in mimetypes

2021-07-28 Thread Ivan Borshchov
Ivan Borshchov added the comment: Very uncomfortable to work with webp without it And webp is now pretty hyped due to Google's Core Web Vitals update. E.g. pretty popular Django Storages relies on python native mimetype module, so because of this bug it always sets default

[issue43897] Implement support for validation of pattern matching ASTs

2021-07-28 Thread Brandt Bucher
Change by Brandt Bucher : -- pull_requests: +25961 pull_request: https://github.com/python/cpython/pull/27432 ___ Python tracker ___

[issue40263] ValueError exception on _winapi.WaitForMultipleObjects

2021-07-28 Thread Steve Dower
Steve Dower added the comment: New changeset 899e37b202c8b096d55e2e3c300c9759ebfe7f7a by Miss Islington (bot) in branch '3.9': bpo-40263: Fixes an off-by-one error in _winapi_WaitForMultipleObjects_impl (GH-19501)

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

2021-07-28 Thread Steve Dower
Steve Dower added the comment: We could also provide a better check in WindowsConsoleIO.isatty, since that should have already handled most of the previous checks (I wouldn't want to do a typecheck in getpass, though). But yeah, this seems like "sys.stdin and sys.stdin.isatty()" is the

[issue15870] PyType_FromSpec should take metaclass as an argument

2021-07-28 Thread Josh Haberman
Josh Haberman added the comment: I know this is quite an old bug that was closed almost 10 years ago. But I am wishing this had been accepted; it would have been quite useful for my case. I'm working on a new iteration of the protobuf extension for Python. At runtime we create types

[issue44768] dataclasses.dataclass and collections.namedtuple do the same thing

2021-07-28 Thread Eric V. Smith
Eric V. Smith added the comment: I agree with Steven, but since I have this typed up I'll post it here. Yes, iterability is another namedtuple feature. Although that would actually be easy to add to dataclasses, so I didn't mention it. I don't really see the point of combining them, except

[issue44768] dataclasses.dataclass and collections.namedtuple do the same thing

2021-07-28 Thread Steven D'Aprano
Steven D'Aprano added the comment: Hi Pavel. Thank you for your submission, but your request is based on a serious misunderstanding of the koan from PEP 20. You might consider that Python has, for example, both for loops and while loops; it has lists and tuples; it has ints and floats and

[issue44769] socketserver.shutdown should stop serve_forever() immediately

2021-07-28 Thread Petr Viktorin
New submission from Petr Viktorin : Currently, socketserver.serve_forever() sets a variable and serve_forever() polls for it, with a configurable interval. A comment in the code already says: # XXX: Consider using another file descriptor or connecting to the # socket to wake this up instead

[issue44768] dataclasses.dataclass and collections.namedtuple do the same thing

2021-07-28 Thread pavel-lexyr
Change by pavel-lexyr : -- versions: -Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___ ___

[issue44768] dataclasses.dataclass and collections.namedtuple do the same thing

2021-07-28 Thread pavel-lexyr
pavel-lexyr added the comment: Touche. Another advantage a namedtuple has is that it can expand out of the box - i.e., can write something like > for x, y, z in namedtuple_list: without any list comprehensions. Can we bring those advantages into the dataclass while also preserving the

[issue44768] dataclasses.dataclass and collections.namedtuple do the same thing

2021-07-28 Thread Eric V. Smith
Eric V. Smith added the comment: namedtuples have features like true immutability, being smaller, and being faster. -- versions: -Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker

[issue44768] dataclasses.dataclass and collections.namedtuple do the same thing

2021-07-28 Thread pavel-lexyr
pavel-lexyr added the comment: Most of the differences are direct upgrades added in the dataclass module. Deprecating dataclass in favour of nametuple would be counterproductive, I agree - what about vice versa? -- ___ Python tracker

[issue43344] RotatingFileHandler breaks file type associations

2021-07-28 Thread Alexander Smirnov
Alexander Smirnov added the comment: the namer was implemented to add "*.log" extension, to avoid broken file association problem. ``` log_handler.namer = lambda name: name.replace(".log", "") + ".log" ``` >implemented carefully enough Could you please share best practices, looks like this

[issue31746] crashes in sqlite3.Connection in case it is uninitialized or partially initialized

2021-07-28 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland nosy_count: 1.0 -> 2.0 pull_requests: +25960 pull_request: https://github.com/python/cpython/pull/27431 ___ Python tracker

[issue44765] Misspelled Word In Docs

2021-07-28 Thread pavel-lexyr
Change by pavel-lexyr : -- keywords: +patch nosy: +pavel-lexyr nosy_count: 3.0 -> 4.0 pull_requests: +25959 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/27430 ___ Python tracker

[issue44768] dataclasses.dataclass and collections.namedtuple do the same thing

2021-07-28 Thread Eric V. Smith
Eric V. Smith added the comment: They are very different. I don’t see how they could be combined. PEP 557 goes in to some of the differences. -- ___ Python tracker ___

[issue44768] dataclasses.dataclass and collections.namedtuple do the same thing

2021-07-28 Thread pavel-lexyr
New submission from pavel-lexyr : PEP 20 states: > There should be one-- and preferably only one --obvious way to do it. As of right now, two very similar constructions for making a lightweight dataclass exist in Python. collections.namedtuple is one of them. dataclasses.dataclass is the

[issue40263] ValueError exception on _winapi.WaitForMultipleObjects

2021-07-28 Thread miss-islington
miss-islington added the comment: New changeset bccb7b9509e875ef23ec3225d03214ca047e5b1a by Miss Islington (bot) in branch '3.10': bpo-40263: Fixes an off-by-one error in _winapi_WaitForMultipleObjects_impl (GH-19501)

[issue3783] dbm.sqlite proof of concept

2021-07-28 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40263] ValueError exception on _winapi.WaitForMultipleObjects

2021-07-28 Thread Steve Dower
Steve Dower added the comment: Fixed, better late than never. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40263] ValueError exception on _winapi.WaitForMultipleObjects

2021-07-28 Thread Steve Dower
Steve Dower added the comment: New changeset 92b5dc780db968f6277f42cb06926dddb7475dc6 by Ray Donnelly in branch 'main': bpo-40263: Fixes an off-by-one error in _winapi_WaitForMultipleObjects_impl (GH-19501) https://github.com/python/cpython/commit/92b5dc780db968f6277f42cb06926dddb7475dc6

[issue40263] ValueError exception on _winapi.WaitForMultipleObjects

2021-07-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +25958 pull_request: https://github.com/python/cpython/pull/27429 ___ Python tracker ___

[issue40263] ValueError exception on _winapi.WaitForMultipleObjects

2021-07-28 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 7.0 -> 8.0 pull_requests: +25957 pull_request: https://github.com/python/cpython/pull/27428 ___ Python tracker

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

2021-07-28 Thread paul j3
paul j3 added the comment: I've explored something similar in https://bugs.python.org/issue11588 Add "necessarily inclusive" groups to argparse There is a local variable in parser._parse_known_args seen_non_default_actions that's a set of the actions that have been seen. It is used

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

2021-07-28 Thread paul j3
paul j3 added the comment: Joker 'type=bool' has been discussed in other issues. 'bool' is an existing python function. Only 'bool("")' returns False. Write your own 'type' function if you want to test for specific strings. It's too language-specific to add as a general purpose

[issue42167] Documentation for SETUP_WITH opcode is wrong

2021-07-28 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[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

[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

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

[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

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

[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

[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

[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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[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

[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

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

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

[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 : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +25953 pull_request: https://github.com/python/cpython/pull/27424 ___ 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 8789add99164177f29a8cd319a834187c65ab16c by Miss Islington (bot) in branch '3.10': bpo-27827: identify a greater range of reserved filename on Windows. (GH-26698) (GH-27421)

[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

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

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

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

[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

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

[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

  1   2   >