[issue41235] Incorrect error handling in SSLContext.load_dh_params()

2020-07-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset c8c818b0d73680516d5841597b705a1feeb42113 by Miss Islington (bot) in branch '3.7': closes bpo-41235: Fix the error handling in SSLContext.load_dh_params() (GH-21389)

[issue41235] Incorrect error handling in SSLContext.load_dh_params()

2020-07-07 Thread miss-islington
miss-islington added the comment: New changeset 1d1c5743400bdf384ec83eb6ba5b39a355d121e3 by Miss Islington (bot) in branch '3.9': closes bpo-41235: Fix the error handling in SSLContext.load_dh_params() (GH-21385)

[issue41235] Incorrect error handling in SSLContext.load_dh_params()

2020-07-07 Thread miss-islington
miss-islington added the comment: New changeset c8b599ff0a4e4782e97e353a20146d3570845dbc by Miss Islington (bot) in branch '3.8': closes bpo-41235: Fix the error handling in SSLContext.load_dh_params() (GH-21385)

[issue41235] Incorrect error handling in SSLContext.load_dh_params()

2020-07-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +20535 pull_request: https://github.com/python/cpython/pull/21389 ___ Python tracker ___

[issue41235] Incorrect error handling in SSLContext.load_dh_params()

2020-07-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +20534 pull_request: https://github.com/python/cpython/pull/21388 ___ Python tracker ___

[issue41235] Incorrect error handling in SSLContext.load_dh_params()

2020-07-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset aebc0495572c5bb85d2bd97d27cf93ab038b5a6a by Zackery Spytz in branch 'master': closes bpo-41235: Fix the error handling in SSLContext.load_dh_params() (GH-21385)

[issue41235] Incorrect error handling in SSLContext.load_dh_params()

2020-07-07 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +20533 pull_request: https://github.com/python/cpython/pull/21387 ___ Python tracker

[issue41205] Documentation Decimal power 0 to the 0 is Nan (versus 0 to the 0 which is 1)

2020-07-07 Thread శ్రీనివాస్ రెడ్డి తాటిపర్తి
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- keywords: +patch nosy: +thatiparthy nosy_count: 7.0 -> 8.0 pull_requests: +20532 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21386 ___ Python

[issue22239] asyncio: nested event loop

2020-07-07 Thread mike bayer
mike bayer added the comment: slight correction: it is of course possible to use gevent with a database driver without monkeypatching, as I wrote my own gevent benchmarks using psycogreen. I think what I'm getting at is that it's a good thing if async DBAPIs could target asyncio explicitly

[issue41235] Incorrect error handling in SSLContext.load_dh_params()

2020-07-07 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +20530 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21385 ___ Python tracker ___

[issue41235] Incorrect error handling in SSLContext.load_dh_params()

2020-07-07 Thread Zackery Spytz
New submission from Zackery Spytz : If the SSL_CTX_set_tmp_dh() call fails, SSLContext.load_dh_params() returns None with a live exception. It should return NULL in this case. -- assignee: christian.heimes components: Extension Modules, SSL messages: 373271 nosy: ZackerySpytz,

[issue22239] asyncio: nested event loop

2020-07-07 Thread mike bayer
mike bayer added the comment: > Oh, I thought the primary problem for SQLAlchemy supporting async is that the > ORM needs to do IO from inside __getattr__ methods. So I assumed that the > reason you were so excited about greenlets was that it would let you use > await_() from inside those

[issue41227] minor typo in asyncio transport protocol

2020-07-07 Thread Wansoo Kim
Change by Wansoo Kim : -- keywords: +patch nosy: +ys19991 nosy_count: 4.0 -> 5.0 pull_requests: +20529 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21384 ___ Python tracker

[issue21041] pathlib.PurePath.parents rejects negative indexes

2020-07-07 Thread Maxwell Ballenger
Maxwell Ballenger added the comment: Use case: I want to see if a Path is a descendent of /tmp. if filepath.parents[-2] == Path('tmp'): turns into if filepath.parents[len(filepath.parents)-2] == Path('tmp'): -- nosy: +maxballenger ___ Python

[issue41225] Add a test for get_id() in the symtable module

2020-07-07 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- components: +Tests stage: patch review -> resolved status: open -> closed versions: +Python 3.10 ___ Python tracker ___

[issue39417] Link to "Python Packaging User Guide: Creating and using virtual environments" is broken

2020-07-07 Thread miss-islington
miss-islington added the comment: New changeset 730bce3a80819e0b7fa6bfa1e1afcd4c837b62c1 by Miss Islington (bot) in branch '3.8': bpo-39417: Fix broken link to guide to building venvs (GH-18432) https://github.com/python/cpython/commit/730bce3a80819e0b7fa6bfa1e1afcd4c837b62c1 --

[issue41173] Windows ARM buildbots cannot upload results

2020-07-07 Thread miss-islington
miss-islington added the comment: New changeset 366cfc65f26b159e44ee30917ab35afe59f8339f by Miss Islington (bot) in branch '3.9': bpo-41173: Copy test results file from ARM worker before uploading (GH-21305) https://github.com/python/cpython/commit/366cfc65f26b159e44ee30917ab35afe59f8339f

[issue39417] Link to "Python Packaging User Guide: Creating and using virtual environments" is broken

2020-07-07 Thread Mariatta
Mariatta added the comment: Just needed a backport to 3.8 (which is in flight) so this is good to be closed. Thanks. -- nosy: +Mariatta resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue39417] Link to "Python Packaging User Guide: Creating and using virtual environments" is broken

2020-07-07 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +20528 pull_request: https://github.com/python/cpython/pull/21383 ___ Python tracker

[issue27609] IDLE completions: format, factor, and fix

2020-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Normally, tab completion works for attributes (after '.' and a possible prefix) and files (after os.sep and a possible prefix). Unique matches to prefixes are immediately selected, as for undotted module names. After changing the completion wait time and

[issue41173] Windows ARM buildbots cannot upload results

2020-07-07 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue41173] Windows ARM buildbots cannot upload results

2020-07-07 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +20527 pull_request: https://github.com/python/cpython/pull/21382 ___ Python tracker

[issue41173] Windows ARM buildbots cannot upload results

2020-07-07 Thread Steve Dower
Steve Dower added the comment: New changeset 10772ec1505a4583d662c051e577eb2d4fb6e755 by Steve Dower in branch 'master': bpo-41173: Copy test results file from ARM worker before uploading (GH-21305) https://github.com/python/cpython/commit/10772ec1505a4583d662c051e577eb2d4fb6e755

[issue41224] Document is_annotate() in symtable and update doc strings

2020-07-07 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue41224] Document is_annotate() in symtable and update doc strings

2020-07-07 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: New changeset a95ac779e6bca0d87819969e361627182b83292c by Joannah Nanjekye in branch 'master': bpo-41224: Document is_annotated() in symtable module and update doc strings (GH-21369)

[issue41234] Remove symbol.sym_name

2020-07-07 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- keywords: +patch pull_requests: +20526 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21381 ___ Python tracker

[issue41234] Remove symbol.sym_name

2020-07-07 Thread Joannah Nanjekye
New submission from Joannah Nanjekye : symbol.sym_name was already removed yet still documented in library/symbol.rst. I suggest completely removing the docs too since the module is non-existing. -- components: Library (Lib) messages: 373261 nosy: nanjekyejoannah priority: normal

[issue37373] Configuration of windows event loop for libraries

2020-07-07 Thread jack1142
Change by jack1142 : -- nosy: +jack1142 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41233] Missing links to errnos on Built-in Exceptions page

2020-07-07 Thread yyyyyyyan
Change by yyyan : -- keywords: +patch pull_requests: +20524 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21380 ___ Python tracker ___

[issue41233] Missing links to errnos on Built-in Exceptions page

2020-07-07 Thread yyyyyyyan
New submission from yyyan : On the [Built-in Exceptions](https://docs.python.org/dev/library/exceptions.html) page, the exception [InterruptedError](https://docs.python.org/dev/library/exceptions.html#InterruptedError) correlates the error with the errno

[issue27609] IDLE completions: format, factor, and fix

2020-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: fetch_completions code could stand some refactoring. The test should be split at least between attrs and files. -- ___ Python tracker ___

[issue41231] Type annotations lost when using wraps by default

2020-07-07 Thread David Caro
David Caro added the comment: Hi Terry, That would not work in this case, as I'd want to override all annotations with the wrapper function ones if there's any, instead of merging them. The specific use case, is a type checker (part of TestSlide testing framework), to verify that if

[issue29778] [CVE-2020-15523] _Py_CheckPython3 uses uninitialized dllpath when embedder sets module path with Py_SetPath

2020-07-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8f42748ded5e978fe8a924115179d45a74a6363b by Victor Stinner in branch 'master': bpo-29778: test_embed tests the path configuration (GH-21306) https://github.com/python/cpython/commit/8f42748ded5e978fe8a924115179d45a74a6363b --

[issue41232] Python `functools.wraps` doesn't deal with defaults correctly

2020-07-07 Thread Thor Whalen
Thor Whalen added the comment: Further, note that even with the additional '__defaults__', and '__kwdefaults__', `functools.wraps` breaks when keyword only arguments involved: ``` from functools import wraps, WRAPPER_ASSIGNMENTS, partial # First, I need to add `__defaults__` and

[issue41232] Python `functools.wraps` doesn't deal with defaults correctly

2020-07-07 Thread Thor Whalen
Thor Whalen added the comment: Posted to stackoverflow to gather opinions about the issue: https://stackoverflow.com/questions/62782230/python-functools-wraps-doesnt-deal-with-defaults-correctly Also made GitHub PR: https://github.com/python/cpython/pull/21379 -- keywords: +patch

[issue41232] Python `functools.wraps` doesn't deal with defaults correctly

2020-07-07 Thread Thor Whalen
New submission from Thor Whalen : # PROBLEM When using `functools.wraps`, the signature claims one set of defaults, but the (wrapped) function uses the original (wrappee) defaults. Why might that be the desirable default? # PROPOSED SOLUTION Adding '__defaults__', '__kwdefaults__' to

[issue41230] IDLE intellisense

2020-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: IDLE already has autocomplete of names, attributes, and string paths. This is documented in the Completion subsection of the Editing and Navigation section of the doc, easily accessible on the Help menu. Please read the doc before suggesting enhancements.

[issue37765] IDLE: Include longer keywords in __main__ autocomplete list

2020-07-07 Thread Tal Einat
Tal Einat added the comment: Auto-completion is not just about saving keystrokes. For example, I assume that many Python beginners just read through the completion list to see what the options are. This inconsistency would be hard to grok. I think that including only some of the keywords in

[issue37765] IDLE: Include longer keywords in __main__ autocomplete list

2020-07-07 Thread Tal Einat
Tal Einat added the comment: Also, note that the keywords would only be included in the suggested completions when not in a string and when not completing an attribute. So, for example, such a change could not possibly affect the completion of dunder method names. --

[issue16396] Importing ctypes.wintypes on Linux gives a ValueError instead of an ImportError

2020-07-07 Thread Jason R. Coombs
Change by Jason R. Coombs : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.3, Python 3.4 ___ Python tracker ___

[issue37765] IDLE: Include longer keywords in __main__ autocomplete list

2020-07-07 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: IDLE: Include 'long' keywords in __main__ autocomplete list -> IDLE: Include longer keywords in __main__ autocomplete list ___ Python tracker

[issue37765] IDLE: Include 'long' keywords in __main__ autocomplete list

2020-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Cheryl said "This looks good" on the PR." while noting that True should not be added as After trying out REPL completions in macOS Terminal, I *really* want to be able to type 'im' and have 'import' appear. (When there is just one match, it is filled in

[issue22239] asyncio: nested event loop

2020-07-07 Thread Nathaniel Smith
Nathaniel Smith added the comment: > Whether or not one buys that, the point of my approach is that SQLAlchemy > itself *will* publish async methods. End user code *will not* ever context > switch to another task without them explicitly calling using an await. Oh, I thought the primary

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-07-07 Thread mohamed koubaa
Change by mohamed koubaa : -- pull_requests: +20522 pull_request: https://github.com/python/cpython/pull/21378 ___ Python tracker ___

[issue41206] behaviour change with EmailMessage.set_content

2020-07-07 Thread R. David Murray
R. David Murray added the comment: I'm short of time, if someone could approve Mark's PR and merge it it would be great. There wasn't supposed to be any behavior change other than the one documented in #40597. -- ___ Python tracker

[issue22239] asyncio: nested event loop

2020-07-07 Thread Yury Selivanov
Yury Selivanov added the comment: > The community is hurting *A LOT* right now because asyncio is intentionally > non-compatible with the traditional blocking approach that is not only still > prevalent it's one that a lot of us think is *easier* to work with. Mike, I'm super happy with

[issue17238] IDLE: Add import statement completion

2020-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: +1 for import completion. Above, I misspelled 'rlcompleter' as 'rlcomplete'. When I just tried to import it as part of responding to #41230, the wrong name did not work. I wish I could have stopped with 'import rl'. To add a note to #37765, I tried

[issue22239] asyncio: nested event loop

2020-07-07 Thread mike bayer
mike bayer added the comment: > With greenlets OTOH, it becomes possible for another task to observe > someobj.a == 1 without someobj.b == 2, in case someobj.__setattr__ internally > invoked an await_(). let me try this one more time.Basically if someone wrote this: async def

[issue22239] asyncio: nested event loop

2020-07-07 Thread mike bayer
mike bayer added the comment: > With greenlets OTOH, it becomes possible for another task to observe > someobj.a == 1 without someobj.b == 2, in case someobj.__setattr__ internally > invoked an await_(). Any operation can potentially invoke a context switch. > So debugging greenlets code is

[issue39417] Link to "Python Packaging User Guide: Creating and using virtual environments" is broken

2020-07-07 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: Looks like this should be closed as the submitted PR was merged. Just following up for consesus. -- nosy: +nanjekyejoannah ___ Python tracker

[issue23802] patch: __deepcopy__ memo dict argument usage

2020-07-07 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: The Pr should sort this. I will merge it tommorrow if there is no objection. -- ___ Python tracker ___

[issue41188] Prepare CPython for opaque PyObject structure.

2020-07-07 Thread Ronald Oussoren
Change by Ronald Oussoren : -- nosy: +ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22239] asyncio: nested event loop

2020-07-07 Thread Yury Selivanov
Yury Selivanov added the comment: > Yeah, writing a trivial "event loop" to drive actually-synchronous code is > easy. Try it out: This is exactly the approach I used in edgedb-python. > I guess there's technically some overhead, but it's tiny. Correct, the overhead isn't even detectable

[issue22239] asyncio: nested event loop

2020-07-07 Thread Nathaniel Smith
Nathaniel Smith added the comment: Yeah, writing a trivial "event loop" to drive actually-synchronous code is easy. Try it out: - async def f(): print("hi from f()") await g() async def g(): print("hi from g()") # This is our event loop: coro = f() try: coro.send(None)

[issue39542] Cleanup object.h header

2020-07-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: Victor, is there any reason PyType_GetFlags() can't be converted to a macro or an inlined function? That seems like a simple and robust fix that won't get in the way of anything else you're doing. We shouldn't disregard macOS timings. It is an important

[issue41231] Type annotations lost when using wraps by default

2020-07-07 Thread Terry Davis
Terry Davis added the comment: I don't understand this use-case, but would it make sense to `ChainMap` the wrapper's __annotations__ on top of the wrapped __annotations__? -- nosy: +Terry Davis ___ Python tracker

[issue39542] Cleanup object.h header

2020-07-07 Thread Stefan Krah
Stefan Krah added the comment: s/PyPy as a bottleneck/the C-API as a bottle neck for PyPy/ -- ___ Python tracker ___ ___

[issue39542] Cleanup object.h header

2020-07-07 Thread Stefan Krah
Stefan Krah added the comment: A brief note for Victor that *nothing* was directed against him. On the contrary, msg372995 was supporting him in case the commit had actually been unreviewed, which it apparently wasn't. Sorry for jumping on the bandwagon there. > PEP 620 for the overall plan.

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-07-07 Thread mohamed koubaa
Change by mohamed koubaa : -- pull_requests: +20521 pull_request: https://github.com/python/cpython/pull/21375 ___ Python tracker ___

[issue39542] Cleanup object.h header

2020-07-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: Serhiy, do you have any insights to offer? -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue39542] Cleanup object.h header

2020-07-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: Here are two timings for math.dist(). They were run with the production macOS builds from python.org: $ python3.8 -m timeit -r 11 -s 'from math import dist' -s 'p=(1.1, 2.2); q=(1.7, 2.3)' 'dist(p, q)' 500 loops, best of 11: 58.4 nsec per loop $

[issue41231] Type annotations lost when using wraps by default

2020-07-07 Thread David Caro
New submission from David Caro : In version 3.2, bpo-8814 introduced copying the __annotations__ property from the wrapped function to the wrapper by default. That would be the desired behavior when your wrapper function has the same signature than the function it wraps, but in some cases

[issue41215] AIX: build fails for xlc/xlC since new PEG parser

2020-07-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Yeah, this looks like something else. I am closing this issue then -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue29778] [CVE-2020-15523] _Py_CheckPython3 uses uninitialized dllpath when embedder sets module path with Py_SetPath

2020-07-07 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +20520 pull_request: https://github.com/python/cpython/pull/21377 ___ Python tracker ___

[issue39542] Cleanup object.h header

2020-07-07 Thread STINNER Victor
STINNER Victor added the comment: Stefan Krah: > Christian Heimes has expressed an interest (quite rudely) in unreviewed > commits elsewhere. I wonder if that applies to everyone regardless of > employer. I don't understand the relationship between this issue, Christian Heimes and making

[issue39542] Cleanup object.h header

2020-07-07 Thread STINNER Victor
STINNER Victor added the comment: Raymond: > PyTuple_Check() got slower across the board. This is problematic because the > principal use case for PyTuple_Check() is as a guard for various fast paths. Raymond gave more context in this email:

[issue41228] Fix the typo in the description of calendar.monthcalendar(year, month)

2020-07-07 Thread Nima Dini
New submission from Nima Dini : https://docs.python.org/3.10/library/calendar.html#calendar.monthcalendar > days outside of the month a represented by zeros. "a" needs to be changed to "are" -- ___ Python tracker

[issue29778] [CVE-2020-15523] _Py_CheckPython3 uses uninitialized dllpath when embedder sets module path with Py_SetPath

2020-07-07 Thread Steve Dower
Steve Dower added the comment: > Python 3.5 is also vulnerable, no? This branch still gets security fixes, do > you plan to backport the fix? You're right. I thought because the backport tag was gone on GitHub that it was EOL already. I can do the backport. -- nosy: +larry

[issue41202] Allow to provide custom exception handler to asyncio.run()

2020-07-07 Thread Andrew Svetlov
Andrew Svetlov added the comment: I agree with Yuri. Usually, you don't need overriding of the default exception handler. Indeed, if you really need this low-level API I see nothing wrong with `asyncio.get_running_loop()` call. -- ___ Python

[issue22239] asyncio: nested event loop

2020-07-07 Thread Joshua Bronson
Change by Joshua Bronson : -- nosy: +jab ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41202] Allow to provide custom exception handler to asyncio.run()

2020-07-07 Thread tomaszdrozdz
tomaszdrozdz added the comment: https://docs.python.org/3/library/asyncio-eventloop.html#error-handling-api Here we can read: Application developers should typically use the high-level asyncio functions, such as asyncio.run(), and should rarely need to reference the loop object or call

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-07-07 Thread mohamed koubaa
Change by mohamed koubaa : -- pull_requests: +20519 pull_request: https://github.com/python/cpython/pull/21371 ___ Python tracker ___

[issue41205] Documentation Decimal power 0 to the 0 is Nan (versus 0 to the 0 which is 1)

2020-07-07 Thread Mark Dickinson
Mark Dickinson added the comment: @JD-Veiga: would you be willing to work on a PR? -- ___ Python tracker ___ ___ Python-bugs-list

[issue41191] PyType_FromModuleAndSpec is not mentioned in 3.9 What's new

2020-07-07 Thread Petr Viktorin
Change by Petr Viktorin : -- keywords: +patch pull_requests: +20518 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21374 ___ Python tracker ___

[issue41230] IDLE intellisense

2020-07-07 Thread E. Paine
E. Paine added the comment: If I understand the issue correctly, such a feature already exists. Currently, the wait before showing the list of completions is 2 seconds (https://github.com/python/cpython/blob/master/Lib/idlelib/config-extensions.def#L7) though this can be changed in

[issue41215] AIX: build fails for xlc/xlC since new PEG parser

2020-07-07 Thread Michael Felt
Michael Felt added the comment: Here is the stack trace - still during initialization: And in "ceval.c, but dbx does not like how the 'h files are being used: line 941 and 659 lines don't match :( (dbx) list "object.h" has only 659 lines Segmentation fault in _PyEval_EvalFrameDefault at line

[issue41230] IDLE intellisense

2020-07-07 Thread Saumitra Verma
Change by Saumitra Verma : -- versions: +Python 3.10, Python 3.5, Python 3.6, Python 3.7, Python 3.9 ___ Python tracker ___ ___

[issue41230] IDLE intellisense

2020-07-07 Thread Saumitra Verma
New submission from Saumitra Verma : There should be a simple autocomplete(intellisense) in idle. -- assignee: terry.reedy components: IDLE messages: 373222 nosy: Saumitra Verma, terry.reedy priority: normal severity: normal status: open title: IDLE intellisense type: enhancement

[issue41229] Asynchronous generator memory leak

2020-07-07 Thread JIanqiu Tao
New submission from JIanqiu Tao : The resource used by asynchronous generator can't be released properly when works with "asend" method. Besides, in Python 3.7-, a RuntimeError was raised when asyncio.run complete, but the message is puzzling: RuntimeError: can't send non-None value to a

[issue41207] distutils.command.build_ext raises FileNotFoundError

2020-07-07 Thread STINNER Victor
STINNER Victor added the comment: I close the issue since it's fixed. I also reset the priority. -- priority: release blocker -> resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue41207] distutils.command.build_ext raises FileNotFoundError

2020-07-07 Thread miss-islington
miss-islington added the comment: New changeset 2c82628e9aa2af4b662e92e227618859675dd726 by Miss Islington (bot) in branch '3.9': bpo-41207 In distutils.spawn, rewrite FileNotFound (GH-21359) https://github.com/python/cpython/commit/2c82628e9aa2af4b662e92e227618859675dd726 --

[issue41207] distutils.command.build_ext raises FileNotFoundError

2020-07-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +20517 pull_request: https://github.com/python/cpython/pull/21373 ___ Python tracker ___

[issue41207] distutils.command.build_ext raises FileNotFoundError

2020-07-07 Thread miss-islington
miss-islington added the comment: New changeset 6ae2780be0667a8dc52c4fb583171ec86067d700 by Jason R. Coombs in branch 'master': bpo-41207 In distutils.spawn, rewrite FileNotFound (GH-21359) https://github.com/python/cpython/commit/6ae2780be0667a8dc52c4fb583171ec86067d700 -- nosy:

[issue41215] AIX: build fails for xlc/xlC since new PEG parser

2020-07-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Master has to be something else then -- ___ Python tracker ___ ___ Python-bugs-list

[issue41221] io.TextIOWrapper ignores silently partial write if buffer is unbuffered

2020-07-07 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +inada.naoki, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41221] io.TextIOWrapper ignores silently partial write if buffer is unbuffered

2020-07-07 Thread STINNER Victor
STINNER Victor added the comment: cc Antoine Pitrou who was involved in io module design. Currently, the io.TextIOWrapper implementation doesn't handle partial write: it doesn't fully support an unbuffered 'buffer' object. It should either handle partial write internally, or it should

[issue41215] AIX: build fails for xlc/xlC since new PEG parser

2020-07-07 Thread Michael Felt
Michael Felt added the comment: On 07/07/2020 11:12, Michael Felt wrote: > Michael Felt added the comment: > > I saw the mails last night and restarted my bot - it still fails. > Checking manually for master, 3.9, 3.8 and 3.7 branches. Will let you 3.7, 3.8 and 3.9 built, master does not.

[issue29778] [CVE-2020-15523] _Py_CheckPython3 uses uninitialized dllpath when embedder sets module path with Py_SetPath

2020-07-07 Thread STINNER Victor
STINNER Victor added the comment: Steve: Python 3.5 is also vulnerable, no? This branch still gets security fixes, do you plan to backport the fix? I can do it if you are not available. -- ___ Python tracker

[issue29778] [CVE-2020-15523] _Py_CheckPython3 uses uninitialized dllpath when embedder sets module path with Py_SetPath

2020-07-07 Thread STINNER Victor
STINNER Victor added the comment: FYI this vulnerability is now tracked by: https://python-security.readthedocs.io/vuln/pysetpath-python-dll-path.html -- ___ Python tracker

[issue41220] add optional make_key argument to lru_cache

2020-07-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks, I see what you're trying to do now: 1) Given a slow function 2) that takes a complex argument 2a) that includes a hashable unique identifier 2b) and some unhashable data 3) Cache the function result using only the unique identifier The

[issue41215] AIX: build fails for xlc/xlC since new PEG parser

2020-07-07 Thread Michael Felt
Michael Felt added the comment: I saw the mails last night and restarted my bot - it still fails. Checking manually for master, 3.9, 3.8 and 3.7 branches. Will let you know asap. Yes - expecting 3.8 and 3.7 to build, but want to be sure. On 06/07/2020 23:34, Pablo Galindo Salgado wrote: >

[issue41210] LZMADecompressor.decompress(FORMAT_RAW) truncate output when input is paticular LZMA+BCJ data

2020-07-07 Thread Hiroshi Miura
Hiroshi Miura added the comment: Thank you for information about similar problem. This problem is observed and reported on 7-zip library project, https://github.com/miurahr/py7zr/issues/178. py7zr heavily depend on lzma FORMAT_RAW interface. Fortunately 7-zip container format has size

[issue41210] LZMADecompressor.decompress(FORMAT_RAW) truncate output when input is paticular LZMA+BCJ data

2020-07-07 Thread Hiroshi Miura
Change by Hiroshi Miura : Added file: https://bugs.python.org/file49301/0001-lzma-support-LZMA1-with-FORMAT_RAW.patch ___ Python tracker ___

[issue41220] add optional make_key argument to lru_cache

2020-07-07 Thread Itay azolay
Itay azolay added the comment: Yes, you're right. It's a bad example, I tried to simplify it, and I ended up oversimplifying it. Real-life cases are of course more complicated. What I wanted to accomplish, is very similar to the `key` argument in sorted/min/max/etc.. let my try and give you

[issue41228] Fix the typo in the description of calendar.monthcalendar(year, month)

2020-07-07 Thread Nima Dini
Change by Nima Dini : -- assignee: docs@python components: Documentation nosy: docs@python, ndini priority: normal pull_requests: 20516 severity: normal status: open title: Fix the typo in the description of calendar.monthcalendar(year, month) type: enhancement versions: Python 3.10

[issue41210] LZMADecompressor.decompress(FORMAT_RAW) truncate output when input is paticular LZMA+BCJ data

2020-07-07 Thread Ma Lin
Ma Lin added the comment: There was a similar issue (issue21872). When decompressing a lzma.FORMAT_ALONE format data, and it doesn't have the end marker (but has the correct "Uncompressed Size" in the .lzma header), sometimes the last one to dozens bytes can't be output. issue21872 fixed

[issue41221] Output of print() might get truncated in unbuffered mode

2020-07-07 Thread Manuel Jacob
Manuel Jacob added the comment: It’s possible to trigger the problem on Unix with much smaller sizes, e.g. by interrupting the write() with a signal handler (even if the signal handler doesn’t do anything). The following script starts a subprocess doing a 16MiB write and sends a signal,