[issue41953] Confusing error message of 50,*2

2020-10-05 Thread wyz23x2
wyz23x2 added the comment: Just updated to 3.9. Fixed. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___

[issue41953] Confusing error message of 50,*2

2020-10-05 Thread wyz23x2
wyz23x2 added the comment: >>> '1', * 2 Traceback (most recent call last): File "", line 3, in TypeError: 'int' object is not iterable Update: 2.__iter__ seems to be called. -- ___ Python tracker

[issue41953] Confusing error message of 50,*2

2020-10-05 Thread wyz23x2
New submission from wyz23x2 : >>> (50,) * 2 (50, 50) >>> 50, * 2 Traceback (most recent call last): File "", line 2, in TypeError: 'int' object is not iterable This message is confusing. It isn't clear that 50.__iter__ is called. tuple(50)*2 seems to happen, which isn't expected (at least

[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2020-10-05 Thread Bug Reporter
Bug Reporter added the comment: Just tested python 3.9.0 - same issue. -- versions: +Python 3.9 ___ Python tracker ___ ___

[issue41951] python-3.8.2.exe /uninstall /quiet fails woth Exit code: 0x643

2020-10-05 Thread XIAO AN ZHENG
Change by XIAO AN ZHENG : -- title: python-3.6.8.exe /uninstall /quiet fails woth Exit code: 0x643 -> python-3.8.2.exe /uninstall /quiet fails woth Exit code: 0x643 ___ Python tracker

[issue41952] Top Sentence Had a Extra Space Between "Oct" and "5"

2020-10-05 Thread Steven Yan
Change by Steven Yan : -- title: Extra Space Between "Oct" and "5" -> Top Sentence Had a Extra Space Between "Oct" and "5" ___ Python tracker ___

[issue41952] Extra Space Between "Oct" and "5"

2020-10-05 Thread Steven Yan
Change by Steven Yan : -- assignee: terry.reedy components: IDLE nosy: sy, terry.reedy priority: normal severity: normal status: open title: Extra Space Between "Oct" and "5" type: enhancement versions: Python 3.9 ___ Python tracker

[issue41951] python-3.6.8.exe /uninstall /quiet fails woth Exit code: 0x643

2020-10-05 Thread XIAO AN ZHENG
XIAO AN ZHENG added the comment: The issue is happening very randomly, and caused by uninstalling Python 3.8.2 which wrongly detected core_JustForMe even it was only installed Python for All users : [1E18:1B64][2020-09-30T11:16:11]i101: Detected package: core_AllUsers, state: Present,

[issue27321] Email parser creates a message object that can't be flattened

2020-10-05 Thread Mark Sapiro
Mark Sapiro added the comment: I work around it with ``` class Message(email.message.Message): def as_string(self): # Work around for https://bugs.python.org/issue27321 and # https://bugs.python.org/issue32330. try: value =

[issue41951] python-3.6.8.exe /uninstall /quiet fails woth Exit code: 0x643

2020-10-05 Thread XIAO AN ZHENG
New submission from XIAO AN ZHENG : The issue is caused by uninstalling Python 3.8.2 which wrongly detected  core_JustForMe even API only installed Python for All users : [1E18:1B64][2020-09-30T11:16:11]i101: Detected package: core_AllUsers, state: Present, cached: Complete

[issue41950] Typo in Python 3.9 what's new page

2020-10-05 Thread Weiliang Li
Change by Weiliang Li : -- keywords: +patch pull_requests: +21568 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22573 ___ Python tracker ___

[issue41950] Typo in Python 3.9 what's new page

2020-10-05 Thread Weiliang Li
New submission from Weiliang Li : CONTAINS_OP for ‘in’ and ‘is not’ tests should be CONTAINS_OP for ‘in’ and ‘not in’ tests Ref: https://bugs.python.org/issue39156 -- assignee: docs@python components: Documentation messages: 378085 nosy: docs@python, kigawas priority: normal

[issue41949] Redefinition of HMAC functions prevents static linking

2020-10-05 Thread Gregory Szorc
Gregory Szorc added the comment: My workaround was to remove `|| defined(LIBRESSL_VERSION_NUMBER)`. That works with LibreSSL 3.1.4. I'm unsure if the symbols were introduced in a specific version though. But since python-build-standalone pins all dependencies, this is a safe patch for me.

[issue27321] Email parser creates a message object that can't be flattened

2020-10-05 Thread Mark Diekhans
Mark Diekhans added the comment: any chance of getting this merged? A work-around is not obvious -- nosy: +diekhans ___ Python tracker ___

[issue32222] pygettext doesn't extract docstrings for functions with type annotated params

2020-10-05 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue35291] duplicate of memoryview from io.BufferedWriter leaks

2020-10-05 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue41949] Redefinition of HMAC functions prevents static linking

2020-10-05 Thread Benjamin Peterson
Benjamin Peterson added the comment: Note these are guarded by #if (OPENSSL_VERSION_NUMBER < 0x1010L) || defined(LIBRESSL_VERSION_NUMBER) which suggests that needs to tweaked -- nosy: +benjamin.peterson ___ Python tracker

[issue41949] Redefinition of HMAC functions prevents static linking

2020-10-05 Thread Gregory Szorc
Gregory Szorc added the comment: I was going to work around this in python-build-standalone (https://github.com/indygreg/python-build-standalone) by reverting to OpenSSL for builds. But we must use LibreSSL when linking against musl libc due to some random weirdness getting OpenSSL to

[issue41949] Redefinition of HMAC functions prevents static linking

2020-10-05 Thread Gregory Szorc
Change by Gregory Szorc : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41949] Redefinition of HMAC functions prevents static linking

2020-10-05 Thread Gregory Szorc
Change by Gregory Szorc : -- type: -> compile error ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41949] Redefinition of HMAC functions prevents static linking

2020-10-05 Thread Gregory Szorc
New submission from Gregory Szorc : Commit 54f2898fe7e4ca1f239e96284af3cc5b34d2ae02 (bpo-40645) introduced the functions HMAC_CTX_new, HMAC_CTX_free, and HMAC_CTX_get_md. These functions share the same names as HMAC functions provided by OpenSSL/LibreSSL. If you attempt to statically link

[issue40864] spec_set/autospec/spec seems to not be reading attributes defined in class body

2020-10-05 Thread Evan Fagerberg
Change by Evan Fagerberg : -- keywords: +patch pull_requests: +21567 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22572 ___ Python tracker ___

[issue41947] Tests When Building Python

2020-10-05 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> not a bug stage: -> resolved status: open -> closed type: -> behavior ___ Python tracker ___

[issue32902] FileInput "inplace" redirects output of other threads

2020-10-05 Thread Irit Katriel
Irit Katriel added the comment: In general, stackoverflow is a better place for questions like this - you are likely to get a quicker response there. -- ___ Python tracker

[issue32902] FileInput "inplace" redirects output of other threads

2020-10-05 Thread Irit Katriel
Irit Katriel added the comment: stdout is indeed shared between all threads, and it is also not guaranteed to be thread safe, so if two threads write to it simultaneously that can cause problems. It is better to have one thread in you program writing to stdout, with thread-safe

[issue41934] Add `has` method to `pathlib.Path` class.

2020-10-05 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35291] duplicate of memoryview from io.BufferedWriter leaks

2020-10-05 Thread Irit Katriel
Irit Katriel added the comment: I tried the script on master (windows), and the problem is not reproducible. The OP also wrote that this is a 2.7-only issue, so it seems to be out of date. -- nosy: +iritkatriel, serhiy.storchaka type: -> resource usage

[issue40864] spec_set/autospec/spec seems to not be reading attributes defined in class body

2020-10-05 Thread Evan Fagerberg
Evan Fagerberg added the comment: Reflecting on it more, there should be a sensible way to retrieve the set attributes of the init method of any class without explicitly instantiating it, via the inspect module. -- ___ Python tracker

[issue18163] Add a 'key' attribute to KeyError

2020-10-05 Thread Orian Zinger
Change by Orian Zinger : -- components: -Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18163] Add a 'key' attribute to KeyError

2020-10-05 Thread Orian Zinger
Orian Zinger added the comment: Hi all, As a Python developer, I encountered lots of blurry exception messages in the product logs such as: Failed to do something. Exception: 'some key' I believe printing the key name without explaining the exception itself is bad (explicit is better

[issue41948] Runtime error while trying to use Python3.9 with virtualenv

2020-10-05 Thread Abhi R
New submission from Abhi R : I tried to create a new virtual environment using virtualenv and the newly released Python3.9 version and I got a runtime error saying " failed to find interpreter for Builtin discover of python_spec='python3.9'". -- components: Interpreter Core files:

[issue41933] Wording of s * n in Common Sequence Operations is not optimal

2020-10-05 Thread Chavdar Yotov
Change by Chavdar Yotov : -- keywords: +patch pull_requests: +21566 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22570 ___ Python tracker ___

[issue41584] Clarify documentation for binary arithmetic operation subclass __r*__ precedence

2020-10-05 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue32192] Provide importlib.util.lazy_import helper function

2020-10-05 Thread Brett Cannon
Brett Cannon added the comment: Yep, I think the example is enough to close this. Thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue41947] Tests When Building Python

2020-10-05 Thread Eric V. Smith
Eric V. Smith added the comment: You could try setting EXTRATESTOPTS, although I haven't tried it. This question is probably better asked on python-list or StackOverflow. -- ___ Python tracker

[issue41947] Tests When Building Python

2020-10-05 Thread Michael L. Boom
Michael L. Boom added the comment: When I do the ./configure, make -j 32, and make install it runs 416 tests in sequence. Is there a way to make it run 32 unit tests at a time so it is much quicker? Thanks. -- ___ Python tracker

[issue36207] robotsparser deny all with some rules

2020-10-05 Thread Matthieu hemea
Matthieu hemea added the comment: Hi, Does anyone find the solution ? It would help me for this one : https://www.hemea.com/fr/devis-travaux -- nosy: +matthieuhemea -Jmgray47, Patrick Valibus 410 Gone, amiir.mascud, arnaud, calamina, jeanotlapin

[issue41933] Wording of s * n in Common Sequence Operations is not optimal

2020-10-05 Thread Chavdar Yotov
Chavdar Yotov added the comment: Looks like a fitting first contribution. Working on a PR now :-) -- nosy: +chavdar ___ Python tracker ___

[issue41947] Tests When Building Python

2020-10-05 Thread Eric V. Smith
Eric V. Smith added the comment: >From the test.regrtest help: -j PROCESSES, --multiprocess PROCESSES run PROCESSES processes at once So, if you want to run 4 processes in parallel: ./python -m test.regrtest -j4 -- nosy: +eric.smith

[issue41584] Clarify documentation for binary arithmetic operation subclass __r*__ precedence

2020-10-05 Thread miss-islington
miss-islington added the comment: New changeset 4aad1e5770fab72908f922a7876075d3d5a7c0d0 by Miss Skeleton (bot) in branch '3.9': bpo-41584: clarify when the reflected method of a binary arithemtic operator is called (GH-22505)

[issue40430] ast.Slice is no longer a subclass of ast.slice

2020-10-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Even if make ast.Slice a (virtual) subclass of ast.slice it will not help much, because we cannot do it for ast.Index and ast.ExtSlice. ast.ExtSlice is not replaced with ast.Tuple, and any node type can now be used instead of ast.Index. The code that does

[issue41584] Clarify documentation for binary arithmetic operation subclass __r*__ precedence

2020-10-05 Thread miss-islington
miss-islington added the comment: New changeset 31ceccb2c77854893f3a754aca04bedd74bedb10 by Miss Skeleton (bot) in branch '3.8': bpo-41584: clarify when the reflected method of a binary arithemtic operator is called (GH-22505)

[issue41939] 3.9.0 test_site warning: "urllib.requests._opener was modified by test_site"

2020-10-05 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 10b4136bfa5878c058753e1d1bd091e0f7e1ba40 by Miss Skeleton (bot) in branch '3.9': bpo-41939: Fix test_site.test_license_exists_at_url() (GH-22559) (#22567) https://github.com/python/cpython/commit/10b4136bfa5878c058753e1d1bd091e0f7e1ba40

[issue41584] Clarify documentation for binary arithmetic operation subclass __r*__ precedence

2020-10-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +21565 pull_request: https://github.com/python/cpython/pull/22569 ___ Python tracker ___

[issue41584] Clarify documentation for binary arithmetic operation subclass __r*__ precedence

2020-10-05 Thread Brett Cannon
Brett Cannon added the comment: New changeset d02d824e05e2cb86f4df381be18832e76e2c475f by Brett Cannon in branch 'master': bpo-41584: clarify when the reflected method of a binary arithemtic operator is called (#22505)

[issue41584] Clarify documentation for binary arithmetic operation subclass __r*__ precedence

2020-10-05 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +21564 stage: commit review -> patch review pull_request: https://github.com/python/cpython/pull/22568 ___ Python tracker

[issue41947] Tests When Building Python

2020-10-05 Thread Michael L. Boom
New submission from Michael L. Boom : When building Python it runs 416 tests in sequence. It would be a "lot" faster if these were run in parallel. -- components: Installation messages: 378062 nosy: boom0192 priority: normal severity: normal status: open title: Tests When Building

[issue38490] statistics: add covariance, Pearson's correlation, and simple linear regression

2020-10-05 Thread Tal Einat
Tal Einat added the comment: Given the discussion here and the state of the attached PR, I intend to merge the PR in several weeks, unless someone has anything else to say. -- nosy: +taleinat ___ Python tracker

[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2020-10-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I would have assumed that it's only making a promise that it > registers all the methods and properties marked *abstract* in > the ABC. Do you have references to back up the stronger statement? The isn't some weird or incidental promise. It is the

[issue41939] 3.9.0 test_site warning: "urllib.requests._opener was modified by test_site"

2020-10-05 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +21563 pull_request: https://github.com/python/cpython/pull/22567 ___ Python tracker

[issue41939] 3.9.0 test_site warning: "urllib.requests._opener was modified by test_site"

2020-10-05 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 1fce240d6c4b2b2cc17a86e88c65169e15b9feeb by Victor Stinner in branch 'master': bpo-41939: Fix test_site.test_license_exists_at_url() (#22559) https://github.com/python/cpython/commit/1fce240d6c4b2b2cc17a86e88c65169e15b9feeb --

[issue27032] Remove deprecated html.parser.HTMLParser.unescape()

2020-10-05 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 8dd430265ccd4d34b74c841d6bcc8f58aa93ad94 by Łukasz Langa (Terry Jan Reedy) in branch '3.9': [3.9] bpo-27032, bpo-37328: Document removing HTMLParser.unescape() (GH-22288)

[issue37062] `AutoNumber` class in enum documentation: support *args in constructor

2020-10-05 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset e8165e79f57cb3ca60bf031c417f8fd20c99eaa2 by Łukasz Langa (Miss Islington (bot)) in branch '3.9': bpo-37062: Enum: add extended AutoNumber example (GH-22349) (GH-22370)

[issue41762] Documentation job fails on CIs: duplicate token description of format_spec

2020-10-05 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset e5cc5fd89cc8855ad644ce4ba5e7de766313e418 by Łukasz Langa (Miss Islington (bot)) in branch '3.9': bpo-41762: Fix usage of productionlist markup in the doc (GH-22281) https://github.com/python/cpython/commit/e5cc5fd89cc8855ad644ce4ba5e7de766313e418

[issue41858] Fix incomplete line on optparse documentation

2020-10-05 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset a5750cf43466f5913cdeef774f7c2dcb5943d408 by Łukasz Langa (Miss Islington (bot)) in branch '3.9': bpo-41858: Clarify line in optparse doc (GH-22407) https://github.com/python/cpython/commit/a5750cf43466f5913cdeef774f7c2dcb5943d408 --

[issue41867] Include options for timespec in docstrings of isoformat

2020-10-05 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset faaa30392221c7d53d995f65f59f26e86fb84d76 by Łukasz Langa (Miss Skeleton (bot)) in branch '3.9': [3.9] bpo-41867: List options for timespec in docstrings of isoformat methods (GH-22418)

[issue37328] remove deprecated HTMLParser.unescape

2020-10-05 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 8dd430265ccd4d34b74c841d6bcc8f58aa93ad94 by Łukasz Langa (Terry Jan Reedy) in branch '3.9': [3.9] bpo-27032, bpo-37328: Document removing HTMLParser.unescape() (GH-22288)

[issue35293] make doctest (Sphinx) emits a lot of warnings

2020-10-05 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset f8b3c64958753abce7badbff3525863577fe2e04 by Łukasz Langa (Victor Stinner) in branch '3.9': bpo-35293: Travis CI uses "make venv" for the doc (GH-22307) (GH-22309) https://github.com/python/cpython/commit/f8b3c64958753abce7badbff3525863577fe2e04

[issue41875] __builtin_unreachable error in gcc 4.4.5

2020-10-05 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset df71b65a882cc9ddf9cd45ae9f83a04ec441af1e by Łukasz Langa (Miss Islington (bot)) in branch '3.9': bpo-41875: Use __builtin_unreachable when possible (GH-22433) https://github.com/python/cpython/commit/df71b65a882cc9ddf9cd45ae9f83a04ec441af1e

[issue40833] Clarify docstring of Path.rename

2020-10-05 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 5533c4952cd6c44c63274874be7de06495b914ea by Łukasz Langa (Miss Skeleton (bot)) in branch '3.9': [3.9] bpo-40833: Clarify Path.rename doc-string regarding relative paths (GH-20554)

[issue41815] SQLite: segfault if backup called on closed database

2020-10-05 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset bd55c46895d2fcfadda46701d3c34d78441a7806 by Łukasz Langa (Miss Islington (bot)) in branch '3.9': bpo-41815: SQLite: segfault if backup called on closed database (GH-22322)

[issue41844] IDLE subsection of What's New 3.9

2020-10-05 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 7e21aab45d78e2593f231a1290fa6e629e50d90c by Łukasz Langa (Miss Islington (bot)) in branch '3.9': bpo-41844: Add IDLE section to What's New 3.9 (GN-22382) https://github.com/python/cpython/commit/7e21aab45d78e2593f231a1290fa6e629e50d90c

[issue41819] Fix some compiler warnings

2020-10-05 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset c549527ae2cc4b5934dbe80fea127fb04ff65af5 by Łukasz Langa (Miss Islington (bot)) in branch '3.9': bpo-41819: Fix compiler warning in init_dump_ascii_wstr() (GH-22332) https://github.com/python/cpython/commit/c549527ae2cc4b5934dbe80fea127fb04ff65af5

[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-10-05 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 168a8383c8358eea1b34df0e832f5d652faa6444 by Łukasz Langa (Pablo Galindo) in branch '3.9': [3.9] bpo-41490: Bump vendored pip to version 20.2.3 (GH-22527). (GH-22544) https://github.com/python/cpython/commit/168a8383c8358eea1b34df0e832f5d652faa6444

[issue41602] Python doesn't exit with proper resultcode on SIGINT in runpy (pymain_run_module)

2020-10-05 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset c26a666e6751a9fad766ef83432b893f9b15ecaf by Łukasz Langa in branch '3.9': [3.9] bpo-41602: raise SIGINT exit code on KeyboardInterrupt from pymain_run_module (GH-21956) (#22397)

[issue41802] Missing documentation for 'PyDict_DelItem' behavior

2020-10-05 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 95de3627f1527cbb1e98d64dd7cc6463c297b616 by Łukasz Langa (Miss Islington (bot)) in branch '3.9': bpo-41802: Document 'PyDict_DelItem' can raise a 'KeyError' (GH-22291)

[issue41946] Add concrete examples to os.path documentation

2020-10-05 Thread Stargirl Flowers
New submission from Stargirl Flowers : Presently the documentation for os.path (https://docs.python.org/3.8/library/os.path.html) doesn't contain any concrete examples of the input and outputs of the various path manipulation functions. Contrast this to the Node.js documentation for similar

[issue41917] Python 3.9rc2 fails to install matplotlib

2020-10-05 Thread ullix
ullix added the comment: I guess so. Just didn't know how else to bring this to someone's attention, thanks. But not having matplotlib? Ohmygod! -- ___ Python tracker ___

[issue41943] unittest.assertLogs passes unexpectedly

2020-10-05 Thread Vinay Sajip
Change by Vinay Sajip : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41945] http.cookies.SimpleCookie.parse error after [keys]

2020-10-05 Thread Jan Novak
New submission from Jan Novak : If brackets [] are around cookie name, next cookie names are not loaded. try: import http.cookies as Cookie except ImportError: import Cookie c = Cookie.SimpleCookie() c.load('id=12345; [object Object]=data; something=not loaded') print(c) Note: It could

[issue41774] Add programming FAQ entry: remove multiple entries from list

2020-10-05 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed title: While removing element from list using for and remove(), which has same items output is not right -> Add programming FAQ entry: remove multiple entries from list type:

[issue41805] types.GenericAlias and types.Union have no documentation

2020-10-05 Thread Ken Jin
Ken Jin added the comment: Hi Patrick, I've completed the docs for PEP 604, and would like to work on the docs for PEP 585. May I know if you're still working on this? -- nosy: +kj ___ Python tracker

[issue41898] Any logging causes assertLogs to pass

2020-10-05 Thread Irit Katriel
Irit Katriel added the comment: Strike that - Troy has created the new issue 41943 so this one can remain closed. -- ___ Python tracker ___

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

2020-10-05 Thread miss-islington
miss-islington added the comment: New changeset 75dd70e1ce0b5ce50c572802c17b7fa427d9ce23 by Miss Skeleton (bot) in branch '3.9': bpo-41774: Tweak new programming FAQ entry (GH-22562) https://github.com/python/cpython/commit/75dd70e1ce0b5ce50c572802c17b7fa427d9ce23 --

[issue41943] unittest.assertLogs passes unexpectedly

2020-10-05 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch nosy: +iritkatriel nosy_count: 1.0 -> 2.0 pull_requests: +21562 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22565 ___ Python tracker

[issue41944] Python testsuite calls eval() on content received via HTTP

2020-10-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +21561 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22566 ___ Python tracker

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

2020-10-05 Thread miss-islington
miss-islington added the comment: New changeset 7e941fa8e0454c7814ce3ec646136758c0db5a25 by Miss Skeleton (bot) in branch '3.8': bpo-41774: Tweak new programming FAQ entry (GH-22562) https://github.com/python/cpython/commit/7e941fa8e0454c7814ce3ec646136758c0db5a25 --

[issue41943] unittest.assertLogs passes unexpectedly

2020-10-05 Thread mrbean-bremen
New submission from mrbean-bremen : Related to https://bugs.python.org/issue41898, creating a new issue after the discussion with Irit Katriel on StackOverflow (https://stackoverflow.com/a/64142338/12480730). Consider the following: import logging import unittest logger =

[issue41944] Python testsuite calls eval() on content received via HTTP

2020-10-05 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : As was reported by Florian Bruhin, Python testsuite calls eval() on content received via HTTP (in Lib/test/multibytecodec_support.py). -- components: Tests messages: 378036 nosy: The Compiler, serhiy.storchaka, vstinner priority: normal severity:

[issue41898] Any logging causes assertLogs to pass

2020-10-05 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +21560 pull_request: https://github.com/python/cpython/pull/22565 ___ Python tracker ___

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

2020-10-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +21559 pull_request: https://github.com/python/cpython/pull/22564 ___ Python tracker ___

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

2020-10-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +21558 pull_request: https://github.com/python/cpython/pull/22563 ___ Python tracker ___

[issue41894] UnicodeDecodeError during load failure in non-UTF-8 locale

2020-10-05 Thread Inada Naoki
Inada Naoki added the comment: I succeeded to reproduce it on Ubuntu 20.04. $ sudo vi /var/lib/locales/supported.d/ja # add "ja_JP.EUC-JP EUC-JP" $ sudo locale-gen ja_JP.EUC-JP Generating locales (this might take a while)... ja_JP.EUC-JP... done Generation complete. $

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

2020-10-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 060937da988347a887a5f165b023d972fcb97802 by Terry Jan Reedy in branch 'master': bpo-41774: Tweak new programming FAQ entry (GH-22562) https://github.com/python/cpython/commit/060937da988347a887a5f165b023d972fcb97802 --

[issue41940] AMD64 Debian root 3.x: tests fail because downloaded files start with:

2020-10-05 Thread Chris Angelico
Chris Angelico added the comment: Has this been ongoing, or is it something that started in the past day and a half? I've had intermittent internet issues (and expect them to continue for another half day or thereabouts), so it's possible that this is actually a symptom of that. If that's

[issue38893] broken container/selinux integration

2020-10-05 Thread Enrico Scholz
Enrico Scholz added the comment: IMO the SELinux security attributes must not be copied (except when requested explicitly). Doing so will create badly labeled systems else. It would be better to use default transition rules and call optionally selinux_restorecon() then. E.g. when copying

[issue41898] Any logging causes assertLogs to pass

2020-10-05 Thread Irit Katriel
Irit Katriel added the comment: Please reopen this issue. I understand after a discussion on stackoverflow what the problem is, and there is indeed a bug. I will create a PR with a unit test for it an a fix. -- ___ Python tracker

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

2020-10-05 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +21557 pull_request: https://github.com/python/cpython/pull/22562 ___ Python tracker ___

[issue41941] Py_Initialize affects the console

2020-10-05 Thread Eryk Sun
Eryk Sun added the comment: > config_init_stdio() is not called in an isolated configuration: config_init_stdio wasn't being called anyway since Py_Initialize uses _PyConfig_InitCompatConfig. The issue was primarily due to the LC_CTYPE locale being set to the default user locale, as I

[issue41941] Py_Initialize affects the console

2020-10-05 Thread twoone3
twoone3 <3197653...@qq.com> added the comment: That's it -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41941] Py_Initialize affects the console

2020-10-05 Thread STINNER Victor
STINNER Victor added the comment: PyConfig_InitIsolatedConfig() reduces side effects on the process. For example, it doesn't set the LC_CTYPE locale and it doesn't change the standard streams (stdio). config_init_stdio() is not called in an isolated configuration:

[issue41941] Py_Initialize affects the console

2020-10-05 Thread twoone3
twoone3 <3197653...@qq.com> added the comment: I used the link you gave me https://docs.python.org/dev/c-api/init_config.html#c.PyConfig.PyConfig_InitIsolatedConfig Click to open and turn up to see the box, I follow that box The example inside is done, and the coding problem of the console

[issue28343] Bad encoding alias cp936 -> gbk: euro sign

2020-10-05 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41917] Python 3.9rc2 fails to install matplotlib

2020-10-05 Thread Hugo van Kemenade
Hugo van Kemenade added the comment: This probably isn't an issue with CPython 3.9.0 itself, but rather third-party libraries needing to add 3.9 support and provide wheels, and they may be waiting for 3.9.0 to be officially released (due out today!). Here's a PR to add Python 3.9 support to

[issue41941] Py_Initialize affects the console

2020-10-05 Thread Eryk Sun
Eryk Sun added the comment: Having looked at the screenshots, it seems that your issue is in part due to non-legacy mode not setting the standard I/O files to binary mode (_O_BINARY) from their default ANSI text mode (_O_TEXT). This is not a problem on its own. The real issue is that

[issue41941] Py_Initialize affects the console

2020-10-05 Thread STINNER Victor
STINNER Victor added the comment: > This problem has bothered me for a month, thank you for helping me solve this > problem, you can close it I close the issue, but I'm not sure how you fixed it. Don't hesitate commenting to explain how you solved it ;-) -- resolution: -> not a

[issue41942] Add if condition for 'for loop'

2020-10-05 Thread chienpingtsung
chienpingtsung added the comment: Got it, thanks for your reply~ -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue41941] Py_Initialize affects the console

2020-10-05 Thread twoone3
twoone3 <3197653...@qq.com> added the comment: This problem has bothered me for a month, thank you for helping me solve this problem, you can close it -- ___ Python tracker

[issue41942] Add if condition for 'for loop'

2020-10-05 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is a language change that has been discussed on the python-ideas list a number of times. In my opinion adding this would not necessarily be an improvement, especially when names and expressions get longer. You'd also not win a lot compared to your

[issue40066] Enum._convert should change __repr__ and/or __str__ to use module name instead of class name

2020-10-05 Thread Ethan Furman
Ethan Furman added the comment: Python-Dev thread [0], summary below: > As you may have noticed, Enums are starting to pop up all > over the stdlib [1]. > > To facilitate transforming existing module constants to > IntEnums there is `IntEnum._convert_`. In Issue36548 [2] > Serhiy modified

  1   2   >