[issue40701] tempfile mixes str and bytes in an inconsistent manner

2020-05-24 Thread Eric L.
Eric L. added the comment: On 24/05/2020 20:30, Serhiy Storchaka wrote: > Maybe just document that tempdir should be a string? I would definitely prefer to have bytes paths considered as 1st class citizen. -- ___ Python tracker

[issue40762] Writing bytes using CSV module results in b prefixed strings

2020-05-24 Thread Sidhant Bansal
Sidhant Bansal added the comment: The following code ``` import csv with open("abc.csv", "w") as f: data = [b'\xc2a9', b'\xc2a9'] w = csv.writer(f) w.writerow(data) ``` writes "b'\xc2a9',b'\xc2a9'" in "abc.csv", i.e the b-prefixed byte string instead of the actual bytes. Although

[issue40762] Writing bytes using CSV module results in b prefixed strings

2020-05-24 Thread Sidhant Bansal
New submission from Sidhant Bansal : The following code ``` import csv with open("abc.csv", "w") as f: data = [b'\xc2a9', b'\xc2a9'] w = csv.writer(f) w.writerow(data) ``` writes "b'\xc2a9',b'\xc2a9'" in "abc.csv", i.e the b-prefixed byte string instead of the actual bytes. Although

[issue40761] unittest.TestCase.asserTrue return True even if the expr is False

2020-05-24 Thread Steven D'Aprano
Steven D'Aprano added the comment: Works for me in 3.7. See attached file. Can you provide a minimal piece of code that demonstrates the bug? Since Python 3.5 is now only accepting security fixes, and numpy is a third-party library, unless you can demonstrate this in a more recent version I

[issue40761] unittest.TestCase.asserTrue return True even if the expr is False

2020-05-24 Thread Steven D'Aprano
Change by Steven D'Aprano : Added file: https://bugs.python.org/file49192/test_asserttrue.py ___ Python tracker ___ ___ Python-bugs-list

[issue40761] unittest.TestCase.asserTrue return True even if the expr is False

2020-05-24 Thread Steven D'Aprano
Change by Steven D'Aprano : Removed file: https://bugs.python.org/file49191/test_asserttrue.py ___ Python tracker ___ ___ Python-bugs-list

[issue40761] unittest.TestCase.asserTrue return True even if the expr is False

2020-05-24 Thread Steven D'Aprano
Change by Steven D'Aprano : -- Removed message: https://bugs.python.org/msg369846 ___ Python tracker ___ ___ Python-bugs-list

[issue40761] unittest.TestCase.asserTrue return True even if the expr is False

2020-05-24 Thread Steven D'Aprano
Steven D'Aprano added the comment: Works for me in Python 3.7. See attached file. Given that Python 3.5 is only longer accepting security fixes, and that numpy is a third-party library, unless you can reproduce this in a more recent version I think we should close this. -- nosy:

[issue40328] Add tools for generating mappings_XX.h

2020-05-24 Thread Dong-hee Na
Dong-hee Na added the comment: > Would you close this issue? mappings_hk.h mappings_tw.h are still left :) -- ___ Python tracker ___

[issue40328] Add tools for generating mappings_XX.h

2020-05-24 Thread Inada Naoki
Inada Naoki added the comment: Would you close this issue? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40761] unittest.TestCase.asserTrue return True even if the expr is False

2020-05-24 Thread lee yummy
New submission from lee yummy : self.assertTrue(np.array_equal(x, y), "") # x.shape is [58, 139] np.array_equal(x, y) is False, but `self.assertTrue(np.array_equal(x, y), "")` doesn't raise error. -- components: Tests messages: 369843 nosy: lee yummy priority: normal severity: normal

[issue40373] urlunparse does not escape slash (/) for http+unix:// in netloc field

2020-05-24 Thread Ido Michael
Change by Ido Michael : -- nosy: +taleinat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40373] urlunparse does not escape slash (/) for http+unix:// in netloc field

2020-05-24 Thread Ido Michael
Ido Michael added the comment: Did you try using the urllib.urlencode() function? Also it's not clear to me what happens if you give the expected string to urlunsplit() ? I believe it will keep the format as is, str or URL encoded. Tal what do you think? -- nosy: +Ido Michael

[issue30064] BaseSelectorEventLoop.sock_{recv, sendall}() don't remove their callbacks when canceled

2020-05-24 Thread Fantix King
Change by Fantix King : -- pull_requests: +19633 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20369 ___ Python tracker ___

[issue38580] select()'s documentation claims only sequences are accepted, but it allows all iterables

2020-05-24 Thread Ido Michael
Ido Michael added the comment: Hey Tal, I see this issue is pending and pretty much done, what else there's to fix here? -- nosy: +Ido Michael ___ Python tracker ___

[issue40334] PEP 617: new PEG-based parser

2020-05-24 Thread miss-islington
miss-islington added the comment: New changeset 82c274e3ba7d011e93805f1552e90baea1752cf1 by Miss Islington (bot) in branch '3.9': bpo-40334: Support suppressing of multiple optional variables in Pegen (GH-20367)

[issue39244] multiprocessing.get_all_start_methods() wrong default on macOS

2020-05-24 Thread Ido Michael
Ido Michael added the comment: Fixed Tal's comments, I took the darwin if check out of the reduction.HAVE_SEND_HANDLE, also fixed the test -- ___ Python tracker ___

[issue23082] pathlib relative_to() can give confusing error message

2020-05-24 Thread Ido Michael
Ido Michael added the comment: Hey looks like this PR is good to go? -- nosy: +Ido Michael ___ Python tracker ___ ___

[issue40334] PEP 617: new PEG-based parser

2020-05-24 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset cba503151056b448b7a3730dc36ef660ade5 by Batuhan Taskaya in branch 'master': bpo-40334: Support suppressing of multiple optional variables in Pegen (GH-20367)

[issue40334] PEP 617: new PEG-based parser

2020-05-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +19632 pull_request: https://github.com/python/cpython/pull/20368 ___ Python tracker ___

[issue40760] Dictionary comprehension using older division behavior

2020-05-24 Thread Amol Sharma
Amol Sharma added the comment: My apologies! I didn't realize I was in a different environment which was actually 2.7. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue24464] "sqlite3_enable_shared_cache" deprecation warning when compiling with macOS system SQLite3

2020-05-24 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40760] Dictionary comprehension using older division behavior

2020-05-24 Thread Eric V. Smith
Eric V. Smith added the comment: That's not what I see: $ python3.8 Python 3.8.0b4 (default, Sep 15 2019, 15:56:44) [GCC 7.4.0] on cygwin Type "help", "copyright", "credits" or "license" for more information. >>> some_dict = {3:4} >>> {k: v/5 for k, v in some_dict.items()} {3: 0.8} >>>

[issue16379] SQLite error code not exposed to python

2020-05-24 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39170] Sqlite3 row_factory for attribute access: NamedRow

2020-05-24 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40334] PEP 617: new PEG-based parser

2020-05-24 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- pull_requests: +19631 pull_request: https://github.com/python/cpython/pull/20367 ___ Python tracker ___

[issue40617] sqlite3: expose sqlite3_create_window_function

2020-05-24 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Please see attached patch, @iljau. -- keywords: +patch Added file: https://bugs.python.org/file49190/0001-Add-support-for-sqlite3-aggregate-window-functions.patch ___ Python tracker

[issue40617] sqlite3: expose sqlite3_create_window_function

2020-05-24 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40760] Dictionary comprehension using older division behavior

2020-05-24 Thread Amol Sharma
New submission from Amol Sharma : Using comprehension to divide all the values in a dictionary like in the following results in integer division in 3.8. some_dict = {k: v/5 for k, v in some_dict.items()} This was solved by changing 5 to 5.0, reflecting behavior from python2. I would have

[issue36290] _ast.ast_type_init does not handle args and kwargs correctly.

2020-05-24 Thread miss-islington
miss-islington added the comment: New changeset 1a4e9e6f35dad26b37639198f1444591d04399e0 by Miss Islington (bot) in branch '3.9': bpo-36290: Fix keytword collision handling in AST node constructors (GH-12382) https://github.com/python/cpython/commit/1a4e9e6f35dad26b37639198f1444591d04399e0

[issue17050] argparse.REMAINDER doesn't work as first argument

2020-05-24 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue17050] argparse.REMAINDER doesn't work as first argument

2020-05-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 46c1b9c7b595cd9244020ff74ff9cb11bec9870c by Miss Islington (bot) in branch '3.9': bpo-17050: Remove documentation on argparse.REMAINDER (GH-18661) (GH-20363) https://github.com/python/cpython/commit/46c1b9c7b595cd9244020ff74ff9cb11bec9870c

[issue36290] _ast.ast_type_init does not handle args and kwargs correctly.

2020-05-24 Thread miss-islington
miss-islington added the comment: New changeset 907ee1f14aaf587683ced44818c5a1d1cabf4174 by Miss Islington (bot) in branch '3.8': bpo-36290: Fix keytword collision handling in AST node constructors (GH-12382) https://github.com/python/cpython/commit/907ee1f14aaf587683ced44818c5a1d1cabf4174

[issue36290] _ast.ast_type_init does not handle args and kwargs correctly.

2020-05-24 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36290] _ast.ast_type_init does not handle args and kwargs correctly.

2020-05-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +19630 pull_request: https://github.com/python/cpython/pull/20366 ___ Python tracker ___

[issue36290] _ast.ast_type_init does not handle args and kwargs correctly.

2020-05-24 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset c73914a562580ae72048876cb42ed8e76e2c83f9 by Rémi Lapeyre in branch 'master': bpo-36290: Fix keytword collision handling in AST node constructors (GH-12382) https://github.com/python/cpython/commit/c73914a562580ae72048876cb42ed8e76e2c83f9

[issue36290] _ast.ast_type_init does not handle args and kwargs correctly.

2020-05-24 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +19629 pull_request: https://github.com/python/cpython/pull/20365 ___ Python tracker

[issue40617] sqlite3: expose sqlite3_create_window_function

2020-05-24 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: On a second thought and with regards to error reporting, it _would_ make sense to expose this as a function instead of embedding it into sqlite3.create_aggregate. -- ___ Python tracker

[issue40759] Deprecate the symbol module

2020-05-24 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- keywords: +patch pull_requests: +19628 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20364 ___ Python tracker ___

[issue40748] Tutorial 4.7 More on Defining Functions missing screen prompts

2020-05-24 Thread Chas Belov
Chas Belov added the comment: I created new issue For 7.2.7. Code Examples, distinguish between the Tutorial and other documentation https://bugs.python.org/issue40758 -- ___ Python tracker

[issue40759] Deprecate the symbol module

2020-05-24 Thread Batuhan Taskaya
New submission from Batuhan Taskaya : Parser is deprecated so there is no need for the 'symbol' module. I think this should be backported to 3.9, so I'm CC-ing @Łukasz. -- components: Library (Lib) messages: 369826 nosy: BTaskaya, lukasz.langa priority: normal severity: normal status:

[issue40758] For 7.2.7. Code Examples, distinguish between the Tutorial and other documentation

2020-05-24 Thread Chas Belov
New submission from Chas Belov : 7.2.7. Code Examples https://devguide.python.org/documenting/#code-examples states: Short code examples can be a useful adjunct to understanding. Readers can often grasp a simple example more quickly than they can digest a formal description in prose.

[issue40758] For 7.2.7. Code Examples, distinguish between the Tutorial and other documentation

2020-05-24 Thread Chas Belov
Change by Chas Belov : -- versions: +Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___ ___

[issue40748] Tutorial 4.7 More on Defining Functions missing screen prompts

2020-05-24 Thread Chas Belov
Chas Belov added the comment: Actually, after reviewing the documentation standards, I will hold off my pull request on this issue and raise the cited section of documentation as a separate issue. -- ___ Python tracker

[issue40748] Tutorial 4.7 More on Defining Functions missing screen prompts

2020-05-24 Thread Chas Belov
Chas Belov added the comment: @Ama Aje My Fren, thank you for the advice re backporting. As to your points on ..., both good points, and thank you for introducing me to the Documenting Python document, which I will review. While technically the Tutorial is indeed part of Python's

[issue40617] sqlite3: expose sqlite3_create_window_function

2020-05-24 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: This is a good idea, but I think the Python interface should stay the same. >From the user perspective, you'd only need to implement the 'value' and >'inverse' callbacks to transform your aggregate class into an aggregate window >class. >From the

[issue40344] Programming FAQ about "What is the most efficient way to concatenate many strings together?" -- Improving the example

2020-05-24 Thread Andy Lester
Andy Lester added the comment: I'd also like to suggest that the question not be "most efficient" but "fastest". I don't think it should treat "efficient" and "fast" as synonyms. "Efficient" can mean things other than execution speed, such as memory usage, or programmer time. Are there

[issue35883] Change invalid unicode characters to replacement characters in argv

2020-05-24 Thread Johannes Berg
Johannes Berg added the comment: I've also filed https://sourceware.org/bugzilla/show_bug.cgi?id=26034 for glibc, because that's where really the issues seems to be? But perhaps python should be forgiving of glibc errors here. -- ___ Python

[issue35883] Change invalid unicode characters to replacement characters in argv

2020-05-24 Thread Johannes Berg
Johannes Berg added the comment: Like I said above, it could be argued that the bug is in glibc, and then https://p.sipsolutions.net/6a4e9fce82dbbfa0.txt could be used as a simple LD_PRELOAD wrapper to work around this, just to illustrate the problem from that side. Arguably, that makes

[issue17050] argparse.REMAINDER doesn't work as first argument

2020-05-24 Thread miss-islington
miss-islington added the comment: New changeset 59f5022b5d3e5fcc60ac61cc256b627decf8ee68 by Albert in branch 'master': bpo-17050: Remove documentation on argparse.REMAINDER (GH-18661) https://github.com/python/cpython/commit/59f5022b5d3e5fcc60ac61cc256b627decf8ee68 -- nosy:

[issue17050] argparse.REMAINDER doesn't work as first argument

2020-05-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +19627 pull_request: https://github.com/python/cpython/pull/20363 ___ Python tracker ___

[issue40701] tempfile mixes str and bytes in an inconsistent manner

2020-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Maybe just document that tempdir should be a string? -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue40756] Second argument of LoggerAdapter.__init__ should default to None

2020-05-24 Thread Arturo Escaip
Change by Arturo Escaip : -- keywords: +patch pull_requests: +19626 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20362 ___ Python tracker ___

[issue40757] tarfile: ignore_zeros = True won't raise exception even on invalid (non-zero) TARs

2020-05-24 Thread mxmlnkn
New submission from mxmlnkn : Normally, when opening an existing non-TAR file, e.g., a file with random data, an exception is raised: tarfile.open( "foo.txt" ) --- ReadError

[issue40756] Second argument of LoggerAdapter.__init__ should default to None

2020-05-24 Thread Arturo Escaip
New submission from Arturo Escaip : The 'extra' argument is not always used by custom logger adapters. There example: class IndentAdapter(logging.LoggerAdapter): def process(self, msg, kwargs): indent = kwargs.pop(indent, 1) return ' ' * indent + msg, kwargs It is cleaner

[issue35883] Change invalid unicode characters to replacement characters in argv

2020-05-24 Thread Johannes Berg
Johannes Berg added the comment: And wrt. _Py_DecodeUTF8Ex() - it doesn't seem to help. But that's probably because I'm not __ANDROID__, nor __APPLE__, and then regardless of current_locale being non-zero or not, we end up in decode_current_locale() where the impedance mismatch happens.

[issue35883] Change invalid unicode characters to replacement characters in argv

2020-05-24 Thread Johannes Berg
Johannes Berg added the comment: In fact that python one-liner works with just about everything else that you can throw at it, just not something that "looks like utf-8 but isn't". And of course adding LC_CTYPE=ascii or something like that fixes it, as you'd expect. Then the

[issue35883] Change invalid unicode characters to replacement characters in argv

2020-05-24 Thread Johannes Berg
Johannes Berg added the comment: A simple test case is something like ./python -c 'import sys; print(sys.argv[1].encode(sys.getfilesystemencoding(), "surrogateescape"))' "$(echo -ne '\xfa\xbd\x83\x96\x80')" Which you'd probably expect to print b'\xfa\xbd\x83\x96\x80' i.e. the same

[issue35883] Change invalid unicode characters to replacement characters in argv

2020-05-24 Thread Johannes Berg
Johannes Berg added the comment: Pretty sure this is an issue still, I see it on current git master. This seems to work around it? https://p.sipsolutions.net/603927f1537226b3.txt Basically, it seems that mbstowcs() and mbrtowc() on glibc with utf-8 just blindly decode even invalid UTF-8 to

[issue40701] tempfile mixes str and bytes in an inconsistent manner

2020-05-24 Thread Eric L.
Eric L. added the comment: On 23/05/2020 21:41, Gregory P. Smith wrote: > Could you please turn that into a Github PR? I can, if you don't tell me that I need to setup a full-blown Python development environment to do this. -- ___ Python tracker

[issue21724] resetwarnings doesn't reset warnings registry

2020-05-24 Thread Julian Berman
Julian Berman added the comment: Just ran into this myself -- not sure what the intended fix is (hopefully it's "add a function that restores the warnings configuration to its defaults?" Changing resetwarnings seems likely to be not doable I assume.) But in the meanwhile, is a doc patch

[issue40344] Programming FAQ about "What is the most efficient way to concatenate many strings together?" -- Improving the example

2020-05-24 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- pull_requests: -19625 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40344] Programming FAQ about "What is the most efficient way to concatenate many strings together?" -- Improving the example

2020-05-24 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- pull_requests: +19625 pull_request: https://github.com/python/cpython/pull/20360 ___ Python tracker ___

[issue40344] Programming FAQ about "What is the most efficient way to concatenate many strings together?" -- Improving the example

2020-05-24 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- pull_requests: -19624 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40344] Programming FAQ about "What is the most efficient way to concatenate many strings together?" -- Improving the example

2020-05-24 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- keywords: +patch pull_requests: +19624 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20360 ___ Python tracker ___

[issue40755] Add missing multiset predicates to collections.Counter

2020-05-24 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +19623 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20339 ___ Python tracker

[issue40755] Add missing multiset predicates to collections.Counter

2020-05-24 Thread Raymond Hettinger
New submission from Raymond Hettinger : These missing predicates have been requested a number of times: isequal() issubset() issuperset() isdisjoint() -- assignee: rhettinger components: Library (Lib) messages: 369808 nosy: rhettinger priority: normal severity: normal

[issue40443] Remove unused imports in the stdlib (April 2020 edition)

2020-05-24 Thread miss-islington
miss-islington added the comment: New changeset 4bb4cde1777267c92c1bfc0f537cee08102d66a4 by Miss Islington (bot) in branch '3.9': bpo-40443: Remove unused imports in the zoneinfo (GH-20354) https://github.com/python/cpython/commit/4bb4cde1777267c92c1bfc0f537cee08102d66a4 --

[issue40705] use-after-free in _zoneinfo.c's module_free function

2020-05-24 Thread miss-islington
miss-islington added the comment: New changeset ebf650532b41f5e64a5620b8e47acc3a99555e14 by Miss Islington (bot) in branch '3.9': bpo-40705: Fix use-after-free in _zoneinfo's module_free (GH-20280) https://github.com/python/cpython/commit/ebf650532b41f5e64a5620b8e47acc3a99555e14 --

[issue40443] Remove unused imports in the stdlib (April 2020 edition)

2020-05-24 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 3436f5f899f272d7164add072beb18eebd46d777 by Dong-hee Na in branch 'master': bpo-40443: Remove unused imports in the zoneinfo (GH-20354) https://github.com/python/cpython/commit/3436f5f899f272d7164add072beb18eebd46d777 --

[issue40443] Remove unused imports in the stdlib (April 2020 edition)

2020-05-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +19622 pull_request: https://github.com/python/cpython/pull/20359 ___ Python tracker ___

[issue31963] AMD64 Debian PGO 3.x buildbot: compilation failed with an internal compiler error in create_edge

2020-05-24 Thread Albert Christianto
Albert Christianto added the comment: Sorry for my late response. Well, thank you very much for your fast response to help me. Actually, I have solved the problem in 3 hours after I posted my question. hehehe. I found this tip about uncleaned files after executing "make clean"

[issue37309] idlelib/NEWS.txt for 3.9.0 and backports

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

[issue37309] idlelib/NEWS.txt for 3.9.0 and backports

2020-05-24 Thread miss-islington
miss-islington added the comment: New changeset 21a9af193c35394f560d9517e7a4b579f40b8ef7 by Miss Islington (bot) in branch '3.9': bpo-37309: Update IDLE NEWS.txt (GH-20356) https://github.com/python/cpython/commit/21a9af193c35394f560d9517e7a4b579f40b8ef7 --

[issue37309] idlelib/NEWS.txt for 3.9.0 and backports

2020-05-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +19620 pull_request: https://github.com/python/cpython/pull/20357 ___ Python tracker ___

[issue37309] idlelib/NEWS.txt for 3.9.0 and backports

2020-05-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 16ef3241939a3a64a447e5d7aabaf2e29deca621 by Terry Jan Reedy in branch 'master': bpo-37309: Update IDLE NEWS.txt (GH-20356) https://github.com/python/cpython/commit/16ef3241939a3a64a447e5d7aabaf2e29deca621 --

[issue37309] idlelib/NEWS.txt for 3.9.0 and backports

2020-05-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 1ae0fd87a072426e35ff84dc6d1b2759d9ebee70 by Terry Jan Reedy in branch '3.8': [3.8] bpo-37309: Update IDLE NEWS.txt for 3.8.4 (GH-20355) https://github.com/python/cpython/commit/1ae0fd87a072426e35ff84dc6d1b2759d9ebee70 --

[issue40283] Documentation of turtle.circle()

2020-05-24 Thread Florian Dahlitz
Florian Dahlitz added the comment: I tested it and can confirm the findings from @cajetan.rodrigues. However, this does not seem to be _not_ documented. The documentation clearly states that using a positive value for radius results in a counter-clockwise direction, whereas a negative

[issue37309] idlelib/NEWS.txt for 3.9.0 and backports

2020-05-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 3269a0e56b02da61d8f6e7a5e2cca9f83d50694b by Terry Jan Reedy in branch '3.7': bpo-37309: Update NEWS.txt for 3.7.8 (GH-20353) https://github.com/python/cpython/commit/3269a0e56b02da61d8f6e7a5e2cca9f83d50694b --

[issue37309] idlelib/NEWS.txt for 3.9.0 and backports

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

[issue37309] idlelib/NEWS.txt for 3.9.0 and backports

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

[issue40443] Remove unused imports in the stdlib (April 2020 edition)

2020-05-24 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 nosy_count: 3.0 -> 4.0 pull_requests: +19617 pull_request: https://github.com/python/cpython/pull/20354 ___ Python tracker ___

[issue37309] idlelib/NEWS.txt for 3.9.0 and backports

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

[issue40754] ModuleNotFoundError: No module named '_testinternalcapi' under Win10

2020-05-24 Thread honglei jiang
New submission from honglei jiang : https://www.python.org/ftp/python/3.9.0/python-3.9.0b1-amd64.exe C:\Python39>python.exe -m test test_deque -v == CPython 3.9.0b1 (tags/v3.9.0b1:97fe9cf, May 19 2020, 09:02:07) [MSC v.1924 64 bit (AMD64)] == Windows-10-10.0.18362-SP0 little-endian == cwd:

[issue39050] The "Help" button in IDLE's config dialog does not work

2020-05-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: closed -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40372] doctest example programs should exit 1 if any test fails

2020-05-24 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: docs@python -> tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40748] Tutorial 4.7 More on Defining Functions missing screen prompts

2020-05-24 Thread Ama Aje My Fren
Ama Aje My Fren added the comment: Hi @Chas Belov, On Sun, May 24, 2020 at 1:27 AM Chas Belov wrote: > The tutorial on More on Defining Functions at > https://docs.python.org/3.7/tutorial/controlflow.html#more-on-defining-functions > is missing most of the >>> and ... screen prompts that

[issue27495] Pretty printing sorting for set and frozenset instances

2020-05-24 Thread SilentGhost
SilentGhost added the comment: Serhiy, would you be interested in converting your patch to a PR? -- versions: +Python 3.10 ___ Python tracker ___

[issue40028] Math module method to find prime factors for non-negative int n

2020-05-24 Thread Mark Dickinson
Mark Dickinson added the comment: [Rémi Lapeyre] > In the end, if some core devs think that putting together the various > discussions for an imath module in a coherent PEP [...] I can't answer for other core devs. My *guess* is that there's a reasonable chance that a well-written PEP for

[issue40748] Tutorial 4 More Control Flow Tools missing screen prompts in some code blocks

2020-05-24 Thread Ama Aje My Fren
Ama Aje My Fren added the comment: On Sun, May 24, 2020 at 2:54 AM Chas Belov wrote: > Do I need a separate issue for each code block that is not common across 3.5 through 3.10? Or would this be handled during the back-porting process? Unless there is an issue, automatic back-porting should

[issue40056] more user-friendly turtledemo

2020-05-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: I will look at the two changes separately. Spaces could be backported, but since they are not really typos, there is no real need to. I will compare td for master and 3.9 to compare appearance. -- ___ Python

[issue40160] documentation example of os.walk should be less destructive

2020-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 1. There is already a warning before example. 2. Even if you blindly copy-paste the example it will not work. You have to set the top variable. So I don't see any problem here. You always can shoot yourself in the foot if try enough. --

[issue37973] improve docstrings of sys.float_info

2020-05-24 Thread Mark Dickinson
Mark Dickinson added the comment: PR applied. Thank you! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue20002] Cleanup and microoptimize pathlib

2020-05-24 Thread Ram Rachum
Ram Rachum added the comment: Antoine: Serhiy linked me to this issue when I opened #40753 . Do you think that this patch by Serhiy could now be merged? -- nosy: +cool-RR ___ Python tracker

[issue40753] Remove Python 2 compatibility code from pathlib

2020-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Similar cleanup (and many many others) was proposed when pathlib was initially added to the stdlib. They were rejected, so now we need a new discussion to revise the old decision. See issue20002. -- ___ Python

[issue40751] command 'elif' does not work

2020-05-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Beginners should ask on python-list or elsewhere whether something is a bug before posting here. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue40723] IDLE: make autocomplete test run without __main__.__file__

2020-05-24 Thread miss-islington
miss-islington added the comment: New changeset 874506cff9aff2cb5eb0192c878e08ded18326a9 by Miss Islington (bot) in branch '3.9': bpo-40723: Make IDLE autocomplete test run without __main__.__file__ (GH-20311) https://github.com/python/cpython/commit/874506cff9aff2cb5eb0192c878e08ded18326a9

[issue40723] IDLE: make autocomplete test run without __main__.__file__

2020-05-24 Thread miss-islington
miss-islington added the comment: New changeset 82397e2d97f89fdf36cb8eaf3b2d7c407456ec78 by Miss Islington (bot) in branch '3.7': bpo-40723: Make IDLE autocomplete test run without __main__.__file__ (GH-20311) https://github.com/python/cpython/commit/82397e2d97f89fdf36cb8eaf3b2d7c407456ec78

[issue40753] Remove Python 2 compatibility code from pathlib

2020-05-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40752] Implement PurePath.__len__

2020-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Path is not a string with bells and whistles. It was intentionally made not a string subclass because some string operations (including len()) just do not make sense for path or are ambiguous. I am closing this as it goes against the initial design of

  1   2   >