[issue41875] __builtin_unreachable error in gcc 4.4.5

2020-09-28 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41874] datetime.strptime raises error if date is before 1900

2020-09-28 Thread Red Rooster
Red Rooster added the comment: The issue is not that the date is before 1900, the issue are german month names. That strptime understands them, first set the locale like that: locale.setlocale(locale.LC_TIME, "de_DE") -- resolution: -> not a bug stage: -> resolved status: open ->

[issue41842] Add codecs.unregister() to unregister a codec search function

2020-09-28 Thread hai shi
hai shi added the comment: oh, sorry, typo error. multiple search functions-->multiple error handler. -- ___ Python tracker ___

[issue41874] datetime.strptime raises error if date is before 1900

2020-09-28 Thread Red Rooster
New submission from Red Rooster : This fails, because the date is before 1900: d = datetime.strptime("28. Februar 1899", '%d. %B %Y') But the opposite conversion direction works: d=datetime(1899,2,28) d.strftime('%d. %B %Y') prints out "28. Februar 1899" as it should be. --

[issue41838] Value error is showing in docset python (class)

2020-09-28 Thread Eric V. Smith
Eric V. Smith added the comment: If you can provide the information requested, please reopen this issue. In the meantime, I’m closing it. -- resolution: -> rejected stage: -> resolved status: pending -> closed ___ Python tracker

[issue39027] run_coroutine_threadsafe uses wrong TimeoutError

2020-09-28 Thread pfctdayelise
pfctdayelise added the comment: Can we at least update the docs in the meantime? It's not great having incorrect docs. Then if a fix is made to revert the behaviour, it can include updating the docs back. -- nosy: +pfctdayelise ___ Python tracker

[issue41875] __builtin_unreachable error in gcc 4.4.5

2020-09-28 Thread yota moteuchi
New submission from yota moteuchi : While compiling a very recent release of Python (ie. 3.9.0rc2) with a fairly old release of gcc (ie. debian 6.0.6 gcc 4.4.5) I get the following error : gcc -pthread -c -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -std=c99 -Wextra

[issue41114] "TypeError: unhashable type" could often be more clear

2020-09-28 Thread Samuel Freilich
Samuel Freilich added the comment: > No minor tweak to the exception message will make this go away. For > understanding to occur, the only way to forward is to learn a bit about > hashability. That is a step that every beginner must take. This is a derisive and beginner-hostile response

[issue41842] Add codecs.unregister() to unregister a codec search function

2020-09-28 Thread hai shi
hai shi added the comment: > If add a function for unregistering a codec search function, it would be > worth to add also a function for unregistering an error handler. Registering an error handler have no refleaks when registering multiple search functions. +1 if end user need this

[issue41875] __builtin_unreachable error in gcc 4.4.5

2020-09-28 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +21464 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22433 ___ Python tracker ___

[issue41875] __builtin_unreachable error in gcc 4.4.5

2020-09-28 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +serhiy.storchaka, vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41875] __builtin_unreachable error in gcc 4.4.5

2020-09-28 Thread Dong-hee Na
Change by Dong-hee Na : -- versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41870] Use PEP 590 vectorcall to speed up calls to bool()

2020-09-28 Thread Dong-hee Na
Dong-hee Na added the comment: Now I close this issue. Thank you, Mark! -- nosy: +Mark.Shannon ___ Python tracker ___ ___

[issue41870] Use PEP 590 vectorcall to speed up calls to bool()

2020-09-28 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset a195bceff7b552c5f86dec7894ff24dcc87235da by Dong-hee Na in branch 'master': bpo-41870: Use PEP 590 vectorcall to speed up bool() (GH-22427) https://github.com/python/cpython/commit/a195bceff7b552c5f86dec7894ff24dcc87235da --

[issue39603] [security] http.client: HTTP Header Injection in the HTTP method

2020-09-28 Thread Larry Hastings
Larry Hastings added the comment: > Also note that httplib (python-2.7.18) seems to be affected too. Any > particular reason for it not to be listed in the same vulnerability page? Yes: 2.7 has been end-of-lifed and is no longer supported. -- ___

[issue41842] Add codecs.unregister() to unregister a codec search function

2020-09-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Although unregistering an error handler may be not so easy, so it is better to open a separate issue for it. -- keywords: +easy (C) -patch ___ Python tracker

[issue41851] tkinter: add font equal methods

2020-09-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I concur with Tal that negating size would be useless feature, and that we do not need an alternate equal() method. When we want to test that two strings are equal ignoring case we do not call a special method equalignorecase(), we just test that

[issue41875] __builtin_unreachable error in gcc 4.4.5

2020-09-28 Thread Dong-hee Na
Dong-hee Na added the comment: I am able to reproduce this issue on my gcc 4.4.7 root@ef9b356a9deb:/home/cpython# gcc --version gcc (Ubuntu/Linaro 4.4.7-8ubuntu7) 4.4.7 Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO

[issue41851] tkinter: add font equal methods

2020-09-28 Thread E. Paine
Change by E. Paine : -- pull_requests: +21465 pull_request: https://github.com/python/cpython/pull/22434 ___ Python tracker ___ ___

[issue14527] How to link with a non-system libffi?

2020-09-28 Thread pmp-p
Change by pmp-p : -- nosy: -pmpp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41859] Uncaught ValueError

2020-09-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Reports with a reproducer are also helpful. Again, can you get a completion box at all? -- ___ Python tracker ___

[issue41876] Add __repr__ for Tkinter Font objects

2020-09-28 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Currently Font objects have default repr: Since Font is just an object oriented wrapper for font name, and Font objects with the same name are equal, it is worth to show the font name in the repr and do not show an id. --

[issue39603] [security] http.client: HTTP Header Injection in the HTTP method

2020-09-28 Thread Mauro Matteo Cascella
Mauro Matteo Cascella added the comment: Hello, CVE-2020-26116 has been requested/assigned for this flaw via MITRE form: https://cveform.mitre.org/ I suggest mentioning it in the related vulnerability page: https://python-security.readthedocs.io/vuln/http-header-injection-method.html Also

[issue24427] subclass of multiprocessing Connection segfault upon attribute acces

2020-09-28 Thread Irit Katriel
Irit Katriel added the comment: The fact that a bug was discovered a long time ago doesn't say anything about its relevance (hence old issues are not automatically closed). In this case I believe the bug is no longer relevant and therefore the issue can be closed. --

[issue41756] Do not always use exceptions to return result from coroutine

2020-09-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No, I meant a function which combines PyGen_Send, tp_iternext and _PyGen_FetchStopIterationValue. Was not it in your PR? -- ___ Python tracker

[issue41873] Add vectorcall for float()

2020-09-28 Thread Dennis Sweeney
Change by Dennis Sweeney : -- keywords: +patch pull_requests: +21463 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22432 ___ Python tracker ___

[issue41873] Add vectorcall for float()

2020-09-28 Thread Dennis Sweeney
New submission from Dennis Sweeney : I got these benchmarks: .\python.bat -m pyperf timeit "float(0)" Before: Mean +- std dev: 79.0 ns +- 1.0 ns After: Mean +- std dev: 51.5 ns +- 1.6 ns -- components: Interpreter Core messages: 377590 nosy: Dennis Sweeney priority: normal severity:

[issue41851] tkinter: add font equal methods

2020-09-28 Thread Tal Einat
Tal Einat added the comment: P.P.S. Re-reading that piece of code for IDLE's font config dialog, that actually looks to be intentional and correct. -- ___ Python tracker ___

[issue41851] tkinter: add font equal methods

2020-09-28 Thread Tal Einat
Tal Einat added the comment: > > I also think using [.equal] wouldn't add anything > I disagree and will stand by this one! Please do note that the full quote was "I also think using it wouldn't add anything, and would be less clear, compared to font1.actual() == font2.actual()". > I

[issue41877] Check against misspellings of assert etc. in mock

2020-09-28 Thread Vedran Čačić
Vedran Čačić added the comment: How about we actually _solve_ the problem, instead of masking it with layer upon layer of obfuscation? Python has standalone functions. assert_called (and company) should just be functions, they shouldn't be methods, and the problem is solved elegantly. The

[issue37294] concurrent.futures.ProcessPoolExecutor state=finished raised error

2020-09-28 Thread DanilZ
DanilZ added the comment: After executing a single task inside a process the result is returned with state=finished raised error. Error happens when trying to load a big dataset (over 5 GB). Otherwise the same dataset reduced to a smaller nrows executes and returns from result() without

[issue41877] Check against misspellings of assert etc. in mock

2020-09-28 Thread Václav Brožek
New submission from Václav Brožek : Recently we cleaned up the following typos in mocks in unittests of our codebase: * Wrong prefixes of mock asserts: asert/aseert/assrt -> assert * Wrong attribute names around asserts: autospect/auto_spec -> autospec, set_spec -> spec_set Especially the

[issue14527] How to link with a non-system libffi?

2020-09-28 Thread pmp-p
Change by pmp-p : -- nosy: +pmpp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40105] Updating zip comment doesn't truncate the zip file

2020-09-28 Thread miss-islington
miss-islington added the comment: New changeset e4008404fbc0002c49becc565d42e93eca11dd75 by Miss Islington (bot) in branch '3.8': bpo-40105: ZipFile truncate in append mode with shorter comment (GH-19337) https://github.com/python/cpython/commit/e4008404fbc0002c49becc565d42e93eca11dd75

[issue41756] Do not always use exceptions to return result from coroutine

2020-09-28 Thread Vladimir Matveev
Vladimir Matveev added the comment: No, I don't think so but I can definitely make one. A few questions first: - having PySendResult as a result type of PyIterSend seems ok, however prefix for each concrete value (PYGEN_*) is not aligned with the prefix of the function itself (PyIter_) -

[issue41114] "TypeError: unhashable type" could often be more clear

2020-09-28 Thread Irit Katriel
Irit Katriel added the comment: I think it's reasonable to discuss the problem on python-ideas rather than on a bugs issue, when it's not obvious what the right solution is. -- ___ Python tracker

[issue41870] Use PEP 590 vectorcall to speed up calls to bool()

2020-09-28 Thread STINNER Victor
STINNER Victor added the comment: You can put ok<0 test in the if (nargs) branch, to avoid the test when nargs=0. -- ___ Python tracker ___

[issue40105] Updating zip comment doesn't truncate the zip file

2020-09-28 Thread Tal Einat
Change by Tal Einat : -- versions: +Python 3.10, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40105] Updating zip comment doesn't truncate the zip file

2020-09-28 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +21466 pull_request: https://github.com/python/cpython/pull/22436 ___ Python tracker

[issue40105] Updating zip comment doesn't truncate the zip file

2020-09-28 Thread Tal Einat
Tal Einat added the comment: Thanks for the report and initial PR, Yudi! Thanks for the second PR, Jan! -- nosy: -miss-islington resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue40105] Updating zip comment doesn't truncate the zip file

2020-09-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +21467 pull_request: https://github.com/python/cpython/pull/22437 ___ Python tracker ___

[issue40105] Updating zip comment doesn't truncate the zip file

2020-09-28 Thread Tal Einat
Tal Einat added the comment: New changeset ff9147d93b868f0e13b9fe14e2a76c2879f6787b by Jan Mazur in branch 'master': bpo-40105: ZipFile truncate in append mode with shorter comment (GH-19337) https://github.com/python/cpython/commit/ff9147d93b868f0e13b9fe14e2a76c2879f6787b -- nosy:

[issue41878] python3 fails to use custom dict-like object as symbols in eval()

2020-09-28 Thread Robert Haschke
New submission from Robert Haschke : The attached file implements a custom dict-like class (MyDict) as a minimal example of code I am using in a larger codebase. Before you ask, why I reimplemented a dict-like object: The real code base employs a hierarchical dict, referencing recursively to

[issue40105] Updating zip comment doesn't truncate the zip file

2020-09-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +21468 pull_request: https://github.com/python/cpython/pull/22439 ___ Python tracker ___

[issue41773] Clarify handling of infinity and nan in random.choices

2020-09-28 Thread Ram Rachum
Ram Rachum added the comment: Sounds good, I'm on it. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40105] Updating zip comment doesn't truncate the zip file

2020-09-28 Thread miss-islington
miss-islington added the comment: New changeset 048f54dc75d51e8a1c5822ab7b2828295192aaa5 by Miss Islington (bot) in branch '3.9': bpo-40105: ZipFile truncate in append mode with shorter comment (GH-19337) https://github.com/python/cpython/commit/048f54dc75d51e8a1c5822ab7b2828295192aaa5

[issue41851] tkinter: add font equal methods

2020-09-28 Thread Tal Einat
Change by Tal Einat : -- assignee: -> docs@python components: +Documentation nosy: +docs@python ___ Python tracker ___ ___

[issue41875] __builtin_unreachable error in gcc 4.4.5

2020-09-28 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 24ba3b0df5e5f2f237d7b23b4017ba12f16320ae by Dong-hee Na in branch 'master': bpo-41875: Use __builtin_unreachable when possible (GH-22433) https://github.com/python/cpython/commit/24ba3b0df5e5f2f237d7b23b4017ba12f16320ae --

[issue41877] Check against misspellings of assert etc. in mock

2020-09-28 Thread Vedran Čačić
Vedran Čačić added the comment: It would be a valid argument if the API _worked_. Obviously, it doesn't. Every few years, the same story repeats. "We've found even more missspellings of assert, we need to add them too. They cause real bugs in our tests." I have a strong feeling it will never

[issue40554] Add escape to the glossary?

2020-09-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: For the reasons mentioned by Inada, I don't think this should be added. The term "escape" means many different things in different contexts. To the extent the term needs to be defined, it should be done in the docs for those contexts (i.e. regular

[issue41875] __builtin_unreachable error in gcc 4.4.5

2020-09-28 Thread STINNER Victor
STINNER Victor added the comment: FYI __builtin_unreachable() is used since this change, of bpo-38249: commit eebaa9bfc593d5a46b293c1abd929fbfbfd28199 Author: Serhiy Storchaka Date: Mon Mar 9 20:49:52 2020 +0200 bpo-38249: Expand Py_UNREACHABLE() to __builtin_unreachable() in the

[issue40554] Add escape to the glossary?

2020-09-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I concur with Raymond. Are there problems with understanding the term "escape" in some context? If yes, then we perhaps need to clarify the corresponding place in the documentation. But if there is a problem with understanding the general word "escape", I

[issue41875] __builtin_unreachable error in gcc 4.4.5

2020-09-28 Thread STINNER Victor
STINNER Victor added the comment: Lukasz: Would you mind to cherry-pick the commit cca896e13b230a934fdb709b7f10c5451ffc25ba in 3.9.0 final? -- priority: normal -> release blocker ___ Python tracker

[issue41842] Add codecs.unregister() to unregister a codec search function

2020-09-28 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41842] Add codecs.unregister() to unregister a codec search function

2020-09-28 Thread STINNER Victor
STINNER Victor added the comment: The function is added, I close the issue. Thanks Hai Shi. -- ___ Python tracker ___ ___

[issue41880] Get Python include directories from sysconfigdata

2020-09-28 Thread Ben Wolsieffer
New submission from Ben Wolsieffer : The distutils.sysconfig.get_python_inc() function finds headers relative to sys.base_prefix or sys.base_exec_prefix. This causes problems when cross-compiling extension modules because Python's headers are not platform independent. Instead,

[issue41879] Outdated description of async iterables in documentation of async for statement

2020-09-28 Thread Nick Gaya
New submission from Nick Gaya : The documentation for the `async for` statement incorrectly states that "An asynchronous iterable is able to call asynchronous code in its iter implementation". Actually, this behavior was deprecated in Python 3.6 and removed in Python 3.7. As of Python 3.7,

[issue41881] New Line escape issue in raw strings

2020-09-28 Thread Kevin Ardath
New submission from Kevin Ardath : When attempting to concatenate some strings with a new line, I observed that formatting braces in a raw string skipped a new line escape: print(r'{{}}\nx'.format()) Produces: {}\nx Rather than: {} x -- messages: 377624 nosy: ardath.kevin priority:

[issue41875] __builtin_unreachable error in gcc 4.4.5

2020-09-28 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +21471 pull_request: https://github.com/python/cpython/pull/22442 ___ Python tracker

[issue38989] pip install selects 32 bit wheels for 64 bit python if vcvarsall.bat amd64_x86 in environment

2020-09-28 Thread Steve Dower
Steve Dower added the comment: I'm closing this as external, as the canonical source for platform tags is now the packaging library. Either pip and/or distlib should switch to using that library or the logic included (which I'll note is considerably more complex - but also more well

[issue40554] Add escape to the glossary?

2020-09-28 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 3.0 -> 4.0 pull_requests: +21472 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22342 ___ Python tracker

[issue41170] Use strnlen instead of strlen when the size i known.

2020-09-28 Thread STINNER Victor
STINNER Victor added the comment: "Use strnlen instead of strlen when the size i known" rationale was "This PR changes strlen to strnlen so no buffer overruns are made when there's no null terminator", but strlen() was not called whne the string was not null terminated. Serhiy wrote that

[issue41170] Use strnlen instead of strlen when the size i known.

2020-09-28 Thread STINNER Victor
STINNER Victor added the comment: PR 21236 was closed by his author, can this issue be closed? -- nosy: +vstinner ___ Python tracker ___

[issue39603] [security][ CVE-2020-26116] http.client: HTTP Header Injection in the HTTP method

2020-09-28 Thread STINNER Victor
STINNER Victor added the comment: Mauro Matteo Cascella: "CVE-2020-26116 has been requested/assigned for this flaw via MITRE form: https://cveform.mitre.org/ I suggest mentioning it in the related vulnerability page:

[issue41882] CCompiler.has_function does not delete temporary files

2020-09-28 Thread Mikhail Terekhov
New submission from Mikhail Terekhov : CCompiler.has_function does not delete temporary files. Depending on the check result it leaves temporary C source, object and executable files. -- components: Distutils messages: 377646 nosy: dstufft, eric.araujo, termim priority: normal

[issue41773] Clarify handling of infinity and nan in random.choices

2020-09-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: I've discussed this with other developers and now agree that a test should be added. While the current code's handing of Inf or NaN is correct in a technical sense, it is neither intuitive or useful. Even though it will have a small time cost for the

[issue41877] Check against misspellings of assert etc. in mock

2020-09-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: Václav, I support your suggestion and suggest that you move forward to prepare a PR. Vedran, this API has been set in stone for a long time, so changing is disruptive. If you really think the API needs to be redesigned, consider bringing it up on

[issue41842] Add codecs.unregister() to unregister a codec search function

2020-09-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset d332e7b8164c3c9c885b9e631f33d9517b628b75 by Hai Shi in branch 'master': bpo-41842: Add codecs.unregister() function (GH-22360) https://github.com/python/cpython/commit/d332e7b8164c3c9c885b9e631f33d9517b628b75 --

[issue41881] New Line escape issue in raw strings

2020-09-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is expected behavior. \n in a raw string means two characters, backslash and "n", not a single newline character. Use non-raw string to embed a newline character. -- nosy: +serhiy.storchaka ___ Python

[issue41842] Add codecs.unregister() to unregister a codec search function

2020-09-28 Thread STINNER Victor
STINNER Victor added the comment: PR 22360 required 15 iterations (15 commits) and it changes a lot of code. I wouldn't say that it's an "easy (C)" issue. -- ___ Python tracker

[issue41842] Add codecs.unregister() to unregister a codec search function

2020-09-28 Thread STINNER Victor
STINNER Victor added the comment: codecs.unregister() is needed to write unit tests: see PR 19069 of bpo-39337. I don't see a strong need to add a new codecs.unregister_error() function, excpet for completeness. I don't think that completeness is enough to justify to add the function, but

[issue41871] Add PyList_Remove() in listobject.c

2020-09-28 Thread STINNER Victor
STINNER Victor added the comment: I proposed to Hai Shi in his PR to add PyList_Remove() since I was surprised that the feature is exposed in Python but not at the C level. > You always can use PyObject_CallMethod(). It is not a method called in tight > loop for which the overhead of

[issue41882] CCompiler.has_function does not delete temporary files

2020-09-28 Thread Mikhail Terekhov
Change by Mikhail Terekhov : -- keywords: +patch pull_requests: +21475 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22446 ___ Python tracker

[issue41773] Clarify handling of infinity and nan in random.choices

2020-09-28 Thread Ram Rachum
Change by Ram Rachum : -- keywords: +patch pull_requests: +21470 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/22441 ___ Python tracker

[issue41880] Get Python include directories from sysconfigdata

2020-09-28 Thread Ben Wolsieffer
Change by Ben Wolsieffer : -- keywords: +patch pull_requests: +21469 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22440 ___ Python tracker ___

[issue41738] MIME type for *.zip becomes application/x-zip-compressed on Windows

2020-09-28 Thread Steve Dower
Steve Dower added the comment: mimetype uses the system database for MIME types, which on Windows is application/x-zip-compressed, so this is by design. If you have a need to specify a MIME type that does not match the system you're on, you'll need your own logic. -- resolution:

[issue39027] run_coroutine_threadsafe uses wrong TimeoutError

2020-09-28 Thread Nick Gaya
Nick Gaya added the comment: @msg358296: > IMO, it seems rather counter-intuitive to have to specify > `concurrent.futures.TimeoutError` when using a timeout for the future > returned by `run_coroutine_threadsafe()`. I think that's expected, given that the function returns a

[issue41756] Do not always use exceptions to return result from coroutine

2020-09-28 Thread Vladimir Matveev
Change by Vladimir Matveev : -- pull_requests: +21473 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/22443 ___ Python tracker ___

[issue41861] Convert sqlite3 to PEP 384

2020-09-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset cb6db8b6ae47dccc1aa97830d0f05d29f31e0cbc by Erlend Egeberg Aasland in branch 'master': bpo-41861: Convert _sqlite3 PrepareProtocolType to heap type (GH-22428) https://github.com/python/cpython/commit/cb6db8b6ae47dccc1aa97830d0f05d29f31e0cbc

[issue41875] __builtin_unreachable error in gcc 4.4.5

2020-09-28 Thread miss-islington
miss-islington added the comment: New changeset cca896e13b230a934fdb709b7f10c5451ffc25ba by Miss Islington (bot) in branch '3.9': bpo-41875: Use __builtin_unreachable when possible (GH-22433) https://github.com/python/cpython/commit/cca896e13b230a934fdb709b7f10c5451ffc25ba --

[issue41861] Convert sqlite3 to PEP 384

2020-09-28 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- pull_requests: +21474 pull_request: https://github.com/python/cpython/pull/22444 ___ Python tracker ___

[issue41114] "TypeError: unhashable type" could often be more clear

2020-09-28 Thread Samuel Freilich
Samuel Freilich added the comment: > I think it's reasonable to discuss the problem on python-ideas rather than on > a bugs issue, when it's not obvious what the right solution is. I did start a thread there. Don't object to that, if that's a better forum for this sort of thing. --

[issue41873] Add vectorcall for float()

2020-09-28 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset e8acc355d430b45f1c3ff83312e72272262a854f by Dennis Sweeney in branch 'master': bpo-41873: Add vectorcall for float() (GH-22432) https://github.com/python/cpython/commit/e8acc355d430b45f1c3ff83312e72272262a854f -- nosy: +corona10

[issue41773] Clarify handling of infinity and nan in random.choices

2020-09-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the PR and for filing the issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue40554] Add escape to the glossary?

2020-09-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: s/rely/read/ -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41773] Clarify handling of infinity and nan in random.choices

2020-09-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset b0dfc7581697f20385813582de7e92ba6ba0105f by Ram Rachum in branch 'master': bpo-41773: Raise exception for non-finite weights in random.choices(). (GH-22441) https://github.com/python/cpython/commit/b0dfc7581697f20385813582de7e92ba6ba0105f

[issue41881] New Line escape issue in raw strings

2020-09-28 Thread Kevin Ardath
Change by Kevin Ardath : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue41873] Add vectorcall for float()

2020-09-28 Thread Dong-hee Na
Dong-hee Na added the comment: Now float() is faster! Thank you for your contribution, Dennis :) And thank you Victor as co-reviewer! -- nosy: +vstinner resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue41879] Outdated description of async iterables in documentation of async for statement

2020-09-28 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +asyncio nosy: +asvetlov, yselivanov ___ Python tracker ___ ___

[issue41878] python3 fails to use custom mapping object as symbols in eval()

2020-09-28 Thread Robert Haschke
Robert Haschke added the comment: Looks like the list generator is considered as a new nested scope, which prohibits access to local variables? This basic expression, passing local symbols only, fails as well: eval('[abc[i]*abc[i] for i in [0, 1, 2]]', {}, dict(abc=[1, 2, 3])) while this

[issue41774] While removing element from list using for and remove(), which has same items output is not right

2020-09-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 5b0181d1f6474c2cb9b80bdaf3bc56a78bf5fbe7 by Terry Jan Reedy in branch 'master': bpo-41774: Add programming FAQ entry (GH-22402) https://github.com/python/cpython/commit/5b0181d1f6474c2cb9b80bdaf3bc56a78bf5fbe7 --

[issue41883] ctypes pointee goes out of scope, then pointer in struct dangles and crashes

2020-09-28 Thread Ian M. Hoffman
New submission from Ian M. Hoffman : A description of the problem, complete example code for reproducing it, and a work-around are available on SO at the link: https://stackoverflow.com/questions/64083376/python-memory-corruption-after-successful-return-from-a-ctypes-foreign-function In

[issue41774] While removing element from list using for and remove(), which has same items output is not right

2020-09-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +21478 pull_request: https://github.com/python/cpython/pull/22448 ___ Python tracker ___

[issue41774] While removing element from list using for and remove(), which has same items output is not right

2020-09-28 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +21477 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/22447 ___ Python tracker

[issue41774] While removing element from list using for and remove(), which has same items output is not right

2020-09-28 Thread miss-islington
miss-islington added the comment: New changeset d50a0700265536a20bcce3fb108c954746d97625 by Miss Islington (bot) in branch '3.8': bpo-41774: Add programming FAQ entry (GH-22402) https://github.com/python/cpython/commit/d50a0700265536a20bcce3fb108c954746d97625 --

[issue41774] While removing element from list using for and remove(), which has same items output is not right

2020-09-28 Thread miss-islington
miss-islington added the comment: New changeset 868c8e41eb1d7dc032679ae06e62c0d60edd7725 by Miss Islington (bot) in branch '3.9': bpo-41774: Add programming FAQ entry (GH-22402) https://github.com/python/cpython/commit/868c8e41eb1d7dc032679ae06e62c0d60edd7725 --

[issue41883] ctypes pointee goes out of scope, then pointer in struct dangles and crashes

2020-09-28 Thread Eryk Sun
Eryk Sun added the comment: I think this is a numpy issue. Its data_as() method doesn't support the ctypes _objects protocol to keep the numpy array referenced by subsequently created ctypes objects. For example: import ctypes import numpy as np dtype = ctypes.c_double