[issue40752] Implement PurePath.__len__

2020-05-24 Thread Ram Rachum
New submission from Ram Rachum : I'm writing the patch now. -- components: Library (Lib) messages: 369767 nosy: cool-RR priority: normal severity: normal status: open title: Implement PurePath.__len__ type: enhancement versions: Python 3.10 ___ Pytho

[issue40752] Implement PurePath.__len__

2020-05-24 Thread SilentGhost
SilentGhost added the comment: What would it do? -- nosy: +SilentGhost, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing

[issue40752] Implement PurePath.__len__

2020-05-24 Thread Ram Rachum
Change by Ram Rachum : -- keywords: +patch pull_requests: +19611 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20348 ___ Python tracker ___ _

[issue40752] Implement PurePath.__len__

2020-05-24 Thread Ram Rachum
Ram Rachum added the comment: Just return len(str(path)). I put the use case on the PR on GitHub. -- ___ Python tracker ___ ___ Pyt

[issue40739] find_library broken for binutils >= 2.32 / 2.34

2020-05-24 Thread SilentGhost
Change by SilentGhost : -- nosy: +amaury.forgeotdarc, belopolsky, meador.inge, vinay.sajip versions: -Python 3.5, Python 3.6 ___ Python tracker ___ ___

[issue40753] Remove Python 2 compatibility code from pathlib

2020-05-24 Thread Ram Rachum
New submission from Ram Rachum : No need to inherit from object. I'm writing the patch now. -- components: Library (Lib) messages: 369770 nosy: cool-RR priority: normal severity: normal status: open title: Remove Python 2 compatibility code from pathlib type: enhancement versions: Pytho

[issue40753] Remove Python 2 compatibility code from pathlib

2020-05-24 Thread Ram Rachum
Change by Ram Rachum : -- keywords: +patch pull_requests: +19612 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20349 ___ Python tracker ___ _

[issue40752] Implement PurePath.__len__

2020-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The length of the object is the number of some items in the object. It is usually tied with iteration: len(obj) == len(list(obj)). Is this true for PurePath? -- nosy: +serhiy.storchaka ___ Python tracker

[issue40753] Remove Python 2 compatibility code from pathlib

2020-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This code is valid in Python 3. We usually do not accept such pure cosmetic changes. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue40752] Implement PurePath.__len__

2020-05-24 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: PurePath is not iterable but I would expect len(Path('/home/remi/src/cpython')) == 4 The fact the the path is stored as a string is an implementation detail, it seems leaky to get the length of the string here. -- nosy: +remi.lapeyre ___

[issue40752] Implement PurePath.__len__

2020-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If it is not iterable, the length does not make sense. Do you expect also len(-123) == 4? -- ___ Python tracker ___ __

[issue37973] improve docstrings of sys.float_info

2020-05-24 Thread Mark Dickinson
Mark Dickinson added the comment: New changeset fdc5a94279736a7715dd35c5354a3c27098d0897 by Zackery Spytz in branch 'master': bpo-37973: Improve the docstrings of sys.float_info (GH-19218) https://github.com/python/cpython/commit/fdc5a94279736a7715dd35c5354a3c27098d0897 --

[issue40753] Remove Python 2 compatibility code from pathlib

2020-05-24 Thread Ram Rachum
Ram Rachum added the comment: "We usually do not accept such pure cosmetic changes." Is this an axiom or is the reasoning written down somewhere? I'd think we all like to remove cruft that's no longer necessary. -- ___ Python tracker

[issue39301] Specification of bitshift on integers should clearly state floor division used

2020-05-24 Thread Mark Dickinson
Mark Dickinson added the comment: > I confess that I've no idea what the "without overflow check" bit means After some digging, it is indeed to do with the int/long unification: - In Python 2.1, arithmetic operations on ints would raise OverflowError on overflow. - Except that left shift did

[issue40752] Implement PurePath.__len__

2020-05-24 Thread Ram Rachum
Ram Rachum added the comment: Remi: Your use case is taken care of by `len(path.parts)`. Serhiy: "If it is not iterable, the length does not make sense." I'm not sure this is a rule. I do see that the `collections.abc.Sized` class does not require an `__iter__` method to be defined. ---

[issue40753] Remove Python 2 compatibility code from pathlib

2020-05-24 Thread Ram Rachum
Change by Ram Rachum : -- nosy: +brandtbucher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue40752] Implement PurePath.__len__

2020-05-24 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: > Remi: Your use case is taken care of by `len(path.parts)`. Yes, and your use case is taken care of by `len(str(path))` which works as well. The reason in the PR is to simplify: sorted(paths, key=lambda path: len(str(path)), reverse=True) to sorted(paths, k

[issue40752] Implement PurePath.__len__

2020-05-24 Thread Ram Rachum
Ram Rachum added the comment: I understand your argument. I think it relies on your earlier statement: "The fact the the path is stored as a string is an implementation detail." This statement reminds me of the term "architecture astronaut". Pathlib builds a cool architecture over the concep

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

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

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

2020-05-24 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +19613 pull_request: https://github.com/python/cpython/pull/20350 ___ Python tracker _

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

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

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

2020-05-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 905b3cd05f8d2c29e1605d109900e3e9d07af4d3 by Florian Dahlitz in branch 'master': bpo-40723: Make IDLE autocomplete test run without __main__.__file__ (GH-20311) https://github.com/python/cpython/commit/905b3cd05f8d2c29e1605d109900e3e9d07af4d3 -

[issue40670] supplying an empty string to timeit causes an IndentationError

2020-05-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: I intended to say that the current behavior would be less puzzling if the doc were changed as I suggest. I think that a doc change would be sufficient. -- ___ Python tracker _

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

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

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

[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: https://mail.py

[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

[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

[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

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

[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

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

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

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

[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

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

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

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

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

[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: https://mail.pyt

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

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

[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: +19618 pull_request: https://github.com/python/cpython/pull/20355 ___ 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: +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
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 --

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

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

[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 Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +19621 pull_request: https://github.com/python/cpython/pull/20358 ___ 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" (https://bugs

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

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

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

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

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

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

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

[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: -19625 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

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

[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

[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

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

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

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

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

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

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

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

[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: +miss-is

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

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

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

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

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

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

[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

[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. [snip]

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

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

[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
Change by Batuhan Taskaya : -- keywords: +patch pull_requests: +19628 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20364 ___ 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

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

[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 : -- 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
Change by Pablo Galindo Salgado : -- 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

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

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

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

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

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

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

  1   2   >