[issue24413] Inconsistent behavior between set and dict_keys/dict_items: for non-iterable object x, set().__or__(x) raises NotImplementedError, but {}.keys().__or__(x) raises TypeError

2019-08-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: set.update() accepts arbitrary iterable, but set.__or__() requires a set or frozenset. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue36338] urlparse of urllib returns wrong hostname

2019-08-07 Thread Xianbo Wang
Xianbo Wang added the comment: Python2 urlparse.urlparse and urllib2.urlparse.urlparse have a similar IPv6 hostname parsing bug. >>> urlparse.urlparse('http://nevil.com[]').hostname >>> 'evil.com[' This is less practical to exploit since the parsed domain contains a '[' in the end. Do I

[issue37779] configparser: add documentation about several read() behaviour

2019-08-07 Thread SilentGhost
Change by SilentGhost : -- components: +Cross-Build -Library (Lib) nosy: +Alex.Willmer stage: -> needs patch type: enhancement -> behavior versions: +Python 3.8 ___ Python tracker

[issue37779] configparser: add documentation about several read() behaviour

2019-08-07 Thread SilentGhost
Change by SilentGhost : -- assignee: -> docs@python components: +Documentation -Cross-Build nosy: +docs@python -Alex.Willmer ___ Python tracker ___

[issue35786] get_lock() method is not present for Values created using multiprocessing.Manager()

2019-08-07 Thread Dávid Nemeskey
Dávid Nemeskey added the comment: Nothing in the documentation says that multiprocessing.Value and the object returned by manager.Value() is any different. Nor is it clear why they should be. It is perfectly understandable to expect that manager.Value() is actually of type

[issue31388] Provide a way to defer SIGINT handling in the current thread

2019-08-07 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: Another idea I had is to somehow deal with this in PyErr_WriteUnraisable: whenever PyErr_WriteUnraisable is called for a KeyboardInterrupt, defer that exception to a later time, for example when _PyEval_EvalFrameDefault() is called. --

[issue37782] typing.NamedTuple default parameter type issue

2019-08-07 Thread PBrudny
New submission from PBrudny : There is an issue when NamedTuple parameter with default, which has not explicitly declared type is changed by keyword. Is that an expected behavior (no info https://docs.python.org/3.7/library/collections.html#collections.namedtuple) Used python release:

[issue35786] get_lock() method is not present for Values created using multiprocessing.Manager()

2019-08-07 Thread Dávid Nemeskey
Dávid Nemeskey added the comment: OK, actually: trying to create a multiprocessing.Value object and sharing it between a Pool of processes results in "RuntimeError: Synchronized objects should only be shared between processes through inheritance". So the only way seems to be through a

[issue14019] Unify tests for str.format and string.Formatter

2019-08-07 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- nosy: +nanjekyejoannah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37785] argparse uses %s in gettext calls causing xgettext warnings

2019-08-07 Thread Jakub Kulik
Change by Jakub Kulik : -- title: argparse uses %s in gettext calls -> argparse uses %s in gettext calls causing xgettext warnings ___ Python tracker ___

[issue37783] int returns error (SystemError)

2019-08-07 Thread Eric V. Smith
Eric V. Smith added the comment: This looks like a problem in pandas. If you can distill this down to a short python program that doesn't include any third party libraries, then we can take a look at it. Otherwise, I suggest reporting it on the pandas bug tracker. -- components:

[issue35829] datetime: parse "Z" timezone suffix in fromisoformat()

2019-08-07 Thread Mark Haase
Mark Haase added the comment: Defining isoformat() and fromisoformat() as functional inverses is misguided. Indeed, it's not even true: ``` Python 3.7.2 (default, Dec 28 2018, 14:27:11) [Clang 10.0.0 (clang-1000.11.45.5)] on darwin Type "help", "copyright", "credits" or "license" for more

[issue37783] int returns error (SystemError)

2019-08-07 Thread Philippe Négrel
New submission from Philippe Négrel : Whenever I compile the code, I get this error: Exception has occurred: SystemError returned a result with an error set This issue occured at line 32 of the file "SaveTools.py" in this github branch:

[issue37779] configparser: add documentation about several read() behaviour

2019-08-07 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: I think you can build on the story in the quick start section. You can build on from the last section that starts with the paragraph: Now that we have created and saved a configuration file, let’s read it back and explore the data it holds. As it has some

[issue37783] int returns error (SystemError)

2019-08-07 Thread Philippe Négrel
Philippe Négrel added the comment: My bad the compilation Error came from the panda3d engine, which affected in some way the int class, issue solved, sry for wasting your time X) -- resolution: third party -> not a bug stage: test needed -> resolved status: pending -> closed

[issue37785] argparse uses %s in gettext calls causing xgettext warnings

2019-08-07 Thread Jakub Kulik
Change by Jakub Kulik : -- keywords: +patch pull_requests: +14894 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15161 ___ Python tracker ___

[issue37785] argparse uses %s in gettext calls

2019-08-07 Thread Jakub Kulik
New submission from Jakub Kulik : Running xgettext on argparse.py (of any currently supported Python 3.x) return following warning: ./Lib/argparse.py: warning: 'msgid' format string with unnamed arguments cannot be properly localized: The translator cannot reorder the arguments. Please

[issue37438] ConfigParser.set() docs should mention allow_no_value

2019-08-07 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- nosy: +nanjekyejoannah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15371] test_cmd_line_script should include namespace package tests

2019-08-07 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- nosy: +nanjekyejoannah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37782] typing.NamedTuple default parameter type issue

2019-08-07 Thread Eric V. Smith
Eric V. Smith added the comment: example_text is not a field, since you're not giving it a type. It's just a normal class member. The only field in the NamedTuple is example_int. You can't specify any other field in the call to MyTestedTuple(). To see this, help(MyTestedTuple) starts with:

[issue37784] Compiling Python 3 with sqlite impossible when sqlite installation is in a non standard directory

2019-08-07 Thread Emmanuel Coirier
New submission from Emmanuel Coirier : When compiling sqlite with a specific prefix, Python compilation process is unable to find sqlite despite CFLAGS and LDFLAGS environment variable correctly set. The problem is in the setup.py, in the detect_modules function or the detect_sqlite

[issue37779] configparser: add documentation about several read() behaviour

2019-08-07 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: @Stéphane, thanks for suggesting the above documentation. Feel free to open a pull request here: https://github.com/python/cpython with this draft for review. -- nosy: +nanjekyejoannah ___ Python tracker

[issue37786] Doesn't delete PATH from System Variables (uninstallation)

2019-08-07 Thread Paul Francis
New submission from Paul Francis : Neither the 32bit nor the 64bit version of Python 3.7.4 will remove the PATH variables from the System Environment Variables of the O/S even though the uninstallation screen explicitly displays a message that infers it is doing so. Windows 10 Pro x64 v1903

[issue37787] Minimum denormal or ** bug

2019-08-07 Thread Steve Dower
Steve Dower added the comment: I have nothing to contribute here. Tim's right. (I would love Python to have infinite precision float by default...) -- ___ Python tracker ___

[issue37004] SequenceMatcher.ratio() noncommutativity not well-documented

2019-08-07 Thread Tim Peters
Change by Tim Peters : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___

[issue37787] Minimum denormal or ** bug

2019-08-07 Thread Steve Dower
Steve Dower added the comment: Only half serious ;) I'd settle for "reliable, consistent and easy to explain rounding", which is unfortunately not what IEEE 754 provides (unless you assume significant amounts of CS background that most Python users do not have). But then, nothing else

[issue37787] Minimum denormal or ** bug

2019-08-07 Thread SilentGhost
SilentGhost added the comment: This seems like a Windows-specific issues. Using the same version of python built with gcc 8.3, I get the results inline with your expectations and all the comparisons yield exactly opposite values. -- components: +Windows nosy: +SilentGhost,

[issue37788] fix for bpo-36402 (threading._shutdown() race condition) causes reference leak

2019-08-07 Thread Anselm Kruis
New submission from Anselm Kruis : Starting with commit 468e5fec (bpo-36402: Fix threading._shutdown() race condition (GH-13948)) the following trivial test case leaks one reference and one memory block. class MiscTestCase(unittest.TestCase): def test_without_join(self): # Test

[issue37745] 3.8b3 - windows install gui/ inconsistent options

2019-08-07 Thread Christopher Brousseau
Christopher Brousseau added the comment: Ah - I didn't realize the nuances here - thank you for clearing that up for me. Understand the design goal of keeping window size and using only checkboxes - simple. Also agree some text changes may help, here are some suggestions for your

[issue37745] 3.8b3 - windows install gui/ inconsistent options

2019-08-07 Thread Steve Dower
Steve Dower added the comment: > recommend we change "install launcher" to "install py launcher" to be > explicit. To be clear, you mean we change "Install launcher for all users" to "Install py launcher for all users"? You get the launcher by default regardless, the only choice here is

[issue37718] 2to3 exception handling

2019-08-07 Thread hai shi
hai shi added the comment: 1. the message property of PyBaseExceptionObject(Exception) have been cancelled. [1] https://github.com/python/cpython/blob/2.7/Include/pyerrors.h#L13 [2] https://github.com/python/cpython/blob/master/Include/cpython/pyerrors.h#L18 2. `except Exception, e` is a

[issue35484] Segmentation fault due to faulthandler on Solaris

2019-08-07 Thread Peter Edwards
Peter Edwards added the comment: This is likely a duplicate of issue 21131 -- nosy: +peadar ___ Python tracker ___ ___

[issue37004] SequenceMatcher.ratio() noncommutativity not well-documented

2019-08-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 7dafbe81bd0afb8bd67bc3a4c851a6c728fd87fe by Terry Jan Reedy (Miss Islington (bot)) in branch '3.7': bpo-37004: Documented asymmetry of string arguments in difflib.SequenceMatcher for ratio method (GH-13482) (#15158)

[issue37004] SequenceMatcher.ratio() noncommutativity not well-documented

2019-08-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 1a3a40c1cb582e436d568009fae2b06c0b1978ed by Terry Jan Reedy (Miss Islington (bot)) in branch '3.8': bpo-37004: Documented asymmetry of string arguments in difflib.SequenceMatcher for ratio method (GH-13482) (#15157)

[issue37787] Minimum denormal or ** bug

2019-08-07 Thread Tim Peters
Tim Peters added the comment: Since this depends on the platform libm implementation of pow(), I'm closing this as "won't fix". Steve, on the chance you're serious ;-) , there are implementations of the "constructive reals", which indeed act like infinite-precision floats. But they tend

[issue34679] asyncio.add_signal_handler call fails if not on main thread

2019-08-07 Thread Łukasz Langa
Change by Łukasz Langa : -- nosy: +lukasz.langa, ned.deily priority: normal -> release blocker ___ Python tracker ___ ___

[issue37787] Minimum denormal or ** bug

2019-08-07 Thread Kevin Braun
New submission from Kevin Braun : Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] I believe 2**-1074 is the smallest denormalized number for Python on my system (Windows), so I would expect 2**-1075 to yield 0.0, but it does not. Instead: >>>

[issue37787] Minimum denormal or ** bug

2019-08-07 Thread Tim Peters
Tim Peters added the comment: Python delegates exponentiation with a Python float result to the platform C's double precision `pow()` function. So this is just what the Windows C pow(2.0, -1075.0) returns. All native floating point operations are subject various kinds of error, and this

[issue37786] Doesn't delete PATH from System Variables (uninstallation)

2019-08-07 Thread Steve Dower
Steve Dower added the comment: Duplicate of issue28576 -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Uninstalling Py352 x86 with /uninstall option does not remove prepended paths ___ Python tracker

[issue15987] Provide a way to compare AST nodes for equality recursively

2019-08-07 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: > If consensus has been reached on this, I am willing to do the work. It looks like there is already an active PR https://github.com/python/cpython/pull/14970, there are some non-implemented comments from a core review. --

[issue11165] Document PyEval_Call* functions

2019-08-07 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: These functions are now officially deprecated, see PR 14804. So I think that this issue can be closed. -- nosy: +jdemeyer ___ Python tracker

[issue37734] Registry keys for Windows Store package have wrong executable

2019-08-07 Thread miss-islington
miss-islington added the comment: New changeset eab76c3c75a572566862200728cc8d05b3298f12 by Miss Islington (bot) in branch '3.8': bpo-37734: Fix use of registry values to launch Python from Microsoft Store app (GH-15146)

[issue37734] Registry keys for Windows Store package have wrong executable

2019-08-07 Thread Steve Dower
Steve Dower added the comment: Going to leave this open in commit review for now. I believe this will significantly improve the reliability, but depending on which Windows bugs people run into there may still be more things we can do. -- stage: patch review -> commit review

[issue37789] Update doc strings for test.bytecode_helper

2019-08-07 Thread Joannah Nanjekye
New submission from Joannah Nanjekye : I want to believe there is a mistake in the doc strings for these methods: def assertInBytecode(self, x, opname, argval=_UNSPECIFIED): """Returns instr if op is found, otherwise throws AssertionError""" for instr in

[issue37789] Update doc strings for test.bytecode_helper

2019-08-07 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- assignee: -> docs@python components: +Documentation nosy: +docs@python versions: +Python 3.9 ___ Python tracker ___

[issue37789] Update doc strings for test.bytecode_helper

2019-08-07 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: *supposed not supported. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue18578] Rename and document test.bytecode_helper as test.support.bytecode_helper

2019-08-07 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- pull_requests: +14900 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/15168 ___ Python tracker ___

[issue37764] email.Message.as_string infinite loop

2019-08-07 Thread Ashwin Ramaswami
Ashwin Ramaswami added the comment: I can't reproduce this on 3.9: https://github.com/epicfaace/cpython/runs/187997615 -- nosy: +epicfaace ___ Python tracker ___

[issue37790] subprocess.Popen() is extremely slow

2019-08-07 Thread Alexander Pyhalov
New submission from Alexander Pyhalov : We've moved illumos-gate wsdiff python tool from Python 2 to Python 3. The tool does the following - for each file from old and new proto area compares file attributes to find differences in binary otput (spawning elfdump, dump and other utilities).

[issue37764] email.Message.as_string infinite loop

2019-08-07 Thread Ashwin Ramaswami
Ashwin Ramaswami added the comment: I also can't reproduce this on 3.7: https://github.com/epicfaace/cpython/runs/188005822 -- ___ Python tracker ___

[issue37772] zipfile.Path.iterdir() outputs sub directories many times or not at all

2019-08-07 Thread Jason R. Coombs
Jason R. Coombs added the comment: Please do. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37778] Windows Store package uses wrong icons for file association

2019-08-07 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue37764] email.Message.as_string infinite loop

2019-08-07 Thread My Tran
My Tran added the comment: Reproduced on 3.7.4 Looks like this started happening after this commit: https://github.com/python/cpython/commit/dc20fc4311dece19488299a7cd11317ffbe4d3c3#diff-19171ae20182f6759204a3436475ddd1 -- ___ Python tracker

[issue37734] Registry keys for Windows Store package have wrong executable

2019-08-07 Thread miss-islington
miss-islington added the comment: New changeset 84d31bbf1f7e10bde1ceadcfa0d83d30a04313d5 by Miss Islington (bot) in branch '3.8': bpo-37734: Remove unnecessary brace escapes in PC/layout script (GH-15165) https://github.com/python/cpython/commit/84d31bbf1f7e10bde1ceadcfa0d83d30a04313d5

[issue21261] Teach IDLE to Autocomplete dictionary keys

2019-08-07 Thread Tal Einat
Change by Tal Einat : -- pull_requests: +14901 pull_request: https://github.com/python/cpython/pull/15169 ___ Python tracker ___

[issue21261] Teach IDLE to Autocomplete dictionary keys

2019-08-07 Thread Tal Einat
Tal Einat added the comment: Raymond, your with may just come true! I've just created PR GH-15169 with a new implementation of my own, complete with tests. I have not yet thoroughly tested it though, and would like some feedback on it. -- ___

[issue37734] Registry keys for Windows Store package have wrong executable

2019-08-07 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +14897 pull_request: https://github.com/python/cpython/pull/15165 ___ Python tracker ___

[issue37734] Registry keys for Windows Store package have wrong executable

2019-08-07 Thread Steve Dower
Steve Dower added the comment: New changeset 0378d98678f3617fd44d9a6266e7c17ebce62755 by Steve Dower in branch 'master': bpo-37734: Remove unnecessary brace escapes in PC/layout script (GH-15165) https://github.com/python/cpython/commit/0378d98678f3617fd44d9a6266e7c17ebce62755 --

[issue35786] get_lock() method is not present for Values created using multiprocessing.Manager()

2019-08-07 Thread Josh Rosenberg
Josh Rosenberg added the comment: Reading the docs, I'd definitely expect multiprocessing.Manager().Value to obey the same interface as multiprocessing.Value. The SyncManager docs say: > Its methods create and return Proxy Objects for a number of commonly used > data types to be

[issue24413] Inconsistent behavior between set and dict_keys/dict_items: for non-iterable object x, set().__or__(x) returns NotImplemented, but {}.keys().__or__(x) raises TypeError

2019-08-07 Thread Antoine Pitrou
Change by Antoine Pitrou : -- nosy: -pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24413] Inconsistent behavior between set and dict_keys/dict_items: for non-iterable object x, set().__or__(x) returns NotImplemented, but {}.keys().__or__(x) raises TypeError

2019-08-07 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> rhettinger versions: +Python 3.9 -Python 2.7, Python 3.4, Python 3.5, Python 3.6 ___ Python tracker ___

[issue21762] update the import machinery to only use __spec__

2019-08-07 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- nosy: +nanjekyejoannah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37734] Registry keys for Windows Store package have wrong executable

2019-08-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +14895 pull_request: https://github.com/python/cpython/pull/15163 ___ Python tracker ___

[issue37734] Registry keys for Windows Store package have wrong executable

2019-08-07 Thread Steve Dower
Steve Dower added the comment: New changeset 1fab9cbfbaf19a7bc79cef382136fcf9491e3183 by Steve Dower in branch 'master': bpo-37734: Fix use of registry values to launch Python from Microsoft Store app (GH-15146)

[issue37778] Windows Store package uses wrong icons for file association

2019-08-07 Thread miss-islington
miss-islington added the comment: New changeset dc6653fd06598f42b107dcffcd089d7ee2b1cd44 by Miss Islington (bot) in branch '3.8': bpo-37778: Fixes the icons used for file associations to the Microsoft Store package (GH-15150)

[issue37685] Fix equality checks for some types

2019-08-07 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +14899 pull_request: https://github.com/python/cpython/pull/15167 ___ Python tracker ___

[issue37734] Registry keys for Windows Store package have wrong executable

2019-08-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +14898 pull_request: https://github.com/python/cpython/pull/15166 ___ Python tracker ___

[issue37774] Micro-optimize vectorcall using PY_LIKELY

2019-08-07 Thread Josh Rosenberg
Change by Josh Rosenberg : -- nosy: +josh.r ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37772] zipfile.Path.iterdir() outputs sub directories many times or not at all

2019-08-07 Thread Jason R. Coombs
Change by Jason R. Coombs : -- assignee: -> jaraco ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37778] Windows Store package uses wrong icons for file association

2019-08-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +14896 pull_request: https://github.com/python/cpython/pull/15164 ___ Python tracker ___

[issue37778] Windows Store package uses wrong icons for file association

2019-08-07 Thread Steve Dower
Steve Dower added the comment: New changeset 87ce9588ceb4b4dd625913344844390f0b991b0c by Steve Dower in branch 'master': bpo-37778: Fixes the icons used for file associations to the Microsoft Store package (GH-15150)

[issue37496] Support annotations in signature strings.

2019-08-07 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: > I have a couple of questions about how to use `ast_unparse.c`'s > `expr_as_unicode` function: > 1. Should I create a new function in the `ast` module that exposes that C > function in Python in order to use it in `Lib/inspect.py`? > 2. Would it be better

[issue24413] Inconsistent behavior between set and dict_keys/dict_items: for non-iterable object x, set().__or__(x) returns NotImplemented, but {}.keys().__or__(x) raises TypeError

2019-08-07 Thread Josh Rosenberg
Josh Rosenberg added the comment: To be clear, set().__or__(x) returns NotImplemented, it doesn't raise NotImplementedError. I've edited the title to match. One major problem that gets in the way of a fix is that the interface of set and dict views doesn't match, because dict views only

[issue37764] email.Message.as_string infinite loop

2019-08-07 Thread My Tran
My Tran added the comment: I looked at the job at https://travis-ci.com/epicfaace/cpython/jobs/223345147 and its running py3.6. -- ___ Python tracker ___

[issue37774] Micro-optimize vectorcall using PY_LIKELY

2019-08-07 Thread Josh Rosenberg
Josh Rosenberg added the comment: Is the intent to make these macros public? If not, shouldn't they be prefixed with an underscore, like _Py_SIZE_ROUND_DOWN/_Py_SIZE_ROUND_UP in the same header? -- ___ Python tracker

[issue37790] subprocess.Popen() is extremely slow

2019-08-07 Thread Josh Rosenberg
Josh Rosenberg added the comment: Have you tried switching to using Popen itself (or run, which keeps it to one layer of convenience wrapping)? subprocess.getstatusoutput is three layers of wrapping (it calls check_output, which in turn calls run, which in turn calls Popen), and (unlike

[issue37772] zipfile.Path.iterdir() outputs sub directories many times or not at all

2019-08-07 Thread Srinivas Nyayapati
Srinivas Nyayapati added the comment: I just submitted my PR. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37633] Py_CompileString and PyParser_SimpleParseString not exported in python38.dll

2019-08-07 Thread Ashwin Ramaswami
Ashwin Ramaswami added the comment: I can take this up. -- nosy: +epicfaace ___ Python tracker ___ ___ Python-bugs-list mailing

[issue35712] Make NotImplemented unusable in boolean context

2019-08-07 Thread Josh Rosenberg
Josh Rosenberg added the comment: In the docs for my PR, I mention using NotImplemented in a boolean context is deprecated, raising DeprecationWarning, and will raise TypeError in a future version of Python. Serhiy has suggested the end state might be RuntimeWarning instead of TypeError.

[issue37774] Micro-optimize vectorcall using PY_LIKELY

2019-08-07 Thread Inada Naoki
Inada Naoki added the comment: I'm conservative about adding public APIs. But in this case, LIKELY/UNLIKELY macros are battle-tested in the world already. So I think it's safe to make it public. But I'll wait to merge for a week for other core dev's comments. --

[issue37786] Doesn't delete PATH from System Variables (uninstallation)

2019-08-07 Thread Paul Francis
Change by Paul Francis : -- resolution: duplicate -> status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing

[issue37786] Doesn't delete PATH from System Variables (uninstallation)

2019-08-07 Thread Paul Francis
Paul Francis added the comment: This is regarding the GUI uninstall program that is accessedd via Programs & Features (formerly known as Add/Remove Programs) in Control Panel. Sorry I didn't make this clear. That "duplicate" report seems to be for a Command Line method of uninstalling the

[issue37760] Refactor makeunicodedata.py: dedupe parsing, use dataclass

2019-08-07 Thread Greg Price
Change by Greg Price : -- pull_requests: +14903 pull_request: https://github.com/python/cpython/pull/15171 ___ Python tracker ___

[issue37496] Support annotations in signature strings.

2019-08-07 Thread Guido van Rossum
Guido van Rossum added the comment: > 1. Should I create a new function in the `ast` module that exposes that C > function in Python in order to use it in `Lib/inspect.py`? > 2. Would it be better to just re-use the _AST to string_ implementation in > `Tools/unparse.py`? I would vote for

[issue37790] subprocess.Popen() is extremely slow

2019-08-07 Thread Alexander Pyhalov
Alexander Pyhalov added the comment: I've tried to rewrite subporcess.getstatusoutput() usage with subprocess.Popen() and switch to shell=False, it didn't help, so I doubti it getstatusoutput() overhead, it's Popen() issue. -- ___ Python tracker

[issue37774] Micro-optimize vectorcall using PY_LIKELY

2019-08-07 Thread Ma Lin
Ma Lin added the comment: How about write a suggestion on when to use them in the comment? For example: > You should use it only in cases when the likeliest branch is > very very very likely, or when the unlikeliest branch is very > very very unlikely. from

[issue18236] str.isspace should use the Unicode White_Space property

2019-08-07 Thread Greg Price
Greg Price added the comment: I've gone and made a patch for this change: https://github.com/gnprice/cpython/commit/7dab9d879 Most of the work happens in the script Tools/unicode/makeunicode.py , and along the way I made several changes there that I found made it somewhat nicer to work on,

[issue37772] zipfile.Path.iterdir() outputs sub directories many times or not at all

2019-08-07 Thread Srinivas Nyayapati
Change by Srinivas Nyayapati : -- keywords: +patch pull_requests: +14902 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15170 ___ Python tracker

[issue35712] Make NotImplemented unusable in boolean context

2019-08-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I do not have a strong opinion, so I suggest to not mention neither TypeError, nor RuntimeWarning. After some time of using a DeprecationWarning we can have have some information about whether there is a code which can't be fixed if bool(NotImplemented)

[issue18236] str.isspace should use the Unicode White_Space property

2019-08-07 Thread Ma Lin
Ma Lin added the comment: Greg, could you try this code after your patch? >>> import re >>> re.match(r'\s', '\x1e') # <- before patch -- nosy: +Ma Lin ___ Python tracker

[issue21261] Teach IDLE to Autocomplete dictionary keys

2019-08-07 Thread Kyle Stanley
Kyle Stanley added the comment: > I have not yet thoroughly tested it though, and would like some feedback on > it. I performed some testing on Linux and it looks good as far as I can tell. I added a few minor suggestions, but the auto-complete seems to be functioning as desired.

[issue34775] pathlib.PurePath division raises TypeError instead of returning NotImplemented

2019-08-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 4c69be22df3852f17873a74d015528d9a8ae92d6 by Serhiy Storchaka (aiudirog) in branch 'master': bpo-34775: Return NotImplemented in PurePath division. (GH-9509) https://github.com/python/cpython/commit/4c69be22df3852f17873a74d015528d9a8ae92d6

[issue37685] Fix equality checks for some types

2019-08-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 662db125cddbca1db68116c547c290eb3943d98e by Serhiy Storchaka in branch 'master': bpo-37685: Fixed __eq__, __lt__ etc implementations in some classes. (GH-14952) https://github.com/python/cpython/commit/662db125cddbca1db68116c547c290eb3943d98e

[issue37685] Fix equality checks for some types

2019-08-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 7d44e7a4563072d0fad00427b76b94cad61c38ae by Serhiy Storchaka in branch 'master': bpo-37685: Use singletons ALWAYS_EQ and NEVER_EQ in more tests. (GH-15167) https://github.com/python/cpython/commit/7d44e7a4563072d0fad00427b76b94cad61c38ae

[issue34775] pathlib.PurePath division raises TypeError instead of returning NotImplemented

2019-08-07 Thread miss-islington
Change by miss-islington : -- keywords: +patch pull_requests: +14904 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/15172 ___ Python tracker

[issue37685] Fix equality checks for some types

2019-08-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Łukasz, are you fine with backporting PR 14952 to 3.8? -- nosy: +lukasz.langa ___ Python tracker ___