[issue38630] subprocess.Popen.send_signal() should poll the process

2019-11-03 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > Did someone propose a pull request to fix this issue by ignoring > ProcessLookupError? I misread your PR, sorry. I thought that was the effect. -- ___ Python tracker

[issue38667] PYTHONCOERCECLOCALE=0 ignored

2019-11-03 Thread Christoph Reiter
Christoph Reiter added the comment: Thanks! I didn't quite see the relation between PEP 538 and PEP 540 after only reading the former. Anyone else finding this: See "Relationship with the locale coercion" in https://www.python.org/dev/peps/pep-0540/ for the details. -- resolution:

[issue38681] 2to3 Conversion Result using BlankLine() can be Syntactically Incorrect

2019-11-03 Thread Samuel Tatasurya
New submission from Samuel Tatasurya : Transformation performed by certain fixers (e.g. future, itertools_imports) that causes a statement to be replaced by a blank line will generate a Python file that contains syntax error. For example, assuming a Python file (foo.py) containing line

[issue38671] pathlib.Path.resolve(strict=False) returns relative path on Windows if the entry does not exist

2019-11-03 Thread Tzu-ping Chung
Change by Tzu-ping Chung : -- title: pathlib.Path.resolve(strict=False) returns relative path on Windows if the entry does not existent -> pathlib.Path.resolve(strict=False) returns relative path on Windows if the entry does not exist ___ Python

[issue37759] Polish whatsnew for 3.8

2019-11-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset f90e0d2371bc2bcab7bf5307cfd73571eb06b375 by Raymond Hettinger (Miss Skeleton (bot)) in branch '3.8': bpo-37759: Show output from var_access_benchmark (GH-17040) (GH-17041)

[issue37759] Polish whatsnew for 3.8

2019-11-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 1cdadf414b9934bba9294efa1f4b8d97eef08434 by Raymond Hettinger in branch 'master': bpo-37759: Show output from var_access_benchmark (GH-17040) https://github.com/python/cpython/commit/1cdadf414b9934bba9294efa1f4b8d97eef08434 --

[issue37759] Polish whatsnew for 3.8

2019-11-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +16554 pull_request: https://github.com/python/cpython/pull/17041 ___ Python tracker ___

[issue37759] Polish whatsnew for 3.8

2019-11-03 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +16553 pull_request: https://github.com/python/cpython/pull/17040 ___ Python tracker ___

[issue38601] Couldn't able to install multiple python minor version in windows due to EXE script

2019-11-03 Thread Steve Dower
Steve Dower added the comment: When you say minor version, I assume you mean 3.x vs 3.y versions. These already install separately and should not upgrade each other. If you think they are, could you provide some more information about what you are seeing? --

[issue38680] PyGILState_Release does not release gil correctly, resulting in deadlock

2019-11-03 Thread 123 wlpha
123 wlpha added the comment: Usually in the python extension, only the python function needs to be written between Py_BEGIN_ALLOW_THREADS and Py_END_ALLOW THREADS, but the c callback function needs PyGILState_Ensure and PyGILState_Release, but PyGILState_Releas cannot release gil correctly.

[issue38680] PyGILState_Release does not release gil correctly, resulting in deadlock

2019-11-03 Thread 123 wlpha
New submission from 123 wlpha : PyGILState_Release does not really release gil, causing the next PyGILState_Ensure deadlock, now you need to call if (PyGILState_Check () > 0) {PyEval_SaveThread ();} ``` auto gil = PyGILState_Ensure(); // call c api PyGILState_Release (gil); if

[issue38679] Scipy and Scikit learn library installation issues

2019-11-03 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This bug tracker is for CPython related issues. Please file this issue in the respective project issue tracker. I propose closing it as third party. -- nosy: +xtreak type: security -> behavior ___ Python

[issue38679] Scipy and Scikit learn library installation issues

2019-11-03 Thread Dhongs Elmido
Change by Dhongs Elmido : -- type: -> security ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38667] PYTHONCOERCECLOCALE=0 ignored

2019-11-03 Thread STINNER Victor
STINNER Victor added the comment: You should not use sys.getfilesystemencoding() nor locale.getpreferredencofing() to check if the C locale has been coerced, but read the LC_CTYPE locale instead: # C locale coerced $ LC_CTYPE=C python3 -c "import locale;

[issue38630] subprocess.Popen.send_signal() should poll the process

2019-11-03 Thread STINNER Victor
STINNER Victor added the comment: > I would prefer to only use platform specific code when the platform provides > something like pidfd: I understand that Linux, FreeBSD, OpenBSD, NetBSD, and > Illumos are concerned. I mean reuse an exisiting solution, rather than > writing our own

[issue38630] subprocess.Popen.send_signal() should poll the process

2019-11-03 Thread STINNER Victor
STINNER Victor added the comment: > -1 about the PR solution to suppress ProcessLookupError in case the process > is gone. Did someone propose a pull request to fix this issue by ignoring ProcessLookupError? > In psutil I solved the “pid reused problem” by using process creation time to >

[issue38679] Scipy and Scikit learn library installation issues

2019-11-03 Thread Marvin
New submission from Marvin : I recently uninstalled a previous version of Python 3.7.3, and installed Python 3.8.0. Prior to the update, I had no issues installing scipy, and scikit learn. However, I am unable to do this and received the error below. C:\Users\Marvin McKiney II>python -m

[issue38382] statistics.harmonic_mean fails to raise error with negative input that follows a 0

2019-11-03 Thread Warren Weckesser
Warren Weckesser added the comment: On 10/9/19, Mark Dickinson wrote: > > Mark Dickinson added the comment: > >> In [20]: harmonic_mean([math.nan, 0]) >> >> Out[20]: 0 > > That one seems excusable, for the same sort of reasons that IEEE 754 > specifies that hypot(nan, inf) is inf rather than

[issue38677] Arraymodule initialization error handling improvements

2019-11-03 Thread Marco Paolini
Change by Marco Paolini : -- keywords: +patch pull_requests: +16552 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17039 ___ Python tracker ___

[issue38678] TypeError raised trying to run TPT 10.3 Example 2 in Python 3.4.3

2019-11-03 Thread David Goldsmith
New submission from David Goldsmith : When I run the second example code of Section 10.3 of The Python Tutorial: import argparse from getpass import getuser parser = argparse.ArgumentParser(description='An argparse example.') parser.add_argument('name', nargs='?', default=getuser(), help='The

[issue38677] Arraymodule initialization error handling improvements

2019-11-03 Thread Marco Paolini
New submission from Marco Paolini : Module two-phase initialization does not report errors correctly to the import machinery -- components: Extension Modules messages: 355913 nosy: mpaolini priority: normal severity: normal status: open title: Arraymodule initialization error handling

[issue38430] Memory leak in ThreadPoolExecutor + run_in_executor

2019-11-03 Thread Emmanuel Arias
Change by Emmanuel Arias : -- keywords: +patch pull_requests: +16551 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17038 ___ Python tracker ___

[issue38676] Unable to install Python 3.8 on Windows 10

2019-11-03 Thread BRT
BRT added the comment: Attaching a rar with the Justforme log files -- Added file: https://bugs.python.org/file48693/Temp.rar ___ Python tracker ___

[issue38676] Unable to install Python 3.8 on Windows 10

2019-11-03 Thread BRT
Change by BRT : Removed file: https://bugs.python.org/file48692/Python 3.8.0 (32-bit)_20191103234319.log ___ Python tracker ___ ___

[issue38676] Unable to install Python 3.8 on Windows 10

2019-11-03 Thread BRT
Change by BRT : Added file: https://bugs.python.org/file48692/Python 3.8.0 (32-bit)_20191103234319.log ___ Python tracker ___ ___

[issue38676] Unable to install Python 3.8 on Windows 10

2019-11-03 Thread BRT
New submission from BRT : Some information: I had the same Python version installed before, I uninstalled it (along with its launcher) using ccleaner (to install it in another path) I tried to install Python in a new folder but got an error because another installation was going on (it

[issue38663] Untokenize does not round-trip ws before bs-nl

2019-11-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since these posts were more or less copied to pydev list, I am copying my response on the list here. --- > **tl;dr:** Various posts, linked below, discuss a much better replacement for > untokenize. If that were true, I would be interested. But as

[issue37916] distutils: allow overriding of the RANLIB command on macOS (darwin)

2019-11-03 Thread Isuru Fernando
Isuru Fernando added the comment: This is an issue even without cross-compilations as there is an environment variable for the archiver and therefore the archiver and ranlib can be from 2 different toolchains and leads to error. Ran into this issue in python 3.8 on macOS with an lto build

[issue38382] statistics.harmonic_mean fails to raise error with negative input that follows a 0

2019-11-03 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +16550 pull_request: https://github.com/python/cpython/pull/17037 ___ Python tracker ___

[issue38675] Sug. for the scope example in TPT Chapter 9

2019-11-03 Thread David Goldsmith
Change by David Goldsmith : -- title: Sug. for the scope example in TPT Cjapter 9 -> Sug. for the scope example in TPT Chapter 9 ___ Python tracker ___

[issue38675] Sug. for the scope example in TPT Cjapter 9

2019-11-03 Thread David Goldsmith
New submission from David Goldsmith : In The Python Tutorial, at the end of Section 9.2.1 "Scopes and Namespaces Example," there occurs the statement: "You can also see that there was no previous binding for spam before the global assignment." Indeed, one can "virtually see" this by

[issue38669] patch.object should raise another error when first argument is a str

2019-11-03 Thread Elena Oat
Change by Elena Oat : -- keywords: +patch pull_requests: +16549 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17034 ___ Python tracker ___

[issue38672] Crash on mimetypes.init() if there is no access to one of knownfiles

2019-11-03 Thread SilentGhost
SilentGhost added the comment: The fix seems fairly obvious: replacing isfile check with try-catch statement for all OSErrors. Would you like to submit a pull request, Michał? -- nosy: +SilentGhost stage: -> test needed type: crash -> behavior versions: -Python 2.7, Python 3.5,

[issue37373] Configuration of windows event loop for libraries

2019-11-03 Thread Nathaniel Smith
Nathaniel Smith added the comment: Yeah, that's the question. I've dug into the AFD_POLL stuff more now, and... There's a lot of edge cases to think about. It certainly *can* be done, because this is the primitive that 'select' and friends are built on, so obviously it can do anything they

[issue38674] RotatingFileHandler issue: logs in the file are printed in incorrect order.

2019-11-03 Thread Akshay Indalkar
New submission from Akshay Indalkar : I am using RotatingFileHandler library for saving the logs in the email.log file. Issue is logs are not saved in the correct order in the log file. For Example: The latest logs are always needs to be saved in email.log file, then email.log.1, then

[issue11354] argparse: nargs could accept range of options count

2019-11-03 Thread paul j3
paul j3 added the comment: A couple of quick observations: - this is one of the first patches that I worked on, so the details aren't fresh in my mind. A glance at my latest patch show that this isn't a trivial change. - nargs changes affect the input handling, the parsing, help and

[issue38673] REPL shows continuation prompt (...) when comment or space entered

2019-11-03 Thread Guido van Rossum
New submission from Guido van Rossum : This has always bothered me, and it shouldn't be necessary. This session: >>> #foo ... >>> should really have been >>> #foo >>> It's confusing that the REPL prompt switches to "..." here, for no good reason. It should just treat the line as empty.

[issue11354] argparse: nargs could accept range of options count

2019-11-03 Thread hai shi
hai shi added the comment: I think the answer is 'yes'(It's over 8 years~). And tons of argparse'work need to be finished;) -- nosy: +shihai1991 ___ Python tracker ___

[issue11354] argparse: nargs could accept range of options count

2019-11-03 Thread alclarks
alclarks added the comment: Hi, I'm a new contributor looking for issues to work on. This looks like a nice enhancement, would it be a good idea for me to update the patch and raise a pull request? -- nosy: +alclarks ___ Python tracker

[issue38663] Untokenize does not round-trip ws before bs-nl

2019-11-03 Thread Edward K Ream
Edward K Ream added the comment: This post: https://groups.google.com/d/msg/leo-editor/DpZ2cMS03WE/5X8IDzpgEAAJ discusses unit testing. The summary states: "I've done the heavy lifting on issue 38663. Python devs should handle the details of testing and packaging." I'll leave it at that.

[issue38663] Untokenize does not round-trip ws before bs-nl

2019-11-03 Thread Edward K Ream
Edward K Ream added the comment: This post https://groups.google.com/d/msg/leo-editor/DpZ2cMS03WE/VPqtB9lTEAAJ discusses a complete rewrite of tokenizer.untokenize. To quote from the post: I have "discovered" a spectacular replacement for Untokenizer.untokenize in python's tokenize library

[issue38663] Untokenize does not round-trip ws before bs-nl

2019-11-03 Thread Edward K Ream
Edward K Ream added the comment: The original bug report used a Leo-only function, g.toUnicode. To fix this, replace: result = g.toUnicode(tokenize.untokenize(tokens)) by: result_b = tokenize.untokenize(tokens) result = result_b.decode('utf-8', 'strict') --

[issue38657] Clarify numeric padding behavior in string formatting

2019-11-03 Thread Eric V. Smith
Change by Eric V. Smith : -- title: String format for hexadecimal notation breaks padding with alternative form -> Clarify numeric padding behavior in string formatting ___ Python tracker

[issue38657] String format for hexadecimal notation breaks padding with alternative form

2019-11-03 Thread Pete Wicken
Change by Pete Wicken : -- keywords: +patch pull_requests: +16548 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/17036 ___ Python tracker

[issue38672] Crash on mimetypes.init() if there is no access to one of knownfiles

2019-11-03 Thread Michał Szymaniak
New submission from Michał Szymaniak : When user lacks rights to read on of the mimetypes.knownfiles, mimetypes init() will throw PermissionError and library becomes unusable. Reproduction steps: # mkdir -p /etc/httpd/conf/ # touch /etc/httpd/conf/mime.types # chmod a-r

[issue38388] Pickle protocol v 5 needs to be documented

2019-11-03 Thread miss-islington
miss-islington added the comment: New changeset 87af51847b2fc911f2c1e82be58a7aa3bb5bd2ca by Miss Skeleton (bot) in branch '3.8': bpo-38388: Document pickle protocol version 5 (GH-16639) https://github.com/python/cpython/commit/87af51847b2fc911f2c1e82be58a7aa3bb5bd2ca -- nosy:

[issue38388] Pickle protocol v 5 needs to be documented

2019-11-03 Thread Tal Einat
Tal Einat added the comment: Thanks for the report and the PR, Dima! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 ___ Python tracker

[issue38388] Pickle protocol v 5 needs to be documented

2019-11-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +16547 pull_request: https://github.com/python/cpython/pull/17035 ___ Python tracker ___

[issue38388] Pickle protocol v 5 needs to be documented

2019-11-03 Thread Tal Einat
Tal Einat added the comment: New changeset d0e0f5bf0c07ca025f54df21fd1df55ee430d9fc by Tal Einat (Dima Tisnek) in branch 'master': bpo-38388: Document pickle protocol version 5 (GH-16639) https://github.com/python/cpython/commit/d0e0f5bf0c07ca025f54df21fd1df55ee430d9fc -- nosy:

[issue37373] Configuration of windows event loop for libraries

2019-11-03 Thread Andrew Svetlov
Andrew Svetlov added the comment: IOCTL_AFD_POLL looks interesting. I wonder if it is 100% reliable; we can miss some edge case easily. -- ___ Python tracker ___

[issue38671] pathlib.Path.resolve(strict=False) returns relative path on Windows if the entry does not existent

2019-11-03 Thread Tzu-ping Chung
New submission from Tzu-ping Chung : Originally from https://discuss.python.org/t/pathlib-absolute-vs-resolve/2573/4 >>> import pathlib >>> pathlib.Path().resolve() WindowsPath('C:/temp') >>> list(pathlib.Path().iterdir()) [] >>> pathlib.Path('foo').resolve() WindowsPath('foo') >>>

[issue37373] Configuration of windows event loop for libraries

2019-11-03 Thread Big Stone
Big Stone added the comment: Is it be possible to backport this inside the standard ProactorEventLoop of Python-3.8.1 ? As things are currently broken, no kitten would be armed https://github.com/python-trio/trio/pull/1269 -- ___ Python tracker

[issue38670] can we accept os.PathLike objects within the subprocess args= list?

2019-11-03 Thread Gregory P. Smith
New submission from Gregory P. Smith : We started down this path in https://bugs.python.org/issue31961 but had to revert part of that before 3.7 as the implementation was incomplete making it inconsistent across platforms.  https://github.com/python/cpython/pull/4329. Specifically accepting

[issue37903] IDLE Shell sidebar.

2019-11-03 Thread Guido van Rossum
Guido van Rossum added the comment: @raymond Please stop spamming this issue with unrelated IDLE issues. -- ___ Python tracker ___