[issue36520] Email header folded incorrectly

2019-05-26 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: To aid with debugging the code, the Subject line can be simplified: >>> from email.message import EmailMessage >>> m = EmailMessage() >>> m['Subject'] = 'Hello >>> =?utf-8?q?W=C3=B6rld!_Hello_W=C3=B6rld!_Hello_W=C3=B6rld!?= Hello >>> Wörld!Hello Wörld!'

[issue17250] argparse: Issue 15906 patch; positional with nargs='*' and string default

2019-05-26 Thread Michael Blahay
Michael Blahay added the comment: Also see https://bugs.python.org/issue35495 -- nosy: +mblahay ___ Python tracker ___ ___

[issue36913] Missing documentation for decorators

2019-05-26 Thread Michael Blahay
Michael Blahay added the comment: The PEP is not the first place I go looking for information on Python topics, just my two cents. -- nosy: +mblahay ___ Python tracker ___

[issue35495] argparse does not honor default argument for nargs=argparse.REMAINDER argument

2019-05-26 Thread Michael Blahay
Michael Blahay added the comment: Ryan, last chance, do you have any feedback? -- ___ Python tracker ___ ___ Python-bugs-list

[issue37061] The strangest glitch I have ever seen - incorrect indenterror, even on commented out code.

2019-05-26 Thread Tim Peters
Tim Peters added the comment: Same kind of problem with the new upload, Bob. Line 38 is: print(Fore.GREEN,"Installed file ",e,Fore.WHITE) indented 8 spaces. Lines 39 and 40 are empty. Then line 41 is: if x>=len(files): # if x is more than or equal to the number of files in teh directory

[issue37061] The strangest glitch I have ever seen - incorrect indenterror, even on commented out code.

2019-05-26 Thread Bob Vegene
Bob Vegene added the comment: I decided to check the file in notepad++ and I saw that there actually is an indentationerror... However, the save button wasn't working I guess. I can't tell you how many times i hit ctrl+s and clicked save. Wow, so it still is a bug. --

[issue37061] The strangest glitch I have ever seen - incorrect indenterror, even on commented out code.

2019-05-26 Thread Eric V. Smith
Eric V. Smith added the comment: Line 41 is indented 4 spaces past line 38, but should not be. You'd be better served by first asking questions like this on the python-list mailing list. -- nosy: +eric.smith resolution: -> not a bug stage: -> resolved status: open -> closed

[issue37061] The strangest glitch I have ever seen - incorrect indenterror, even on commented out code.

2019-05-26 Thread Bob Vegene
Bob Vegene added the comment: uhm, the current file is attached now is there some sort of error and you guys see it differently??? i can't be the only one getting this. I swear i have everything right, and i'll attach an image if i need too. -- Added file:

[issue37061] The strangest glitch I have ever seen - incorrect indenterror, even on commented out code.

2019-05-26 Thread Steven D'Aprano
Steven D'Aprano added the comment: Sorry Bob, are you telling us that the code you submitted to demonstrate the error isn't the code that demonstrates the error? Perhaps you could read this: http://www.sscce.org/ for some ideas on how to submit a good bug report. It is written for Java

[issue37061] The strangest glitch I have ever seen - incorrect indenterror, even on commented out code.

2019-05-26 Thread Tim Peters
Tim Peters added the comment: As Steven said, there's an obvious indentation error in the file you actually attached. So nobody can _guess_ what your problem is. Please upload a file showing your actual problem. If I increase the indentation of the `print` Steven identified to match the

[issue33361] readline() + seek() on codecs.EncodedFile breaks next readline()

2019-05-26 Thread Diego Argueta
Diego Argueta added the comment: > though #32110 ("Make codecs.StreamReader.read() more compatible with read() > of other files") may have fixed more (all?) of it. Still seeing this in 3.7.3 so I don't think so? -- ___ Python tracker

[issue21314] Document '/' in signatures

2019-05-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I think we can revisit this now that PEP570 is accepted -- nosy: +pablogsal ___ Python tracker ___

[issue37061] The strangest glitch I have ever seen - incorrect indenterror, even on commented out code.

2019-05-26 Thread Bob Vegene
Bob Vegene added the comment: The error it gives is unexpected indent (sys32pack.py, line 41) (im also using IDLE) FYI. -- ___ Python tracker ___

[issue37061] The strangest glitch I have ever seen - incorrect indenterror, even on commented out code.

2019-05-26 Thread Bob Vegene
Bob Vegene added the comment: No, I removed that before. I actually did have one, but I removed that and it still shows. -- ___ Python tracker ___

[issue37061] The strangest glitch I have ever seen - incorrect indenterror, even on commented out code.

2019-05-26 Thread Steven D'Aprano
Steven D'Aprano added the comment: Hi Bob, and welcome. Can you copy and paste the actual traceback or error you get? It isn't obvious from your description what the error is. Just glancing at the attached sample code, I see what seems to be an obvious indentation error: for _ in

[issue37061] The strangest glitch I have ever seen - incorrect indenterror, even on commented out code.

2019-05-26 Thread Bob Vegene
New submission from Bob Vegene : So, I'm making a simple program that will allow me to quickly copy programs to System32 for use on the command line. When I tried testing this in a file called test.py in the same directory as sys32move.py, I got a very strange error. IndentError. I am very

[issue37051] Glossary item "hashable" incorrect

2019-05-26 Thread Josh Rosenberg
Josh Rosenberg added the comment: For that matter, slices are immutable built-ins, but they're not hashable (presumably to avoid silently working with dictionaries in a non-slice capacity). -- nosy: +josh.r ___ Python tracker

[issue37032] Add CodeType.replace() method

2019-05-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Is there anything more on this issue? -- ___ Python tracker ___ ___ Python-bugs-list

[issue37060] import ctypes fails with a statically linked interpreter due to dlopen() failure

2019-05-26 Thread Gregory Szorc
New submission from Gregory Szorc : ctypes/__init__.py calls _ctypes.dlopen(None) on Linux as part of code execution during module import. Unfortunately, dlopen() doesn't work if the current executable isn't a dynamic executable. Using a fully statically linked Python executable: $ ldd

[issue37011] pdb: restore original tracing function instead of sys.settrace(None)

2019-05-26 Thread daniel hahler
daniel hahler added the comment: >From my initial comment: > I've done this via monkeypatching for pdbpp's tests, which resulted in an > easy 2% coverage gain (https://github.com/antocuni/pdb/pull/253). It will also affect running tests with coverage (in general, or using tools like

[issue17005] Add a topological sort algorithm

2019-05-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > * allow input as ordered pairs like the Unix tsort command > * allow more convenient input as dependency sequences (like graphviz): This is how my first proposal started (and I still like it a bit more than the dictionary input), but there are some

[issue17005] Add a topological sort algorithm

2019-05-26 Thread Raymond Hettinger
Change by Raymond Hettinger : Added file: https://bugs.python.org/file48362/tsort.1.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue28866] Type cache is not correctly invalidated on a class defining mro()

2019-05-26 Thread miss-islington
miss-islington added the comment: New changeset bfd0b7720196b9ff647cc33dafbd31a04496402c by Miss Islington (bot) in branch '3.7': [3.7] bpo-28866: No type cache for types with specialized mro, invalidation is hard. (GH-13157) (GH-13589)

[issue17005] Add a topological sort algorithm

2019-05-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: Attaching some of my 2013 work on this. Here are some API notes: * spell-out the name topological_sort() * allow input as ordered pairs like the Unix tsort command https://en.wikipedia.org/wiki/Tsort#Examples * allow more convenient input as

[issue28866] Type cache is not correctly invalidated on a class defining mro()

2019-05-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +13496 pull_request: https://github.com/python/cpython/pull/13589 ___ Python tracker ___

[issue28866] Type cache is not correctly invalidated on a class defining mro()

2019-05-26 Thread Julien Palard
Julien Palard added the comment: I think I can backport it to 3.7, and I let you choose if 2.7 need this. -- ___ Python tracker ___

[issue30202] Update test.test_importlib.test_abc to test find_spec()

2019-05-26 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37045] Implement PEP 591: add Final qualifier and @final decorator to typing

2019-05-26 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- pull_requests: +13495 pull_request: https://github.com/python/cpython/pull/13588 ___ Python tracker ___

[issue35753] Importing call from unittest.mock directly causes ValueError

2019-05-26 Thread ppperry
Change by ppperry : -- nosy: -ppperry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28866] Type cache is not correctly invalidated on a class defining mro()

2019-05-26 Thread STINNER Victor
STINNER Victor added the comment: Python 2.7 and 3 7 should be fixed as well, no? -- ___ Python tracker ___ ___ Python-bugs-list

[issue28866] Type cache is not correctly invalidated on a class defining mro()

2019-05-26 Thread STINNER Victor
STINNER Victor added the comment: Well done Julien  -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37059] spam

2019-05-26 Thread SilentGhost
Change by SilentGhost : -- nosy: -erika1998 title: Pre-compile Directive to Remind Coders that Men are Pigs -> spam ___ Python tracker ___

[issue37059] spam

2019-05-26 Thread SilentGhost
Change by SilentGhost : -- Removed message: https://bugs.python.org/msg343580 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue37059] Pre-compile Directive to Remind Coders that Men are Pigs

2019-05-26 Thread Mariatta Wijaya
Change by Mariatta Wijaya : -- assignee: docs@python -> nosy: -docs@python resolution: -> rejected stage: -> resolved status: open -> closed versions: -Python 3.7 ___ Python tracker

[issue37059] Pre-compile Directive to Remind Coders that Men are Pigs

2019-05-26 Thread Erika
New submission from Erika : Guido Van Rossum recently let the community know that sexism is keeping women away from Python. A simple directive at the top of each py file would help remind us. Throw an error unless #MenArePigs is not in line-1 of the file. -- assignee: docs@python

[issue37032] Add CodeType.replace() method

2019-05-26 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- nosy: +mbussonn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33071] Document that PyPI no longer requires 'register'

2019-05-26 Thread hai shi
hai shi added the comment: hi, everyone. I am a freshman,so let me do it from easy issues:) -- nosy: +shihai1991 ___ Python tracker ___

[issue29696] Use namedtuple in string.Formatter.parse iterator response

2019-05-26 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37051] Glossary item "hashable" incorrect

2019-05-26 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +13494 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13587 ___ Python tracker

[issue36686] Docs: asyncio.loop.subprocess_exec documentation is confusing, it's not clear how to inherit stdin, stdout or stderr in the subprocess

2019-05-26 Thread Simon Bernier St-Pierre
Change by Simon Bernier St-Pierre : -- keywords: +patch pull_requests: +13493 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13586 ___ Python tracker

[issue37051] Glossary item "hashable" incorrect

2019-05-26 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list

[issue36772] Let lru_cache be used as a decorator with no arguments

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

[issue36853] inconsistencies in docs builds (Sphinx 2)

2019-05-26 Thread Jason R. Coombs
Jason R. Coombs added the comment: > I've just locally ran sphinx 2.0.0 on 071cbd4ea1 (the current tip of your PR) > and I'm not getting any error, which one are you getting? The issue occurs on 2347d3ae36 with `make suspicious` with Sphinx 2.0.0 and 2.0.1. ``` Doc 2347d3ae36 $ make

[issue37058] Implement PEP 544: add Protocol to typing

2019-05-26 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- keywords: +patch pull_requests: +13492 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/13585 ___ Python tracker

[issue33071] Document that PyPI no longer requires 'register'

2019-05-26 Thread hai shi
Change by hai shi : -- pull_requests: +13491 stage: backport needed -> patch review pull_request: https://github.com/python/cpython/pull/13584 ___ Python tracker ___

[issue37011] pdb: restore original tracing function instead of sys.settrace(None)

2019-05-26 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Is getting accurate coverage reports not enough? But it does not achieve that goal, does it ? -- ___ Python tracker ___

[issue37058] Implement PEP 544: add Protocol to typing

2019-05-26 Thread Ivan Levkivskyi
New submission from Ivan Levkivskyi : The implementation would be basically copying some code from `typing_extension` and fixing some important known issues (such as renaming @runtime to @runtime_checkable and allowing sub-protocols of builtin protocols). Also ideally we should get rid of

[issue36772] Let lru_cache be used as a decorator with no arguments

2019-05-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset b821868e6d909f4805499db519ebc2cdc01cf611 by Raymond Hettinger in branch 'master': bpo-36772 Allow lru_cache to be used as decorator without making a function call (GH-13048)

[issue18564] Fix Bluetooth address parser

2019-05-26 Thread Michele Orrù
Change by Michele Orrù : -- title: Integer overflow in the socket function parsing a Bluetooth address -> Fix Bluetooth address parser ___ Python tracker ___

[issue36853] inconsistencies in docs builds (Sphinx 2)

2019-05-26 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also https://github.com/python/cpython/pull/13579 that replaces self.warn with self.logger.warn in Doc/tools/extensions/suspicious.py -- nosy: +xtreak ___ Python tracker

[issue37057] suspicious.py sphinx extension access non-existing attribute.

2019-05-26 Thread SilentGhost
Change by SilentGhost : -- superseder: -> inconsistencies in docs builds (Sphinx 2) ___ Python tracker ___ ___ Python-bugs-list

[issue35753] Importing call from unittest.mock directly causes ValueError

2019-05-26 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > The actual bug appears to be "doctest can't run on a module that contains > un-unwrappable objects" Is it the below example scenario being discussed in the issue? Since call is imported it's also present in obj.__dict__ and hence trying to

[issue36853] inconsistencies in docs builds (Sphinx 2)

2019-05-26 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- nosy: +mbussonn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37057] suspicious.py sphinx extension access non-existing attribute.

2019-05-26 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue37057] suspicious.py sphinx extension access non-existing attribute.

2019-05-26 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: Oh yeah, I do... and you are right this is duplicate. -- ___ Python tracker ___ ___

[issue27639] UserList.__getitem__ doesn't account for slices

2019-05-26 Thread SilentGhost
Change by SilentGhost : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue37057] suspicious.py sphinx extension access non-existing attribute.

2019-05-26 Thread SilentGhost
SilentGhost added the comment: This looks like a duplicate of #36853. Do you happen to have sphinx 2 installed? -- assignee: -> docs@python components: +Documentation nosy: +SilentGhost, docs@python ___ Python tracker

[issue27639] UserList.__getitem__ doesn't account for slices

2019-05-26 Thread Michael Blahay
Michael Blahay added the comment: Thank you Mark. Everything for this one is complete. The issue may be closed. -- ___ Python tracker ___

[issue37057] suspicious.py sphinx extension access non-existing attribute.

2019-05-26 Thread Matthias Bussonnier
New submission from Matthias Bussonnier : On a local branch with some modified docs ``` Traceback (most recent call last): File "/Users/bussonniermatthias/dev/cpython/Doc/venv/lib/python3.8/site-packages/sphinx/cmd/build.py", line 284, in build_main app.build(args.force_all, filenames)

[issue35753] Importing call from unittest.mock directly causes ValueError

2019-05-26 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: duplicate -> status: closed -> open ___ Python tracker ___ ___ Python-bugs-list

[issue37053] Tools/parser/unparse.py does not handle u"bar" correctly

2019-05-26 Thread miss-islington
miss-islington added the comment: New changeset aaf47caf35984e614d93bd8bea5227df55e0e3e6 by Miss Islington (bot) (Chih-Hsuan Yen) in branch 'master': bpo-37053: handle strings like u"bar" correctly in Tools/parser/unparse.py (GH-13583)

[issue37053] Tools/parser/unparse.py does not handle u"bar" correctly

2019-05-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Confirmed that this fixes the broken buildbots: ./python -m test test_tools - -uall -m test_files == CPython 3.8.0a4+ (heads/master:91f4380ced, May 26 2019, 17:30:21) [GCC 8.3.0] == Linux-5.0.15-1-MANJARO-x86_64-with-glibc2.29 little-endian == cwd:

[issue37053] Tools/parser/unparse.py does not handle u"bar" correctly

2019-05-26 Thread Chih-Hsuan Yen
Chih-Hsuan Yen added the comment: After reading Python/ast.c, I think my patch is correct, so I submitted it to GitHub as https://github.com/python/cpython/pull/13583 :) -- ___ Python tracker

[issue37039] IDLE: Improve zoomheight doc and behavior.

2019-05-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: When you start, it should say 'Zoom Height', then 'Restore Height' after you maximize. But if on a screen small enough that the initial height is the same as zoomed, IDLE might get confused. No change on Linux in the PR is the intention, so that is good.

[issue37053] Tools/parser/unparse.py does not handle u"bar" correctly

2019-05-26 Thread Chih-Hsuan Yen
Change by Chih-Hsuan Yen : -- keywords: +patch pull_requests: +13490 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/13583 ___ Python tracker

[issue37056] test_tools is failing on several buildbots

2019-05-26 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Duplicate of https://bugs.python.org/issue37053 -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker

[issue37056] test_tools is failing on several buildbots

2019-05-26 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also https://bugs.python.org/issue37053 -- nosy: +xtreak ___ Python tracker ___

[issue37056] test_tools is failing on several buildbots

2019-05-26 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : BUILDBOT FAILURE REPORT === Builder name: AMD64 Debian root 3.x Builder url: https://buildbot.python.org/all/#/builders/27/ Build url: https://buildbot.python.org/all/#/builders/27/builds/3006 Failed tests -

[issue37056] test_tools is failing on several buildbots

2019-05-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: This seems a failure caused after merging either PEP589 or PEP586 -- nosy: +gvanrossum, levkivskyi ___ Python tracker ___

[issue37053] Tools/parser/unparse.py does not handle u"bar" correctly

2019-05-26 Thread Guido van Rossum
Guido van Rossum added the comment: Please submit a PR. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37011] pdb: restore original tracing function instead of sys.settrace(None)

2019-05-26 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: > The proposed change is not backward compatible. Indeed, I missed that thanks. I think I could fix that. > A motivation for this change should be provided first Is getting accurate coverage reports not enough? --

[issue37055] Numerous warnings with blake2 module

2019-05-26 Thread Christian Heimes
Christian Heimes added the comment: The file blake2ns.h renames some of the exported constants to prefix them with PyBlake2_foo. The file needs to be updated every time the sources are updated. I'll look into the issue. -- nosy: +christian.heimes, inada.naoki priority: normal ->

[issue37021] Can _random.getrandbits() be converted to METH_FASTCALL?

2019-05-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: This looks good. Thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37055] Numerous warnings with blake2 module

2019-05-26 Thread Rémi Lapeyre
New submission from Rémi Lapeyre : Issue 33164 (commit 51aa35e9e17eef60d04add9619fe2a7eb938358c) introduced numerous new warnings on MacOS: /Users/remi/src/cpython/Modules/_blake2/impl/blake2b.c:192:9: warning: 'blake2b_init' macro redefined [-Wmacro-redefined] #define blake2b_init

[issue37048] ssl module: QUIC support for HTTP/3

2019-05-26 Thread Christian Heimes
Christian Heimes added the comment: Thanks for your feedback! So far I actively refrained from exposing or implementing any encryption primitives and API like AES, ChaCha20, and ECDSA. I'm worried about potential legal issues and export control restrictions. I have to talk to VanL first.

[issue37053] Tools/parser/unparse.py does not handle u"bar" correctly

2019-05-26 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: On the other hand, if this causes troubles, feel free to just replace u"bar" with "bar" in that test. It is not really important. -- nosy: +levkivskyi ___ Python tracker

[issue36785] Implement PEP 574

2019-05-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 91f4380cedbae32b49adbea2518014a5624c6523 by Antoine Pitrou in branch 'master': bpo-36785: PEP 574 implementation (GH-7076) https://github.com/python/cpython/commit/91f4380cedbae32b49adbea2518014a5624c6523 --

[issue37054] Ignored exceptions in test_memoryio

2019-05-26 Thread Antoine Pitrou
New submission from Antoine Pitrou : I see the following kind of exceptions when running test_memoryio: Exception ignored in: Traceback (most recent call last): File "/home/antoine/cpython/default/Lib/_pyio.py", line 409, in __del__ self.close() File

[issue27639] UserList.__getitem__ doesn't account for slices

2019-05-26 Thread Mark Shannon
Mark Shannon added the comment: New changeset f3d909428c7c61ea32e8fbb9c8b48344e7904a53 by Mark Shannon (Michael Blahay) in branch '3.7': BPO-27639: Correct return type for UserList slicing operation (#13203) https://github.com/python/cpython/commit/f3d909428c7c61ea32e8fbb9c8b48344e7904a53

[issue4356] Add "key" argument to "bisect" module functions

2019-05-26 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4356] Add "key" argument to "bisect" module functions

2019-05-26 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Can you not use functools.cmp_to_key() for this? Here's an example: >>> import bisect, functools >>> l = [('f', 5), ('d', 3), ('c', 2), ('b', 1), ('a', 0)] >>> def cmp(a, b): ... if a > b: return -1 ... if a < b: return 1 ... return 0 ... >>>

[issue28866] Type cache is not correctly invalidated on a class defining mro()

2019-05-26 Thread Mark Shannon
Mark Shannon added the comment: New changeset 180dc1b0f4a57c3f66351568ae8488fa8576d7f0 by Mark Shannon (Julien Palard) in branch 'master': bpo-28866: No type cache for types with specialized mro, invalidation is hard. (#13157)

[issue4356] Add "key" argument to "bisect" module functions

2019-05-26 Thread Neil Girdhar
Neil Girdhar added the comment: The problem with `key=lambda item: -item` is that item cannot always be easily negated. For example, tuples are often used as keys. -- ___ Python tracker

[issue37053] Tools/parser/unparse.py does not handle u"bar" correctly

2019-05-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +easy nosy: +gvanrossum stage: -> needs patch type: behavior -> enhancement ___ Python tracker ___

[issue37049] Implement PEP 589: add TypedDict to typing

2019-05-26 Thread Chih-Hsuan Yen
Chih-Hsuan Yen added the comment: Regarding the round-trip issue in Lib/test/test_typing.py mentioned by SilentGhost: Apparently the following line added in b891c465bb7d38a597c5c2ad547d7b19194f4dad triggers an issue in Tools/parser/unparse.py Literal[b"foo", u"bar"] As this is more

[issue37053] Tools/parser/unparse.py does not handle u"bar" correctly

2019-05-26 Thread Chih-Hsuan Yen
New submission from Chih-Hsuan Yen : Currently (135c6a56e55d2f4f8718b3b9f03ce3c692b15f0f) the following test fails: ./python -m test.regrtest -v test_tools.test_unparse -u cpu (Note that -u cpu is needed to force test_unparse.DirectoryTestCase to check all files under Lib/ and Lib/test/.)

[issue37039] IDLE: Improve zoomheight doc and behavior.

2019-05-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I do not have "Zoom/Restore Height". I have only "Restore Height" which maximizes the height. The result looks identical with and without PR 13576 applied. There is no overlapping nor gap between the IDLE windows and the bottom panel. --

[issue4356] Add "key" argument to "bisect" module functions

2019-05-26 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I think it could be done with `key=lambda item: -item` if the key argument is added. -- ___ Python tracker ___

[issue37049] Implement PEP 589: add TypedDict to typing

2019-05-26 Thread Chih-Hsuan Yen
Change by Chih-Hsuan Yen : -- nosy: +yan12125 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37041] IDLE: path browser unusable on some displays

2019-05-26 Thread Andre Roberge
Andre Roberge added the comment: I ran the example you gave and it worked perfectly. -- ___ Python tracker ___ ___

[issue36686] Docs: asyncio.loop.subprocess_exec documentation is confusing, it's not clear how to inherit stdin, stdout or stderr in the subprocess

2019-05-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: Pull Request is welcome! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37049] Implement PEP 589: add TypedDict to typing

2019-05-26 Thread SilentGhost
SilentGhost added the comment: Either 135c6a56e55d2f4f8718b3b9f03ce3c692b15f0f or b891c465bb7d38a597c5c2ad547d7b19194f4dad (#37046) broke the build. Lib/test/test_typing.py does not round-trip. -- nosy: +SilentGhost ___ Python tracker

[issue31163] Return destination path in Path.rename and Path.replace

2019-05-26 Thread shangdahao
Change by shangdahao : -- keywords: +patch pull_requests: +13489 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/13582 ___ Python tracker

[issue37045] Implement PEP 591: add Final qualifier and @final decorator to typing

2019-05-26 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37049] Implement PEP 589: add TypedDict to typing

2019-05-26 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37046] Implement PEP 586: add Literal type constructor to typing

2019-05-26 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37049] Implement PEP 589: add TypedDict to typing

2019-05-26 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: New changeset 135c6a56e55d2f4f8718b3b9f03ce3c692b15f0f by Ivan Levkivskyi in branch 'master': bpo-37049: PEP 589: Add TypedDict to typing module (GH-13573) https://github.com/python/cpython/commit/135c6a56e55d2f4f8718b3b9f03ce3c692b15f0f --

[issue37046] Implement PEP 586: add Literal type constructor to typing

2019-05-26 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: New changeset b891c465bb7d38a597c5c2ad547d7b19194f4dad by Ivan Levkivskyi in branch 'master': bpo-37046: PEP 586: Add Literal to typing module (#13572) https://github.com/python/cpython/commit/b891c465bb7d38a597c5c2ad547d7b19194f4dad --

[issue37045] Implement PEP 591: add Final qualifier and @final decorator to typing

2019-05-26 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: New changeset f367242d10ef36db38133a39ab7627f63099cba4 by Ivan Levkivskyi in branch 'master': bpo-37045: PEP 591: Add final qualifiers to typing module (GH-13571) https://github.com/python/cpython/commit/f367242d10ef36db38133a39ab7627f63099cba4 --

[issue27860] Improvements to ipaddress module

2019-05-26 Thread Inada Naoki
Inada Naoki added the comment: > I was wondering why it was decided against backporting to 3.7? Because I treats this is just a code cleanup. > 6fa84bd12c4b83bee6a41b989363230d5c03b96c fixes an actual bug #35990 (string > mask in tuple argument for IPv4Interfaces). I didn't thought it was

  1   2   >