[issue37408] [DOC] Precise that Tarfile "format" argument only concerns writing.

2019-06-26 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +lars.gustaebel, serhiy.storchaka type: -> behavior versions: +Python 3.9 ___ Python tracker ___

[issue37276] Incorrect number of running calls in ProcessPoolExecutor

2019-06-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I concur with Andrew -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36168] DOC: Fix capitalization in string.rst

2019-06-26 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +easy versions: +Python 3.9 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue37382] Improve conditional check for test_gdb

2019-06-26 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > If you modify code which can impact test_gdb, you can run test_gdb locally I do run test_gdb locally but it's not very useful since most tests are skipped by default because python_is_optimized() is True. That's the whole point of this issue: tests are

[issue36167] DOC: Incorrect capitalization in Programming FAQ

2019-06-26 Thread Cheryl Sabella
Change by Cheryl Sabella : -- versions: +Python 3.9 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36167] DOC: Incorrect capitalization in Programming FAQ

2019-06-26 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37335] Add 646 ASCII alias to locale coercion tests.

2019-06-26 Thread Jakub Kulik
Jakub Kulik added the comment: I just added that in the way it was already there but I see why the current solution is not the best. Also I wanted to push this into 3.7 only as this problem is not present in 3.8 (as discussed in the PR 11195 opened incorrectly against the master). Just to

[issue37409] relative import_from without parent

2019-06-26 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +brett.cannon, eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36661] Missing dataclass decorator import in dataclasses module docs

2019-06-26 Thread Cheuk Ting Ho
Cheuk Ting Ho added the comment: I agree that for the more confusing ones, it would be better to write out the import statement explicitly. -- nosy: +Cheukting ___ Python tracker

Creating a Windows executable on a Linux system

2019-06-26 Thread Cecil Westerhof
I need to write a Python desktop program. I create it on a Linux system, but it has to run on a Windows system. When looking at how to create an executable it seems that you need to be on a Windows system to create a Windows executable. Is this true, or is it possible to create a Windows

[issue37410] [Windows] subprocess: close the handle when the process completes

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: IMHO it's safe to backport PR 14391 to Python 3.7 and 3.8. -- versions: +Python 3.7, Python 3.8 ___ Python tracker ___

[issue37410] [Windows] subprocess: close the handle when the process completes

2019-06-26 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +14205 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14391 ___ Python tracker ___

Re: pandas split and melt()

2019-06-26 Thread Peter Otten
Sayth Renshaw wrote: > Hi > > Having fun with pandas filtering a work excel file. > My current script opens selected and filters the data and saves as excel. > > import pandas as pd > import numpy as np > > log = pd.read_excel("log_dump_py.xlsx") > df = log.filter(items=['Completed',

[issue37404] asyncio sock_recv blocks on ssl sockets.

2019-06-26 Thread Akshay Takkar
Akshay Takkar added the comment: Can you please elaborate on how to get around this issue? -- ___ Python tracker ___ ___

[issue37404] asyncio sock_recv blocks on ssl sockets.

2019-06-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: Use asyncio transports or streams. sock_recv() is a low-level API with a very limited audience. wrapped ssl socket provides a synchronous interface only. Perhaps we should raise an exception if SSLSocket is passed into asyncio functions. --

Re: pandas split and melt()

2019-06-26 Thread Peter Otten
Sayth Renshaw wrote: > Peter Otten wrote: >> def explode_consultants(consultants): Should have called that split_consultants(); takes a string and >> consultants = (c.lstrip("#") for c in consultants.split(";")) splits by ";", removes leading "#" >> return (c for c in

[issue37382] Improve conditional check for test_gdb

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: Depending on the compiler optimization level, gdb may or may not br able to read variables and function arguments. IHMO it is fine to skip test_gdb if Python "is optimized". I don't think it is worth it to check the exact optimizatio level. The worst

[issue37411] testEnviron (test.test_wsgiref.HandlerTests) fails when environment variable X is set

2019-06-26 Thread Miro Hrončok
New submission from Miro Hrončok : In Fedora CI, we use the environment variable X to set tests to skip: https://src.fedoraproject.org/tests/python/blob/bd3ec9505cd37d80fe47fbb8234928abcfc0c658/f/selftest/parallel.sh#_9 - lines 9 and 21 However, I'Ve realized that testEnviron

[issue37276] Incorrect number of running calls in ProcessPoolExecutor

2019-06-26 Thread Géry
Géry added the comment: @Pablo Galindo Salgado Thank you for the debugging information. I would have expected 8 "Adding a new item to the call_queue" instead of 3, since I submitted 8 calls to the process pool. The concurrent.futures._base module defines 5 future states: > _FUTURE_STATES =

EuroPython 2019: Mobile Conference App available

2019-06-26 Thread M.-A. Lemburg
We are pleased to announce the mobile conference app for EuroPython 2019, again hosted on the Attendify platform: EuroPython 2019 Conference App * https://ep2019.europython.eu/events/conference-app/ * Engage with the conference and its attendees

[issue37382] Improve conditional check for test_gdb

2019-06-26 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > Depending on the compiler optimization level, gdb may or may not br able to > read variables and function arguments. I haven't seen that problem. As I said, all GDB tests pass when compiled with "-O3 -g". > IHMO it is fine to skip test_gdb if Python "is

[issue37335] Add 646 ASCII alias to locale coercion tests.

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: > what you propose is to rewrite current replaces to use > "codecs.lookup(encoding).name" instead and then push it into the master? I suggest to remove the code which does the .replace(), but instead normalize the encoding when checking for the expected

[issue37410] [Windows] subprocess: close the handle when the process completes

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-37380: subprocess.Popen._cleanup() "The handle is invalid" error when some old process is gone. -- ___ Python tracker ___

[issue37276] Incorrect number of running calls in ProcessPoolExecutor

2019-06-26 Thread Géry
Géry added the comment: @Andrew Svetlov > Adding a new state for "not running and not pending but something in between" > is useless I have not suggested that. I have just reported that when the number of submitted calls is strictly greater than the number of pool worker processes, the

File not able to link from drive

2019-06-26 Thread khandelwalrajat963
I am running a code to connect the google drive with google colab.But I have a issue after connection.My Files are not able to read by google colab even after link is established . I have to read files from google drive in Google colab My Code !pip install -U -q PyDrive from pydrive.auth

[issue37276] Incorrect number of running calls in ProcessPoolExecutor

2019-06-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: Adding a new state for "not running and not pending but something in between" is useless, it can make .running() result a little more accurate but doesn't improve the real functionality. The easy "fix" is documentation updating to point that the value

[issue37410] [Windows] subprocess: close the handle when the process completes

2019-06-26 Thread STINNER Victor
New submission from STINNER Victor : subprocess.Popen uses _winapi.CreateProcess() to spawn a child process. It stores the process handle using a Handle class. Popen never explicitly releases the handle, it rely on Handle.__del__ when the Popen object is detroyed (when Popen._handle

[issue37380] subprocess.Popen._cleanup() "The handle is invalid" error when some old process is gone

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: > In Unix, the zombie remains visible in the task list (marked as in > Linux), but in Windows an exited process is removed from the Process > Manager's active list, so it's no longer visible to users. Also, a Process > object is reaped as soon as the last

[issue37408] [DOC] Precise that Tarfile "format" argument only concerns writing.

2019-06-26 Thread Pascal Chambon
Pascal Chambon added the comment: Looking at tarfile.py, "format" seems only used in addfile() indeed. -- ___ Python tracker ___

[issue37409] relative import_from without parent

2019-06-26 Thread Ben Lewis
New submission from Ben Lewis : >>> from curses import ascii >>> from . import ascii The second line should raise an ImportError but instead succeeds (tested cpython 3.6.7, 3.7.0 and 3.7.3, and from interactive interpreter and scripts). Specifically, builtins.__import__ does not reproduce

Copying a row from a range of Excel files to another

2019-06-26 Thread Cecil Westerhof
I was asked to copy a certain line from about 300 Excel lines to a new Excel file. That is not something I would like to do by hand and I immediately thought: that should be possible with Python. And it is. I was surprised how fast I could write that with openpyxl. My first try was not very neat,

What type of error is it

2019-06-26 Thread Cecil Westerhof
I am writing a GUI program with tkinter. One function I have is: def select_dir(): try: directory = filedialog.askdirectory() if directory == '': messagebox.showinfo(info_str, canceled_report) return chdir(directory) filepathArr =

[issue37405] socket.getsockname() returns string instead of tuple

2019-06-26 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +14206 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14392 ___ Python tracker ___

[issue37382] Improve conditional check for test_gdb

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: > I haven't seen that problem. As I said, all GDB tests pass when compiled with > "-O3 -g". Again, it depends on the optimization level, but IMHO it's not worth it to implement an heuristic to check if gdb has enough info to run tests. > The fact that

[issue37276] Incorrect number of running calls in ProcessPoolExecutor

2019-06-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: I don't mind, sorry. Feel free to make a pull request with the fix though. -- ___ Python tracker ___

[issue37412] os.getcwdb() doesn't implement PEP 528 (UTF-8) on Windows

2019-06-26 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +14210 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14396 ___ Python tracker ___

[issue37412] os.getcwdb() doesn't implement PEP 528 (UTF-8) on Windows

2019-06-26 Thread Zackery Spytz
Zackery Spytz added the comment: See also bpo-32920. -- nosy: +ZackerySpytz ___ Python tracker ___ ___ Python-bugs-list mailing

[issue37412] os.getcwdb() doesn't implement PEP 528 (UTF-8) on Windows

2019-06-26 Thread Steve Dower
Steve Dower added the comment: Definitely just an oversight. Thanks for fixing this! I think it can go to 3.8 as well. Thoughts? -- ___ Python tracker ___

[issue37382] Improve conditional check for test_gdb

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: If you want to understand why tests are currently skipped when Python is optimized, you should dig into the Git history. Not simply remove the decorator because it looks wrong to you. There is likely a story behind it.

[issue37414] Remove undocumented and deprecated sys.callstats() function

2019-06-26 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +14212 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14398 ___ Python tracker ___

[issue37414] Remove undocumented and deprecated sys.callstats() function

2019-06-26 Thread STINNER Victor
Change by STINNER Victor : -- title: Remove sys.callstats() -> Remove undocumented and deprecated sys.callstats() function ___ Python tracker ___

[issue37402] Fatal Python error: Cannot recover from stack overflow issues on Python 3.6 and 3.7

2019-06-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: Is it ok to have File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/Products.CMFDynamicViewFTI-6.0.1-py3.7.egg/Products/CMFDynamicViewFTI/browserdefault.py", line 76 in __call__ so many times? Looks very suspicious --

Re: Make sure the window title is visible in tkinter

2019-06-26 Thread Wildman via Python-list
On Wed, 26 Jun 2019 13:25:15 +0200, Cecil Westerhof wrote: > I need to write a desktop program. I choose to use tkinter. How can I > make sure the window title is visible? For example when I have the > following code: > from tkinter import Button, filedialog, Label, messagebox, Tk > >

[issue37386] [EASY] test_io: test_large_file_ops() failed on AMD64 Windows7 SP1 3.x with: [Errno 28] No space left on device

2019-06-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The test requires the "largefile" resource on Windows. If "-u largefile" is specified and the test is failed, it is a correct behavior. The correct solution is either increase the amount of available free disk space or remove the "largefile" resource on

[issue37411] testEnviron (test.test_wsgiref.HandlerTests) fails when environment variable X is set

2019-06-26 Thread STINNER Victor
Change by STINNER Victor : -- versions: +Python 2.7 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37411] testEnviron (test.test_wsgiref.HandlerTests) fails when environment variable X is set

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: I wrote PR 14394 to fix the test. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

Re: Make sure the window title is visible in tkinter

2019-06-26 Thread Grant Edwards
On 2019-06-26, Cousin Stanley wrote: > You might try setting a given window geometry > to accomodate the long title > [...] > window.geometry( "%dx%d+%d+%d" % ( win_w , win_h , ofs_h , ofs_v ) ) > Maybe add a bit of extra space for users with different default > font sizes

[issue32920] Implement PEP 529 for os.getcwdb on Windows

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: I just opened the same issue: bpo-37412, but I proposed a PR to implement my idea ;-) -- resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: -> os.getcwdb() doesn't implement PEP 528 (UTF-8) on Windows

[issue37412] os.getcwdb() doesn't implement PEP 528 (UTF-8) on Windows

2019-06-26 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +eryksun ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[RELEASE] Python 3.7.4rc1 and 3.6.9rc1 are now available

2019-06-26 Thread Ned Deily
Python 3.7.4rc1 and 3.6.9rc1 are now available. 3.7.4rc1 is the release preview of the next maintenance release of Python 3.7, the latest feature release of Python. 3.6.9rc1 is the release preview of the first security-fix release of Python 3.6. Assuming no critical problems are found prior to

[issue37414] Remove sys.callstats()

2019-06-26 Thread STINNER Victor
New submission from STINNER Victor : In Python 3.6, sys.callstats() was a way to retrieve statistics produced by Python/ceval.c when Python was compiled with a special build option: CALL_PROFILE. The function was implemented with PyEval_GetCallStats(). I removed CALL_PROFILE special build

[issue37380] subprocess.Popen._cleanup() "The handle is invalid" error when some old process is gone

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: Sorry, I'm lost :-( More and more different issues are discussed here. Would it be possible please to stick this issue to _active list and _cleanup() on Windows? From what I read, remove/disable _active and _cleanup() makes sense on Windows. I already

[issue37386] [EASY] test_io: test_large_file_ops() failed on AMD64 Windows7 SP1 3.x with: [Errno 28] No space left on device

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: Serhiy: > The test suite fails if there is less than 500 or 600 MB of RAM, not counting > bigmem tests. It is not a Python bug, but an environment issue. A buildbot > worker should have some free disk space and RAM, and set tests running > options

Re: Creating a Windows executable on a Linux system

2019-06-26 Thread Cecil Westerhof
"Peter Heitzer" writes: > Cecil Westerhof wrote: >>I need to write a Python desktop program. I create it on a Linux >>system, but it has to run on a Windows system. When looking at how to >>create an executable it seems that you need to be on a Windows system >>to create a Windows executable.

[issue37386] [EASY] test_io: test_large_file_ops() failed on AMD64 Windows7 SP1 3.x with: [Errno 28] No space left on device

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: libregrtest usage says: largefile - It is okay to run some test that may create huge files. These tests can take a long time and may consume >2 GiB of disk space temporarily. > The test requires the "largefile" resource

Re: Make sure the window title is visible in tkinter

2019-06-26 Thread Cousin Stanley
Cecil Westerhof wrote: > I need to write a desktop program. I choose to use tkinter. > > How can I make sure the window title is visible? For example > when I have the following code : > from tkinter import Button, filedialog, Label, messagebox, Tk > > > window = Tk() >

[issue37412] os.getcwdb() doesn't implement PEP 528 (UTF-8) on Windows

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: My PR 14396 modify os.getcwdb() to use UTF-8 and it removes the deprecation warning. -- ___ Python tracker ___

[issue37382] Improve conditional check for test_gdb

2019-06-26 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: I meant this part in test_gdb.py: if ((sysconfig.get_config_var('PGO_PROF_USE_FLAG') or 'xxx') in (sysconfig.get_config_var('PY_CORE_CFLAGS') or '')): raise unittest.SkipTest("test_gdb is not reliable on PGO builds") --

[issue36889] Merge StreamWriter and StreamReader into just asyncio.Stream

2019-06-26 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +14211 pull_request: https://github.com/python/cpython/pull/14397 ___ Python tracker ___

[issue37415] Error build Python with Intel compiler

2019-06-26 Thread Borja
New submission from Borja : I'm trying to build Python 3.7 on CentOS 7 with Intel compilers. To compile I do the following: export CC=icc export CXX=icpc export FC=ifort ./configure --prefix=my_prefix --enable-optimizations --without-gcc make make install In the configure, no error is seen,

[issue37412] os.getcwdb() doesn't implement PEP 528 (UTF-8) on Windows

2019-06-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +14213 pull_request: https://github.com/python/cpython/pull/14399 ___ Python tracker ___

[issue37386] [EASY] test_io: test_large_file_ops() failed on AMD64 Windows7 SP1 3.x with: [Errno 28] No space left on device

2019-06-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The test suite fails if there is less than 500 or 600 MB of RAM, not counting bigmem tests. It is not a Python bug, but an environment issue. A buildbot worker should have some free disk space and RAM, and set tests running options correspondingly.

[issue37406] Disable runtime checks in release mode

2019-06-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think that the public C API should have runtime checks for its arguments, except performance sensitive functions and macros (like PyTuple_GET_ITEM). The internal C API can use just asserts. I have a work-in-progress patch which adds tests for the public

Re: Copying a row from a range of Excel files to another

2019-06-26 Thread Cecil Westerhof
Cecil Westerhof writes: > I was asked to copy a certain line from about 300 Excel lines to a new > Excel file. That is not something I would like to do by hand and I > immediately thought: that should be possible with Python. > > And it is. I was surprised how fast I could write that with

Re: Copying a row from a range of Excel files to another

2019-06-26 Thread Cecil Westerhof
Cecil Westerhof writes: > Is it necessary to close the workbooks to circumvent a resource > leak? Still like to know. When not necessary it is better not to cloes them I think. > Is it a problem when a workbook is closed two times? If so I need to > make sure that this is not possible. That

[issue37411] testEnviron (test.test_wsgiref.HandlerTests) fails when environment variable X is set

2019-06-26 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +14208 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14394 ___ Python tracker ___

[issue37412] os.getcwdb() doesn't implement PEP 528 (UTF-8) on Windows

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 689830ee6243126798a6c519c05aa11ba73db7cd by Victor Stinner in branch 'master': bpo-37412: os.getcwdb() now uses UTF-8 on Windows (GH-14396) https://github.com/python/cpython/commit/689830ee6243126798a6c519c05aa11ba73db7cd --

[issue37413] Deprecate sys._enablelegacywindowsfsencoding()?

2019-06-26 Thread Steve Dower
Steve Dower added the comment: It's probably worth at least a post to python-dev to expand the audience, but unless someone speaks up with some really good reason why they must update to Python 3.10 without updating their own code then let's deprecate it. FWIW, even with the flag the

[issue37411] testEnviron (test.test_wsgiref.HandlerTests) fails when environment variable X is set

2019-06-26 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Make sure the window title is visible in tkinter

2019-06-26 Thread Cecil Westerhof
Wildman writes: > On Wed, 26 Jun 2019 13:25:15 +0200, Cecil Westerhof wrote: > >> I need to write a desktop program. I choose to use tkinter. How can I >> make sure the window title is visible? For example when I have the >> following code: >> from tkinter import Button, filedialog,

[issue37410] [Windows] subprocess: close the handle when the process completes

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: We may backport the change to Python 2.7 as well, but in this case terminate() must be changed to test returncode: def terminate(self): """Terminates the process.""" # Don't terminate a process that we know has already died.

[issue37382] Improve conditional check for test_gdb

2019-06-26 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > The worst debugging experience is provided by PGO build. That's true but unrelated to this issue. We already skip test_gdb completely when PGO is enabled. -- ___ Python tracker

Re: Creating a Windows executable on a Linux system

2019-06-26 Thread Grant Edwards
On 2019-06-26, Cecil Westerhof wrote: > [...] it seems that you need to be on a Windows system to create a > Windows executable. Is this true, or is it possible to create a > Windows executable on a Linux system? AFIAK, you have to use a Windows system to create a windows executable. In the

[issue37412] os.getcwdb() doesn't implement PEP 528 (UTF-8) on Windows

2019-06-26 Thread STINNER Victor
New submission from STINNER Victor : On Windows, os.getcwdb() is implemented using getcwd() on Windows. This function uses the ANSI code page, whereas PEP 529 "Change Windows filesystem encoding to UTF-8" is supposed to use UTF-8 for all bytes paths and filenames. Moreover, this function

[issue37382] Improve conditional check for test_gdb

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: > That's true but unrelated to this issue. We already skip test_gdb completely > when PGO is enabled. What do you mean? support.PGO is something different: it's only used while profiling Python before Python is recompiled a second time. --

[issue37413] Deprecate sys._enablelegacywindowsfsencoding()?

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: > By the way, I'm not aware of any issue with io._WindowsConsoleIO. Should we > also deprecated PYTHONLEGACYWINDOWSSTDIO environment variable which opt-out > from the new io._WindowsConsoleIO? It was added to Python 3.6 by PEP 528 "Change Windows console

[issue37415] Error build Python with Intel compiler

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: atomic_uintptr_t is used if HAVE_STD_ATOMIC defined is defined. Can you please check in pyconfig.h if it's defined? So doesn't provide atomic_uintptr_t with ICC? -- nosy: +vstinner ___ Python tracker

[issue37410] [Windows] subprocess: close the handle when the process completes

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: terminate() was changed by: commit a0c9caad66f01328155177180df1c46fe7c62e57 Author: Gregory P. Smith Date: Sun Nov 15 18:19:10 2015 -0800 Fix issue #6973: When we know a subprocess.Popen process has died, do not allow the send_signal(),

[issue37382] Improve conditional check for test_gdb

2019-06-26 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- pull_requests: +14209 pull_request: https://github.com/python/cpython/pull/14395 ___ Python tracker ___

[issue37412] os.getcwdb() doesn't implement PEP 528 (UTF-8) on Windows

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: > I think it can go to 3.8 as well. Thoughts? Oh, 3.8 is not released yet. Well, it's more or less a new feature, or a bugfix, depending on the point of view. I would not be comfortable to change the encoding in 3.8.1, but it should be fine to do the

[issue37412] os.getcwdb() doesn't implement PEP 528 (UTF-8) on Windows

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: I retargeted my PR 14396 to Python 3.8. -- versions: +Python 3.8 -Python 3.9 ___ Python tracker ___

[issue37413] Deprecate sys._enablelegacywindowsfsencoding()?

2019-06-26 Thread STINNER Victor
New submission from STINNER Victor : sys._enablelegacywindowsfsencoding() was added late in PEP 529 design "just in case" if something goes wrong. But I'm not aware of anyone using it. Do we want to keep supporting the *legacy* Windows filesystem encoding (ANSI code page) forever? IMHO using

[issue37382] Improve conditional check for test_gdb

2019-06-26 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: These python_is_optimized() tests were added in #8605 and #13628. Those issues talk about tests failing when CPython is compiled with -O2 or -O3. But, as I said here, I see no problems today with gcc -O3. So I'm guessing that either gcc or gdb improved such

[issue37382] Improve conditional check for test_gdb

2019-06-26 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: There is a fleet of buildbots with a variety og versions of gcc and gdb, so if a change like that is pushed, all the fleet has to be monitored for potential failures, as there are many older OSes supported there. -- nosy: +cstratak

[issue37380] subprocess.Popen._cleanup() "The handle is invalid" error when some old process is gone

2019-06-26 Thread Eryk Sun
Eryk Sun added the comment: > The process is not polled to be able to emit the warning in more > cases, again, to ease debug. It emits an incorrect warning if the process has already exited: "subprocess %s is still running". This can be rectified. Here's my current understanding: def

[issue37391] MacOS Touchpad scrolling crashes IDLE

2019-06-26 Thread Ned Deily
Ned Deily added the comment: > Does IDLE every run long enough with Apple's tk before failure to make > continuing useful? Yes, depending on what you are doing, IDLE *may* run just fine with the system Tk. But you may may run into this issue depending on how you scroll. Or, among the

[issue37418] Code execution without calling it

2019-06-26 Thread SilentGhost
SilentGhost added the comment: It seems you're misunderstanding mechanics of decorators. Decorator is called when @decorator statement is executed and in that function *you* are calling the wrapped function. There are tutorials available on how to use this feature, I'd suggest you try them.

[issue37418] Code execution without calling it

2019-06-26 Thread SilentGhost
SilentGhost added the comment: The whole file is executed on import, you might as well have taken the "evil" code and placed in the global scope and not in the function. If you want to learn how to use decorators, again I suggest following a tutorial, SO or python-help. This is not a

[issue37419] Possible segfaults when passing large sequences to os.posix_spawn()

2019-06-26 Thread Zackery Spytz
New submission from Zackery Spytz : parse_file_actions() uses an int as it loops over the passed sequence, but it should use a Py_ssize_t. If the sequence is large enough, the int will overflow. -- components: Extension Modules messages: 346669 nosy: ZackerySpytz priority: normal

[issue37417] bytearray.extend does not handle errors during iteration.

2019-06-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +14222 pull_request: https://github.com/python/cpython/pull/14410 ___ Python tracker ___

[issue23014] Don't have importlib.abc.Loader.create_module() be optional

2019-06-26 Thread Anthony Sottile
Anthony Sottile added the comment: yeah I guess I'm just curious why this bug (seemingly intentionally) made the implementation diverge from PEP 451 and require an empty `create_module` (and where I would have found that except by searching bugs.python.org) Everyone I've shown this bit of

[issue37163] dataclasses.replace() fails with the field named "obj"

2019-06-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 6ef103fbdbc05adbc20838c94b1f0c40fa6c159a by Serhiy Storchaka in branch '3.7': [3.7] bpo-37163: dataclasses.replace() now supports the field named "obj". (GH-13877) (GH-14405)

[issue36738] Add 'array_hook' for json module

2019-06-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.9 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37417] bytearray.extend does not handle errors during iteration.

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

[issue37163] dataclasses.replace() fails with the field named "obj"

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

[issue37417] bytearray.extend does not handle errors during iteration.

2019-06-26 Thread miss-islington
miss-islington added the comment: New changeset 5c4ce3e2fa73125fb6f9c501e6c4c8512216b7e1 by Miss Islington (bot) in branch '3.8': bpo-37417: Fix error handling in bytearray.extend. (GH-14407) https://github.com/python/cpython/commit/5c4ce3e2fa73125fb6f9c501e6c4c8512216b7e1 --

[issue37411] testEnviron (test.test_wsgiref.HandlerTests) fails when environment variable X is set

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: Ok, the bug is now fixed in 2.7, 3.7, 3.8 and master branches. Thanks Miro for the report. I also enhanced the test to test all variables of handler.environ. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue37419] Possible segfaults when passing large sequences to os.posix_spawn()

2019-06-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset d52a83a3d471ff3c7e9ebfa1731765e5334f7c24 by Pablo Galindo (Zackery Spytz) in branch 'master': bpo-37419: Fix possible segfaults when passing large sequences to os.posix_spawn() (GH-14409)

[issue37419] Possible segfaults when passing large sequences to os.posix_spawn()

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

[issue37402] Fatal Python error: Cannot recover from stack overflow issues on Python 3.6 and 3.7

2019-06-26 Thread konstantin danilov
konstantin danilov added the comment: Same error, python3.7. I have attached minifyed code version. It runs into infinite recursion due to __setattr__ call inside 'with' statement on top of same object. As result: > python /tmp/text.py Fatal Python error: Cannot recover from stack

  1   2   3   >