[issue37757] TargetScopeError not raised for comprehension scope conflict

2019-08-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > We report all sorts of things found by the bytecode compiler as SyntaxError. Except of these which are reported with IndentationError or its subclass TabError. -- ___ Python tracker

[issue34488] improve performance of BytesIO.writelines() by avoiding creation of unused PyLongs

2019-08-05 Thread Inada Naoki
Change by Inada Naoki : -- components: +IO -Extension Modules versions: +Python 3.9 -Python 3.8 ___ Python tracker ___ ___

[issue21261] Teach IDLE to Autocomplete dictionary keys

2019-08-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for going through the history of this issue. It was surprisingly convoluted. I still hope this feature comes to fruition. -- ___ Python tracker

[issue37770] implement __reversed__ on reversed types

2019-08-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Happy to post a pull request if it would be considered. I don't we should do this. Mostly, it seems pointless, but it also isn't really something we would want people to be doing. > Should that give [1, 2, 3] or [1, 2, 3, 4]? I think that > either

[issue25172] Unix-only crypt should not be present on Windows.

2019-08-05 Thread Srinivas Nyayapati
Srinivas Nyayapati added the comment: Hello I would like to work on this issue. First time contributor here. Would putting the import _crypt statement on line 3 in crypt.py inside a try/except block and checking to see if platform is windows then give an appropriate message be a good fix?

[issue37765] IDLE: Include keywords in __main__ autocomplete list

2019-08-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Terry, I used a similar patch. My main use case was around typing where normal shell autocompletes it and was curious if it was intentional. I didn't know that windows didn't give keywords. The keywords are short and added very rarely and

[issue37770] implement __reversed__ on reversed types

2019-08-05 Thread Steven D'Aprano
Steven D'Aprano added the comment: Both 3.7 and 3.8 are in feature-freeze, so the earliest we can get this would be 3.9. But before that, we have to decide on what reversing a reversed object means. it = reversed([1, 2, 3, 4]) next(it) list( reversed(it) ) Should that give [1, 2, 3] or [1,

[issue37757] TargetScopeError not raised for comprehension scope conflict

2019-08-05 Thread Guido van Rossum
Guido van Rossum added the comment: But we don't do that with any of the other (many) errors detected by later passes of the compiler. Those report dozens of SyntaxErrors, with good descriptive messages. Users can search the web for those messages too. Also, I doubt that many people will

[issue37771] No equivalent of `inspect.getcoroutinestate` for PyAsyncGenASend instances

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

[issue37771] No equivalent of `inspect.getcoroutinestate` for PyAsyncGenASend instances

2019-08-05 Thread GeeVye
New submission from GeeVye : In PEP 525, async generators were introduced. They use `.asend()` and `.athrow()` methods that return a "coroutine-like" object - specifically, a PyAsyncGenASend and PyAsyncGenAThrow respectively. While these "coroutine-like" object implement `.send()`,

[issue37757] TargetScopeError not raised for comprehension scope conflict

2019-08-05 Thread Nick Coghlan
Nick Coghlan added the comment: I believe our main motivation for separating it out was the fact that even though TargetScopeError is a compile-time error, the affected code is syntactically fine - there are just issues with unambiguously inferring the intended read/write location for the

[issue21261] Teach IDLE to Autocomplete dictionary keys

2019-08-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: The history is confusing. bpo user Louie Lu (louielu), as github user 'noname louisom', open PR 1511 for this existing issue on 2017 May 9. On May 12, he opened #30348 and PR 1512 with the tests for fetch_completions and get_entity that were part of PR

[issue37741] importlib.metadata docs not showing up in the module index

2019-08-05 Thread Jason R. Coombs
Jason R. Coombs added the comment: > Why is the code in `Lib/importlib/metadata/__init__.py` Mainly because originally, the code was in multiple modules. I'm happy for it to move into a single file module. -- ___ Python tracker

[issue2889] curses for windows (alternative patch)

2019-08-05 Thread Ulf Magnusson
Ulf Magnusson added the comment: Just as an FYI, there is a repository for building curses wheels for Windows at https://github.com/zephyrproject-rtos/windows-curses, based on patches from here and Gohlke's work. Building wheels is less straightforward than it used to be, e.g. due to term.h

[issue37770] implement __reversed__ on reversed types

2019-08-05 Thread Jason Curtis
Change by Jason Curtis : -- title: reversed class should implement __reversed__ -> implement __reversed__ on reversed types ___ Python tracker ___

[issue37770] reversed class should implement __reversed__

2019-08-05 Thread Jason Curtis
Jason Curtis added the comment: Ok, not so sure about the PR now; I dug around and realized this is a C implementation and my C is likely not strong enough! -- ___ Python tracker

[issue37769] Windows Store installer should warn user about MAX_PATH

2019-08-05 Thread Eryk Sun
Eryk Sun added the comment: > I think this only happens with open(). Well, and everything else that calls a CRT function and relies on errno, such as C read() and write(). Though we'd have to look through on a case-by-case basis to ensure that _doserrno is valid in each case, i.e. that

[issue37769] Windows Store installer should warn user about MAX_PATH

2019-08-05 Thread Eryk Sun
Eryk Sun added the comment: > First it seems the error is being raised incorrectly - winerror 2 is > for file not found, but it's being passed as errno 2. I think this only happens with open(). The _io module could use the CRT's _doserrno value to call

[issue37770] reversed class should implement __reversed__

2019-08-05 Thread Jason Curtis
New submission from Jason Curtis : I've just been trying to implement some logic which potentially involves reversing things back to their initial orders, and it'd be nice to just be able to call reversed() on something that has already been reversed. >>> reversed(reversed([1,2,3,4]))

[issue37757] TargetScopeError not raised for comprehension scope conflict

2019-08-05 Thread Guido van Rossum
Guido van Rossum added the comment: [Barry] > I know the PEP defines TargetScopeError as a subclass of SyntaxError, but it > doesn't really explain why a subclass is necessary. I think seeing > "TargetScopeError" will be a head scratcher. Why not just SyntaxError > without introducing a

[issue37769] Windows Store installer should warn user about MAX_PATH

2019-08-05 Thread Steve Dower
Steve Dower added the comment: Short of adding a popup into Python itself the first time you run it (and would that include if you run "pip" first?), we don't have any ability to extend the installer. We could reduce the "local-packages/Python37/site-packages" part of the path by

[issue37759] Polish whatsnew for 3.8

2019-08-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 26f91db5ba487033994b396011518cfc80bf8401 by Raymond Hettinger (Miss Islington (bot)) in branch '3.8': bpo-37759: First round of major edits to Whatsnew 3.8 (GH-15127) (GH-15139)

[issue37415] Error build Python with Intel compiler: doesn't provide atomic_uintptr_t

2019-08-05 Thread Christian Berger
Christian Berger added the comment: I have the same problem on RH6 with icc 2019.4 and Python 3.6.9. Do you want a new bug for that? Changing Include/pyatomic.h to use _Atomic as suggested by Victor in msg346785 leads to the error that _Atomic was undefined. -- nosy: +cberger

[issue37706] IDLE: fix sidebar click-drag bug and macOS test failures

2019-08-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: I remembered this morning that we need to check test_tkk_guionly or (easier, but less obviously also all gui) test_tk either in test suite output, or run by itself with python -m test.test_tk # or test -ugui test_tk because idle it has non-gui tests that

[issue37769] Windows Store installer should warn user about MAX_PATH

2019-08-05 Thread Jonas Binding
New submission from Jonas Binding : The "Windows Store" installer for Python has a seemingly low entry barrier, causing people to install without reading something like https://docs.python.org/3.7/using/windows.html. However, due to the really long path it uses for Python (e.g.

[issue21261] Teach IDLE to Autocomplete dictionary keys

2019-08-05 Thread Tal Einat
Tal Einat added the comment: I had no idea that this was desired... I had this working in a old version of autocomplete back before 2010! I'm not sure whether I'll be able to find it though. I can't understand why Louie's PR was closed, it seemed to be going in the right direction... Any

[issue37706] IDLE: fix sidebar click-drag bug and macOS test failures

2019-08-05 Thread Ned Deily
Ned Deily added the comment: Terry, using an out-of-date version of Tcl/Tk is the least of the problems here. My point was that, the way things are now, IDLE GUI tests are not being run at all on macOS Azure CI runs regardless of the Tk version in use and, AFAIK, there is no easy way to

[issue37768] IDLE: Show help(object) output in a text viewer

2019-08-05 Thread Tal Einat
Tal Einat added the comment: Raymond, I'm interested in your opinion on this. -- nosy: +rhettinger ___ Python tracker ___ ___

[issue37768] IDLE: Show help(object) output in a text viewer

2019-08-05 Thread Tal Einat
Tal Einat added the comment: See PR GH-15140. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37768] IDLE: Show help(object) output in a text viewer

2019-08-05 Thread Tal Einat
Change by Tal Einat : -- keywords: +patch pull_requests: +14878 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/15140 ___ Python tracker

[issue37767] TTK Treeview alternating row color not working

2019-08-05 Thread Zachary Ware
Zachary Ware added the comment: That file is part of Tcl/Tk and just bundled with Python on Windows; please raise an issue on the Tk issue tracker (which appears to be here: https://core.tcl-lang.org/tk/ticket). If and when the change is released in a new version of Tcl/Tk, please feel

[issue37768] IDLE: Show help(object) output in a text viewer

2019-08-05 Thread Tal Einat
New submission from Tal Einat : Currently, IDLE just writes the entire help message into the shell. If auto-squeezing is enabled, then long help messages are automatically squeezed, following which the help text can be viewed in a text viewer or expanded inline. This is still not great UX.

[issue35855] IDLE squeezer: improve unsqueezing and autosqueeze default

2019-08-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: I presume you are proposing to wrap the site-added help with a function that would check object outputs and put them either in the shell unsqueezed or directly into a viewer. Seems plausible. -- ___ Python

[issue37767] TTK Treeview alternating row color not working

2019-08-05 Thread Christopher Caputo
New submission from Christopher Caputo : The default installation of Python3.7 on all my Win10 machines has a ttk theme file that disables treeview alternating row colors. The specific file for me is "vistaTheme.tcl" located at "C:\Program Files\Python37\tcl\tk8.6\ttk". In the #Treeview

[issue27609] IDLE completions: format, factor, and fix

2019-08-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: #37765 Include keywords in ''(__main__) list. ## Annotate completion list, at least as an option, with 'keyword' or class, possibly prefixed with 'built-in', so 'built-in function', 'function', and so on. #37766 revise fetch_completions, add htest

[issue37766] IDLE autocomplete: revise fetch_completions, add htest

2019-08-05 Thread Terry J. Reedy
New submission from Terry J. Reedy : #36419 did not cover fetch_ completions. Most of the remaining 7% of autocomplete not covered by tests is in that function. I want to rename smalll to small and bigl to big (and in test file); they are awkward to read and write. I may want to revise

[issue37759] Polish whatsnew for 3.8

2019-08-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +14877 pull_request: https://github.com/python/cpython/pull/15139 ___ Python tracker ___

[issue37759] Polish whatsnew for 3.8

2019-08-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 4f9ffc9d1a6a293563def4a13331302219b4 by Raymond Hettinger in branch 'master': bpo-37759: First round of major edits to Whatsnew 3.8 (GH-15127) https://github.com/python/cpython/commit/4f9ffc9d1a6a293563def4a13331302219b4

[issue37765] IDLE: Include keywords in __main__ autocomplete list

2019-08-05 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +14876 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/15138 ___ Python tracker

[issue37765] IDLE: Include keywords in __main__ autocomplete list

2019-08-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: If keywords are included when the REPL has tab completions (which Windows doesn't), then it is plausible that IDLE should. It could be considered part of 'Shell should (mostly) imitate REPL'. But I can see Tal's point, though the relative expansion is

[issue35855] IDLE squeezer: improve unsqueezing and autosqueeze default

2019-08-05 Thread Tal Einat
Tal Einat added the comment: Regarding help(), there's actually a comment in IDLE's code by KBK that it should be opened in a reader (this was before TextViewer was added). IMO that's a much better approach for long help() outputs, and is simple to implement. --

[issue37765] Include keywords in autocomplete list for IDLE

2019-08-05 Thread Tal Einat
Tal Einat added the comment: To be clear, I'm currently -1 on this suggestion. -- ___ Python tracker ___ ___ Python-bugs-list

[issue37765] Include keywords in autocomplete list for IDLE

2019-08-05 Thread Tal Einat
Tal Einat added the comment: The global completion list (i.e. when not completing a file name or object attribute) is already full of all the built-ins, imported modules and variables. So IMO we'd need a good reason to add yet more options into the completions list. Personally, I don't

[issue37741] importlib.metadata docs not showing up in the module index

2019-08-05 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: @jaraco - Why is the code in `Lib/importlib/metadata/__init__.py` instead of `Lib/importlib/metadata.py`? Is that to make it easier to port between CPython stdlib and the standalone version? -- ___ Python

[issue37741] importlib.metadata docs not showing up in the module index

2019-08-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Including a module directive with synopsis as below in importlib.metadata.rst seems to fix this. It would also be good to include a link to source code from the importlib.metadata docs page since it's written in Python. .. module::

[issue37765] Include keywords in autocomplete list for IDLE

2019-08-05 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +taleinat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37765] Include keywords in autocomplete list for IDLE

2019-08-05 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : Currently, the basic repl for python provides keywords as part of autocompletion but IDLE doesn't provide them. I was trying to build an async repl on top of IDLE to support top level await statements as part of IDLE since "python -m asyncio"

[issue37741] importlib.metadata docs not showing up in the module index

2019-08-05 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: There's an importlib.metadata.rst file which describes how to use the API, but that doesn't appear to be linked from either the main library ToC or the importlib documentation itself. I'll see if I can put together a PR to fix this. -- assignee:

[issue37762] IDLE very slow due a super long line output in chunks

2019-08-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: One may copy and paste small chunks of code and output into a message. By 'demo script', I presume you mean the following. import tensorflow as tf mnist = tf.keras.datasets.mnist (x_train, y_train),(x_test, y_test) = mnist.load_data() x_train, x_test =

[issue35855] IDLE squeezer: improve unsqueezing and autosqueeze default

2019-08-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: A4: Autosqueeze long lines output in chunks. tensorflow.keras appears to do this. See #37762. Easy reproducer: for i in range(1): print('%6s' % i, end='') --

[issue37757] TargetScopeError not raised for comprehension scope conflict

2019-08-05 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I know the PEP defines TargetScopeError as a subclass of SyntaxError, but it doesn't really explain why a subclass is necessary. I think seeing "TargetScopeError" will be a head scratcher. Why not just SyntaxError without introducing a new exception?

[issue37706] IDLE: fix sidebar click-drag bug and macOS test failures

2019-08-05 Thread Steve Dower
Steve Dower added the comment: All I can add is these are the steps: https://github.com/python/cpython/blob/master/.azure-pipelines/macos-steps.yml The Linux steps use xvfb, but the macOS steps do not. And we don't do anything at all to install Tcl/Tk on the build agent. --

[issue32912] Raise non-silent warning for invalid escape sequences

2019-08-05 Thread Ned Deily
Change by Ned Deily : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37722] imaplib crashes when trying to read a letter from an imap server imaps.почта.рус

2019-08-05 Thread My Tran
Change by My Tran : -- components: +email -Library (Lib) nosy: +barry, r.david.murray ___ Python tracker ___ ___ Python-bugs-list

[issue37764] email.Message.as_string infinite loop

2019-08-05 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +maxking ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37764] email.Message.as_string infinite loop

2019-08-05 Thread My Tran
New submission from My Tran : The following will hang the system until it runs out of memory. import email import email.policy text = """From: u...@host.com To: u...@host.com Bad-Header: =?us-ascii?Q?LCSwrV11+IB0rSbSker+M9vWR7wEDSuGqmHD89Gt=ea0nJFSaiz4vX3XMJPT4vrE?=

[issue37763] Need setup.py to pick up -isystem flags from CPPFLAGS

2019-08-05 Thread Johan Herland
Change by Johan Herland : -- keywords: +patch pull_requests: +14874 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15136 ___ Python tracker ___

[issue37763] Need setup.py to pick up -isystem flags from CPPFLAGS

2019-08-05 Thread Johan Herland
New submission from Johan Herland : First time contributor here, still learning the ropes. We're cross-compiling python in an environment where we set up CPPFLAGS, LDFLAGS, etc. to point directly to the locations where we have built Python's dependencies. For example, we will typically build

[issue35545] asyncio.base_events.create_connection doesn't handle scoped IPv6 addresses

2019-08-05 Thread Michael Felt
Michael Felt added the comment: I did not ask back in June - but could this also be backported to 3.7. I am trying very hard to have all tests also passing on 3.7. as @asvetlov is ok with a skipped test for AIX - see https://bugs.python.org/issue35545#msg344003 I can make the backport, if

[issue33997] multiprocessing Pool hangs in terminate()

2019-08-05 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Removed Python 3.6 as it is in security fixes now. -- versions: +Python 3.8, Python 3.9 -Python 3.6 Added file: https://bugs.python.org/file48532/test_multiprocessing.py ___ Python tracker

[issue33997] multiprocessing Pool hangs in terminate()

2019-08-05 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- components: +Library (Lib) -Windows ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33997] multiprocessing Pool hangs in terminate()

2019-08-05 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi, I got bit by this bug last week, I wrote an example that reproduce the basic idea of our program main loop and it hangs - around 20% of the time with a release build of Python 3.7.4 - around 6% of the time with a debug build of Python 3.7, 3.8 and 3.9

[issue37762] IDLE very slow due to special characters

2019-08-05 Thread Bernhard Hiller
New submission from Bernhard Hiller : After installing tensorflow, I tried to run the demo script found at https://www.tensorflow.org/tutorials? In a common python shell, the "model.fit(x_train, y_train, epochs=5)" step takes a few minutes. In IDLE, no end is in sight after half an hour.

[issue19692] Rename Py_SAFE_DOWNCAST

2019-08-05 Thread hai shi
hai shi added the comment: It's a big problem, no ability to answer this question :( -- ___ Python tracker ___ ___

[issue33829] C API: provide new object protocol helper

2019-08-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue33829] C API: provide new object protocol helper

2019-08-05 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: I agree with rejecting and closing this issue. -- nosy: +jdemeyer ___ Python tracker ___ ___

[issue37752] Redundant Py_CHARMASK called in some files

2019-08-05 Thread Jordon.X
Jordon.X <9651...@qq.com> added the comment: After the full search for the project code, there are more than a dozen similar issues that need to be modified. A new PR will be added later. -- title: Redundant Py_CHARMASK called in normalizestring(codecs.c) -> Redundant Py_CHARMASK

[issue37562] PEP 590 implementation may have introduced a performance regression

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

[issue36974] Implement PEP 590

2019-08-05 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > Should we add a note like "if you get a 'SystemError: bad call flags' on > import, check the descriptor flags of your functions" in What's New in Python > 3.8? A better solution would be to change the error message. We could change it to something like

[issue37562] PEP 590 implementation may have introduced a performance regression

2019-08-05 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: Please close -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36757] uuid constructor accept invalid strings (extra dash)

2019-08-05 Thread Tal Einat
Tal Einat added the comment: I too find this surprising, especially given how thoroughly UUID validates inputs of types other than "hex". The documentation simply states that for hex input, hypens, curly braces and a URN prefix are optional. In practice, though, it is much more lenient

[issue36767] Segmentation fault when running c extension on macOS

2019-08-05 Thread Tal Einat
Tal Einat added the comment: I'm closing this: It has had no followup in over 3 months, and seems to be a simple misuse of the C API rather than a bug. -- nosy: +taleinat stage: -> resolved status: pending -> closed ___ Python tracker

[issue37587] JSON loads performance improvement for long strings

2019-08-05 Thread Inada Naoki
Inada Naoki added the comment: And I confirmed performance improvement by my patch (GH-15134) on all of 4 compilers. $ ./python -m pyperf timeit -s "import json; x = json.dumps({'k': '1' * 2 ** 20})" "json.loads(x)" old: 9211e2 new: 8a758f opt2: 284e47 gcc (Ubuntu 8.3.0-6ubuntu1) 8.3.0

[issue37587] JSON loads performance improvement for long strings

2019-08-05 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +14873 pull_request: https://github.com/python/cpython/pull/15134 ___ Python tracker ___

[issue36756] tkinter tk.createcommand memory leak

2019-08-05 Thread Tal Einat
Tal Einat added the comment: Tkinter calls Tcl_DeleteInterp when a Tk object is garbage collected, and it registers a cleanup callback for each registered command, which according to the Tcl docs should be called upon Tcl_DeleteInterp[1]. So this must either be a bug in Tcl or something in

[issue37587] JSON loads performance improvement for long strings

2019-08-05 Thread Inada Naoki
Inada Naoki added the comment: I tried without PGO and confirmed performance improved on GCC 7.2.0. No change on other compiler versions. $ ./python -m pyperf timeit -s "import json; x = json.dumps({'k': '1' * 2 ** 20})" "json.loads(x)" old: 9211e2 new: 8a758f gcc (Ubuntu 8.3.0-6ubuntu1)

[issue37757] TargetScopeError not raised for comprehension scope conflict

2019-08-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37730] NotImplemented is used instead of NotImplementedError in docs

2019-08-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution David! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue37730] NotImplemented is used instead of NotImplementedError in docs

2019-08-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 35f9bccd8198330579ecb4b4c503062f8b5da130 by Serhiy Storchaka (David H) in branch '2.7': [2.7] bpo-37730: Fix usage of NotImplemented instead of NotImplementedError in docs. (GH-15062). (GH-15133)

[issue37730] NotImplemented is used instead of NotImplementedError in docs

2019-08-05 Thread David Heiberg
Change by David Heiberg : -- pull_requests: +14872 pull_request: https://github.com/python/cpython/pull/15133 ___ Python tracker ___

[issue28716] Fractions instantiation revisited

2019-08-05 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: See https://discuss.python.org/t/pep-3141-ratio-instead-of-numerator-denominator/2037/24?u=jdemeyer for a proposal to define a new dunder __ratio__ (instead of as_integer_ratio) for this. -- nosy: +jdemeyer ___

[issue12680] cPickle.loads is not thread safe due to non-thread-safe imports

2019-08-05 Thread Tal Einat
Tal Einat added the comment: I am able to reproduce this with Python 3.6.3 and 3.7.0, but not with 3.7.4, 3.8.0b3 or current master (to be 3.9). This has been fixed since 3.7.3; see issue #34572. -- nosy: +taleinat resolution: not a bug -> fixed stage: -> resolved status: pending

[issue36773] Race condition during pickle.load()

2019-08-05 Thread Tal Einat
Tal Einat added the comment: On Windows 10, this reproduces consistently with 3.6 and 3.7.0, but not with 3.7.4, 3.8.0b3 and current master. So this definitely seems to be fixed. -- nosy: +taleinat resolution: -> fixed stage: -> resolved status: open -> closed

[issue35224] PEP 572: Assignment Expressions

2019-08-05 Thread Nick Coghlan
Nick Coghlan added the comment: Proposed PEP update is here: https://github.com/python/peps/pull/1140 The update also aims to clarify *why* we're doing the extra work in CPython's compiler to make these cases fail (i.e. we don't want to implicitly impose the current CPython runtime

[issue37761] Inaccurate explanation of ArgumentParser.add_argument()'s name-or-flags in JA

2019-08-05 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue37757] TargetScopeError not raised for comprehension scope conflict

2019-08-05 Thread Nick Coghlan
Nick Coghlan added the comment: Added a PEP update as well: https://github.com/python/peps/pull/1140 -- ___ Python tracker ___ ___

[issue37761] Inaccurate explanation of ArgumentParser.add_argument()'s name-or-flags in JA

2019-08-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Japanese translation is tracked as part of GitHub issues at https://github.com/python/python-docs-ja . -- nosy: +xtreak ___ Python tracker

[issue37761] Inaccurate explanation of ArgumentParser.add_argument()'s name-or-flags in JA

2019-08-05 Thread Tatsuo Sekine
New submission from Tatsuo Sekine : Second sentence of name-or-flags explanation of argparse.ArgumentParser.add_argument() in ja lang. is: > そのため、add_argument() の第1引数は、フラグのリストか、シンプルな引数名のどちらかになります。 #[1] while its original English is: > The first arguments passed to add_argument() must

[issue37729] gc: stats from multi process are mixed up

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

[issue37729] gc: stats from multi process are mixed up

2019-08-05 Thread Inada Naoki
Inada Naoki added the comment: New changeset e8ea34855c7635f8a84b430f17dc01a666f4c0ef by Inada Naoki (Miss Islington (bot)) in branch '3.8': bpo-37729: gc: write stats at once (GH-15050) https://github.com/python/cpython/commit/e8ea34855c7635f8a84b430f17dc01a666f4c0ef --

[issue19692] Rename Py_SAFE_DOWNCAST

2019-08-05 Thread Inada Naoki
Inada Naoki added the comment: While Py_SAFE_DOWNCAST is not documented, it doesn't start with underscore. How many 3rd party code are broken by changing the name? -- nosy: +inada.naoki ___ Python tracker

[issue37623] namedtuple integration for importlib.abc.Loader

2019-08-05 Thread Andrew Yurisich
Andrew Yurisich added the comment: If anyone is interested in the progress I was able to make as a result of this discussion, feel free to check out https://github.com/captain-kark/python-module-resources/blob/d85453ff4f5022127874a5842449d95bb5eda234/module_resources/module_resources.py and