[issue38800] Resume position for UTF-8 codec error handler not working

2019-11-14 Thread Pedro Gimeno
Pedro Gimeno added the comment: I forgot the quotes in the assertion, it should have been "b'xz'". -- ___ Python tracker ___ ___

[issue27465] IDLE:Make help source menu entries unique and sorted.

2019-11-14 Thread Tal Einat
Change by Tal Einat : -- versions: +Python 3.7, Python 3.8, Python 3.9 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list

[issue38798] test_asyncio.test_sendfile.test_sendfile_ssl_pre_and_post_data(): Overlapped still has pending operation at deallocation error on AMD64 Windows8.1 Non-Debug 3.x

2019-11-14 Thread STINNER Victor
New submission from STINNER Victor : AMD64 Windows8.1 Non-Debug 3.x: https://buildbot.python.org/all/#/builders/12/builds/3450 test_sendfile_ssl_pre_and_post_data (test.test_asyncio.test_sendfile.ProactorEventLoopTests) ... Warning -- Unraisable exception Traceback (most recent call last):

[issue22367] Add open_file_descriptor parameter to fcntl.lockf() (use the new F_OFD_SETLK flag)

2019-11-14 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +16664 pull_request: https://github.com/python/cpython/pull/17154 ___ Python tracker ___

[issue38722] runpy should use io.open_code() instead of open()

2019-11-14 Thread Jason Killen
Jason Killen added the comment: I made the change but the test suite is giving me fits and I don't know why. Running: ./python -m test ... == Tests result: FAILURE == 392 tests OK. 1 test failed: test_tools 26 tests skipped: test_curses test_dbm_gnu test_dbm_ndbm test_devpoll

[issue38797] x86-64 High Sierra 3.x buildbot worker fails to build Python: python.exe setup.py does crash with a bus error

2019-11-14 Thread Zachary Ware
Zachary Ware added the comment: Note that subsequent builds compiled successfully, see https://buildbot.python.org/all/#/builders/145/builds/2699 for the latest. It has been failing a test since build 2695, though. -- nosy: +zach.ware ___ Python

[issue38799] race condition in multiprocessing.Pool with maxtasksperchild=1

2019-11-14 Thread Steve Lorimer
New submission from Steve Lorimer : There is a race condition when closing/joining a pool with maxtasksperchild=1 Illustrative example: ``` #!/usr/bin/env python3 import os import time import logging import multiprocessing.pool def run_task(i): print(f'[{os.getpid()}] task({i})

[issue22367] Add open_file_descriptor parameter to fcntl.lockf() (use the new F_OFD_SETLK flag)

2019-11-14 Thread Dong-hee Na
Dong-hee Na added the comment: @vstinner Victor, Thanks for letting me know. It was reproduced on my mac machine so I fix the test. Please take a look. -- ___ Python tracker

[issue27465] IDLE:Make help source menu entries unique and sorted.

2019-11-14 Thread Tal Einat
Tal Einat added the comment: > I'm wondering if it would be worthwhile to add Drag and Drop functionality to > the Help listbox to allow users to move the items into any order they want? I agree that allowing a user to set the order is preferable. Rather than drag, we could just add up/down

[issue22367] Add open_file_descriptor parameter to fcntl.lockf() (use the new F_OFD_SETLK flag)

2019-11-14 Thread STINNER Victor
STINNER Victor added the comment: Failure on x86-64 High Sierra 3.8: https://buildbot.python.org/all/#/builders/226/builds/519 Please fix tests, or revert your change: https://pythondev.readthedocs.io/ci.html#revert-on-fail

[issue38800] Resume position for UTF-8 codec error handler not working

2019-11-14 Thread Pedro Gimeno
New submission from Pedro Gimeno : When implementing an error handler, it must return a tuple consisting of a substitution string and a position where to resume decoding. In the case of the UTF-8 codec, the resume position is ignored, and it always resumes immediately after the character

[issue38801] Scientific notation doesn't work with itertools.islice

2019-11-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: Hello Yaroslav. What you've observed was a intentional change to make islice() behave more like regular slices. Neither of those accept floats which are precarious to use for indexing. A workaround is to replace 1e+6 with 10**6. -- nosy:

[issue38622] _ctypes.dlsym (py_dl_sym) does not trigger audit hooks

2019-11-14 Thread Steve Dower
Steve Dower added the comment: Actually, it looks like we need to add events for many of the _ctypes functions, so I'll go through and do them. -- ___ Python tracker ___

[issue38801] Scientific notation doesn't work with itertools.islice

2019-11-14 Thread Yaroslav Nikitenko
Yaroslav Nikitenko added the comment: Hello Raymond. Many thanks for your explanation. In this case I suggest any of the following: 1) distinguish between integer and floating numbers in scientific notation. Definitely, 1e+6 is an integer. I can't see where else numbers in scientific

[issue38793] pathlib.Path.resolve(strict=False) strips final path components

2019-11-14 Thread Steve Dower
Steve Dower added the comment: If "a" exists in the current directory, I get this (correct) result: >>> import pathlib >>> p = pathlib.Path(".", "a", "b", "c") >>> p.resolve(strict=False) WindowsPath('/a/b/c') So there's an existence check of some kind that's not being handled properly.

[issue38793] pathlib.Path.resolve(strict=False) strips final path components

2019-11-14 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22367] Add open_file_descriptor parameter to fcntl.lockf() (use the new F_OFD_SETLK flag)

2019-11-14 Thread Charles-François Natali
Change by Charles-François Natali : -- nosy: -neologix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38622] _ctypes.dlsym (py_dl_sym) does not trigger audit hooks

2019-11-14 Thread Steve Dower
Steve Dower added the comment: Thanks! Would you like to create a PR on GitHub for this? Or are you happy for me to do it. -- nosy: +steve.dower ___ Python tracker ___

[issue33125] Windows 10 ARM64 platform support

2019-11-14 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +16665 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16828 ___ Python tracker ___

[issue33125] Windows 10 ARM64 platform support

2019-11-14 Thread Steve Dower
Steve Dower added the comment: I just added a PR that will produce ARM64 releases (as embeddable, nuget and Microsoft Store packages). The only missing feature is tkinter (and everything that depends on it). For users who require that, I'd suggest grabbing the x86 installer from python.org

[issue38800] Resume position for UTF-8 codec error handler not working

2019-11-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It works to me (after fixing the assertion). What Python version do you use? In Python 2 u'\uDD00' is encodable to UTF-8, so the error handler is not called. u'\uDD00yz'.encode('utf8') gives '\xed\xb4\x80yz'. -- nosy: +serhiy.storchaka

[issue38793] pathlib.Path.resolve(strict=False) strips final path components

2019-11-14 Thread Steve Dower
Steve Dower added the comment: I'm not sure - I try the same thing (on 3.6, 3.7 and 3.8) and get different results: >>> import pathlib >>> p = pathlib.Path(".", "a", "b", "c") >>> p.resolve(strict=False) WindowsPath('a/b/c') Are you sure that it's not successfully resolving a link of some

[issue38801] Scientific notation doesn't work with itertools.islice

2019-11-14 Thread Yaroslav Nikitenko
New submission from Yaroslav Nikitenko : Numbers written in scientific notation don't work with itertools.islice. Check this script: # a usual function works ## def works as well f = lambda x : x f(1e+6) # 100.0 import itertools # islice without scientific notation works

[issue38789] difflib lacks a way to check if results are empty

2019-11-14 Thread Tim Peters
Tim Peters added the comment: Please be explicit: exactly which functions are you talking about, and exactly what do you want them to do instead. Since, best I can tell, this is the first complaint of its kind, it's a pretty safe bet people can't guess what you want ;-) Note that, e.g.,

[issue38801] Scientific notation doesn't work with itertools.islice

2019-11-14 Thread Ammar Askar
Ammar Askar added the comment: The behavior is documented here: https://docs.python.org/3.9/library/stdtypes.html#numeric-types-int-float-complex > Numeric literals containing a decimal point or an exponent sign yield > floating point numbers. -- nosy: +ammar2

[issue38728] Update PC/pyconfig.h to support disabling auto linking

2019-11-14 Thread Ben Boeckel
Change by Ben Boeckel : -- nosy: +mathstuf ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38800] Resume position for UTF-8 codec error handler not working

2019-11-14 Thread Pedro Gimeno
Pedro Gimeno added the comment: Python 3.5 from Debian stretch (oldstable). You're right, I can't reproduce it in 3.7 from Buster. Sorry for the bogus report. -- ___ Python tracker

[issue38794] Setup: support linking openssl statically

2019-11-14 Thread Lukas Vacek
Change by Lukas Vacek : -- title: Setup: support linking openssl staticly -> Setup: support linking openssl statically ___ Python tracker ___

[issue38447] test_multiprocessing_spawn: Dangling processes: {} on AMD64 RHEL7 Refleaks 3.7

2019-11-14 Thread STINNER Victor
STINNER Victor added the comment: AMD64 RHEL7 LTO + PGO 3.x: https://buildbot.python.org/all/#/builders/258/builds/227 ... test_bounded_semaphore (test.test_multiprocessing_spawn.WithProcessesTestSemaphore) ... ok test_semaphore (test.test_multiprocessing_spawn.WithProcessesTestSemaphore)

[issue35381] posixmodule: convert statically allocated types (DirEntryType & ScandirIteratorType) to heap-allocated types

2019-11-14 Thread STINNER Victor
STINNER Victor added the comment: This change introduced a reference leak: bpo-38803 "test_wait3 and test_wait4 leaked references on x86 Gentoo Refleaks 3.x". -- nosy: +vstinner ___ Python tracker

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

2019-11-14 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38805] locale.getlocale() returns a non RFC1766 language code

2019-11-14 Thread Mark Grandi
New submission from Mark Grandi : It seems that something with windows 10, python 3.8, or both changed where `locale.getlocale()` is now returning strange results According to the documentation: https://docs.python.org/3/library/locale.html?highlight=locale%20getlocale#locale.getlocale ,

[issue38804] Regular Expression Denial of Service in http.cookiejar

2019-11-14 Thread Ben Caller
Change by Ben Caller : -- keywords: +patch pull_requests: +1 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17157 ___ Python tracker ___

[issue38802] Clearer wording of os.WNOHANG documentation to avoid misinterpretation

2019-11-14 Thread Michael Yagliyan
New submission from Michael Yagliyan : For versions 2.7 through 3.9 of https://docs.python.org/3/library/os.html, os.WNOHANG is described as returning (0, 0) when no child process status is immediately available. However, both os.wait3() and os.wait4() return 3-element tuples and are

[issue38622] _ctypes.dlsym (py_dl_sym) does not trigger audit hooks

2019-11-14 Thread Steve Dower
Change by Steve Dower : -- assignee: -> steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38447] test_multiprocessing_spawn: Dangling processes: {} on AMD64 RHEL7 Refleaks 3.7

2019-11-14 Thread STINNER Victor
STINNER Victor added the comment: x86 Windows7 3.x: https://buildbot.python.org/all/#/builders/58/builds/3223 ... test_dict_proxy_nested (test.test_multiprocessing_spawn.WithManagerTestContainers) ... ok test_list (test.test_multiprocessing_spawn.WithManagerTestContainers) ... ok

[issue38803] test_wait3 and test_wait4 leaked references on x86 Gentoo Refleaks 3.x

2019-11-14 Thread STINNER Victor
STINNER Victor added the comment: Similar failure on other buildbot workers. AMD64 RHEL7 Refleaks 3.x: https://buildbot.python.org/all/#/builders/264/builds/49 AMD64 Fedora Stable Refleaks 3.x: https://buildbot.python.org/all/#/builders/317/builds/42 AMD64 Fedora Rawhide Refleaks 3.x:

[issue38802] Clearer wording of os.WNOHANG documentation to avoid misinterpretation

2019-11-14 Thread Michael Yagliyan
Michael Yagliyan added the comment: If this documentation fix will not be backported (i.e. it will only apply to versions *after* the aforementioned bug fix) then a more precise way to phrase that last part would be: "...with the first 2 elements being 0 and the last being an all-zero

[issue38351] Modernize email example from %-formatting to f-string

2019-11-14 Thread Julien Palard
Julien Palard added the comment: So, for newcomers finding this via "easy issues", go for it, you can fix this one :) On the different subjects discussed: # Mass-edit the stdlib We all agree that we should not mass-edit stdlib, (yet upgrading %-formatting to a newer syntax when modifying

[issue37224] test__xxsubinterpreters fails randomly

2019-11-14 Thread STINNER Victor
STINNER Victor added the comment: AMD64 Windows8.1 Refleaks 3.8: https://buildbot.python.org/all/#/builders/224/builds/151 0:54:23 load avg: 5.62 [306/423/3] test__xxsubinterpreters failed -- running: test_asyncio (4 min 26 sec), test_zipfile (6 min 6 sec), test_compileall (6 min 21 sec)

[issue38803] test_wait3 and test_wait4 leaked references on x86 Gentoo Refleaks 3.x

2019-11-14 Thread STINNER Victor
New submission from STINNER Victor : x86 Gentoo Refleaks 3.x, first failure: https://buildbot.python.org/all/#/builders/1/builds/769 test_wait3 leaked [23, 23, 23] references, sum=69 test_wait4 leaked [22, 21, 22] references, sum=65 The leak was introduced by: commit

[issue38804] Regular Expression Denial of Service in http.cookiejar

2019-11-14 Thread Ben Caller
New submission from Ben Caller : The regex http.cookiejar.LOOSE_HTTP_DATE_RE iss vulnerable to regular expression denial of service (REDoS). LOOSE_HTTP_DATE_RE.match is called when using http.cookiejar.CookieJar to parse Set-Cookie headers returned by a server. Processing a response from a

[issue36130] Pdb(skip=[...]) + module without __name__ => TypeError

2019-11-14 Thread Benjamin Peterson
Change by Benjamin Peterson : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue38809] On Windows, build scripts should prefer using python.exe from an active virtual env

2019-11-14 Thread Tal Einat
Change by Tal Einat : -- keywords: +patch pull_requests: +16674 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17164 ___ Python tracker ___

[issue38804] Regular Expression Denial of Service in http.cookiejar

2019-11-14 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +serhiy.storchaka, vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38804] Regular Expression Denial of Service in http.cookiejar

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

[issue38775] Cloudpickle.py file is crashing due to data type incompatibility.

2019-11-14 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I guess this was fixed upstream with https://github.com/apache/spark/commit/811d563fbf60203377e8462e4fad271c1140b4fa . Please try the latest version as per the commit details. I am closing this as third party since it's not a CPython issue. In

[issue38351] Modernize email example from %-formatting to f-string

2019-11-14 Thread Fred Drake
Fred Drake added the comment: Thanks, Julien! Sounds good to me; no reason for a PR addressing this specific issue to be held up once one becomes available. -- ___ Python tracker

[issue38808] weird bug while using a for loop and array

2019-11-14 Thread Zach kuunka
New submission from Zach kuunka : I haven't used this bug reporting thing before so sorry if I mess something up. Anyway i'm not sure exactly what is causing the issue but the issue appears when you have a for loop looping through an array and you make a variable and set it to that array and

[issue38809] On Windows, build scripts should prefer using python.exe from an active virtual env

2019-11-14 Thread Tal Einat
New submission from Tal Einat : On windows several .bat scripts call find_python.bat to find an appropriate python.exe. find_python.bat has no specific support for virtual envs, and usually ends up calling py.exe to find python.exe. Due to virtual envs not including a py.exe, this

[issue38809] On Windows, build scripts should prefer using python.exe from an active virtual env

2019-11-14 Thread Tal Einat
Change by Tal Einat : -- components: +Build -Documentation ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23544] IDLE hangs when selecting Stack View with debug active

2019-11-14 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +16673 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/17163 ___ Python tracker

[issue38808] weird bug while using a for loop and array

2019-11-14 Thread Zach kuunka
Zach kuunka added the comment: I found out it just happens when you set an array to an array they behave as the same thing, which if its not a bug it sure is counter-intuitive. if you do x = 1 then y = x then add one to y you have y = 2 and x = 1 if you do it for an array arr1 = [1] then

[issue38351] Modernize email example from %-formatting to f-string

2019-11-14 Thread Andrei Daraschenka
Change by Andrei Daraschenka : -- keywords: +patch pull_requests: +16672 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/17162 ___ Python tracker

[issue36130] Pdb(skip=[...]) + module without __name__ => TypeError

2019-11-14 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks @blueyed, I guess the backport was not made by the bot though the label was applied for 3.7 branch. -- ___ Python tracker

[issue23544] IDLE hangs when selecting Stack View with debug active

2019-11-14 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38692] add a pidfd child process watcher

2019-11-14 Thread miss-islington
miss-islington added the comment: New changeset 3f8cebd32c1e6f20a1a1440e51c308a5f70ca959 by Miss Islington (bot) (Kyle Stanley) in branch 'master': bpo-38692: Add asyncio.PidfdChildWatcher to __all__ (GH-17161) https://github.com/python/cpython/commit/3f8cebd32c1e6f20a1a1440e51c308a5f70ca959

[issue38692] add a pidfd child process watcher

2019-11-14 Thread Kyle Stanley
Change by Kyle Stanley : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue36130] Pdb(skip=[...]) + module without __name__ => TypeError

2019-11-14 Thread daniel hahler
daniel hahler added the comment: This was fixed / can be closed (https://github.com/python/cpython/pull/12064). -- nosy: +blueyed ___ Python tracker ___

[issue38807] Better exception message in os.path.join

2019-11-14 Thread Tomás Farías
New submission from Tomás Farías : Passing an object with an invalid type, like None, to os.path.join after the first argument results in the following exception: TypeError: join() argument must be str or bytes, not 'NoneType' Exception message can be updated to show that os.PathLike objects

[issue38807] Better exception message in os.path.join

2019-11-14 Thread Tomás Farías
Change by Tomás Farías : -- keywords: +patch pull_requests: +16669 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17160 ___ Python tracker ___

[issue38622] _ctypes.dlsym (py_dl_sym) does not trigger audit hooks

2019-11-14 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +16667 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17158 ___ Python tracker ___

[issue38806] "pdb.Pdb(skip=…).set_trace()" should always stop on calling frame

2019-11-14 Thread daniel hahler
New submission from daniel hahler : The following will not stop for debugging: python3.8 -c 'import pdb; pdb.Pdb(skip=["__main__"]).set_trace()' The example is contrived, the real case would be to have some "noisy" module being excluded in general, but when you add an explicit

[issue38806] "pdb.Pdb(skip=…).set_trace()" should always stop on calling frame

2019-11-14 Thread daniel hahler
Change by daniel hahler : -- keywords: +patch pull_requests: +16668 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17159 ___ Python tracker ___

[issue38591] Deprecate Process Child Watchers

2019-11-14 Thread Kyle Stanley
Kyle Stanley added the comment: > You have to account also for the thread stack size. I suggest to look at RSS > memory instead. Ah, good point. I believe get_size() only accounts for the memory usage of the thread object, not the amount allocated in physical memory from the thread stack.

[issue34572] C unpickling bypasses import thread safety

2019-11-14 Thread Guenther Starnberger
Guenther Starnberger added the comment: For this issue only 3.7 and 3.8 are listed as affected versions, but it appears to be also reproducible on the latest 3.5 and 3.6 releases. I've attached a script that can be used to reproduce the issue on those earlier releases (it consistently fails

[issue38692] add a pidfd child process watcher

2019-11-14 Thread Kyle Stanley
Kyle Stanley added the comment: > PidfdChildWatcher should be enumerated in unix_events.py:__all__ to make the > class visible by asyncio import rules. > Kyle, would you make a post-fix PR? I actually just noticed that myself and was coming back to the bpo issue to mention that it was

[issue38692] add a pidfd child process watcher

2019-11-14 Thread Kyle Stanley
Change by Kyle Stanley : -- pull_requests: +16671 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/17161 ___ Python tracker ___

[issue38591] Deprecate Process Child Watchers

2019-11-14 Thread Kyle Stanley
Kyle Stanley added the comment: > I understand that there's *some* overhead associated with spawning a new > thread, but from my impression it's not substantial enough to make a > significant impact in most cases. Although I think this still stands to some degree, I will have to rescind the

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

2019-11-14 Thread hai shi
hai shi added the comment: Could we close some bpo with a long history? If some user need this feature in future we could reopen it. -- ___ Python tracker ___

[issue38628] Issue with ctypes in AIX

2019-11-14 Thread Ayappan
Ayappan added the comment: Any update on this ? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32884] Adding the ability for getpass to print asterisks when password is typed

2019-11-14 Thread Celal
Change by Celal : -- nosy: +celal.sahin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38695] IDLE should restart instead of hanging when subprocess exits

2019-11-14 Thread Tal Einat
Change by Tal Einat : -- keywords: +patch pull_requests: +16662 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/17152 ___ Python tracker

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

2019-11-14 Thread STINNER Victor
STINNER Victor added the comment: > To further elaborate on the creation time solution, the idea in pseudo-code > is the following: (...) > Technically there is still a race condition between _execute_child() and > get_create_time(), but: (...) Even if the approach seems to be different, PR

[issue38692] add a pidfd child process watcher

2019-11-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: Sorry for the late review. PidfdChildWatcher should be enumerated in unix_events.py:__all__ to make the class visible by asyncio import rules. Kyle, would you make a post-fix PR? -- resolution: fixed -> status: closed -> open

[issue38591] Deprecate Process Child Watchers

2019-11-14 Thread STINNER Victor
STINNER Victor added the comment: I measured the RSS memory per thread: it's around 13.2 kB/thread. Oh, that's way lower than what I expected. Script: # 10: 9636 kB => 9756 kB: +12 kB/thread # 100: 9476 kB = 10796 kB: +13.2 kB/thread # 1000: 9552 kB = 22776 kB: +13.2 kB/thread import os

[issue38724] Implement subprocess.Popen.__repr__

2019-11-14 Thread Tal Einat
Tal Einat added the comment: I agree with Raymond, the repr should include the args and return code. IMO it should *not* include the pid, for two reasons: 1. The pid is stale information if the process has finished. 2. Popen nicely abstracts away the pid, so it is normally not as useful a

[issue38792] IDLE calltips may not properly close on KeyboardInterrupt

2019-11-14 Thread Tal Einat
Change by Tal Einat : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38793] pathlib.Path.resolve(strict=False) strips final path components

2019-11-14 Thread lutecki
New submission from lutecki : When a directory doesn't exist, the resolve() method trims everything except the first component (a doesn't exist here): import pathlib p = pathlib.Path(".", "a", "b", "c") p WindowsPath('a/b/c') p.resolve(strict=False) WindowsPath('C:/Python36/Scripts/a') I

[issue38792] IDLE calltips may not properly close on KeyboardInterrupt

2019-11-14 Thread Tal Einat
Tal Einat added the comment: Hi Zack, thanks for this! This doesn't go far enough, actually; we should make sure to close the calltip in other cases too, such as restarting the shell or hitting return to running a statement / block. -- nosy: +taleinat

[issue38724] Implement subprocess.Popen.__repr__

2019-11-14 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +16660 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/17151 ___ Python tracker

[issue37827] IDLE Shell: add a terminal mode that responds to \a, \b, and \r

2019-11-14 Thread Tal Einat
Tal Einat added the comment: Note that most of the issues with special characters described in Terry latest comment have been addressed by the fix for issue13153. Can we continue discussing just properly rendering \r and \b, e.g. as done in PR GH-15211? Let's just decide whether we want

[issue38525] Strange reversed dict behavior

2019-11-14 Thread Harmon
Change by Harmon : -- nosy: +Harmon758 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38689] IDLE crashes when KeyError is raised during calltip generation

2019-11-14 Thread Tal Einat
Change by Tal Einat : -- keywords: +patch pull_requests: +16661 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/17152 ___ Python tracker

[issue38689] IDLE crashes when KeyError is raised during calltip generation

2019-11-14 Thread Tal Einat
Tal Einat added the comment: See PR GH-17152 with a fix for the uncaught exception in getargspec(). -- nosy: +taleinat ___ Python tracker ___

[issue38591] Deprecate Process Child Watchers

2019-11-14 Thread STINNER Victor
STINNER Victor added the comment: > The 64 bytes was measured by `sys.getsizeof(threading.Thread())`, which only > provides a surface level assessment. I believe this only includes the size of > the reference to the thread object. You have to account also for the thread stack size. I

[issue38644] Pass explicitly tstate to function calls

2019-11-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset b9e681261cd5ce6db0a79461c58d7cc52cfa4902 by Victor Stinner in branch 'master': bpo-38644: Add _PyEval_EvalFrame() with tstate (GH-17131) https://github.com/python/cpython/commit/b9e681261cd5ce6db0a79461c58d7cc52cfa4902 --

[issue38591] Deprecate Process Child Watchers

2019-11-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: To be clear: I mean that FastChildWatcher is safe only if all process's code spaws subprocesses by FastChildWatcher. If ProcessPoolExecutor or direct subprocess calls are used the watcher is unsafe. If some C extension spawns new processes on its own (e.g.

[issue38794] Setup: support linking openssl staticly

2019-11-14 Thread Lukas Vacek
New submission from Lukas Vacek : Since 3.7 python depends on OpenSSL>=1.0.2 - this makes it hard to compile Python with SSL on older (yet still vendor supported) linux distributions. It's easy to compile CPython even on old distributions like RHEL5, RHEL6, Ubuntu14.04 etc. except for ssl

[issue38794] Setup: support linking openssl staticly

2019-11-14 Thread Lukas Vacek
Change by Lukas Vacek : -- keywords: +patch pull_requests: +16663 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17153 ___ Python tracker ___

[issue38644] Pass explicitly tstate to function calls

2019-11-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4d231bcc77ac8ce7d11bda0804130dcdd678f710 by Victor Stinner in branch 'master': bpo-38644: Add _PyObject_Call() (GH-17089) https://github.com/python/cpython/commit/4d231bcc77ac8ce7d11bda0804130dcdd678f710 --

[issue38795] test_asyncio.test_subprocess.test_terminate() timed out on AMD64 RHEL8 LTO + PGO 3.x

2019-11-14 Thread STINNER Victor
New submission from STINNER Victor : test_asyncio.test_subprocess.test_terminate() timed out on AMD64 RHEL8 LTO + PGO 3.x, and then test_asyncio.test_subprocess.test_kill() timed out on the same worker. AMD64 RHEL8 LTO + PGO 3.x: https://buildbot.python.org/all/#/builders/284/builds/232

[issue38796] test_multiprocessing_forkserver: test_mymanager_context() failed on AMD64 FreeBSD Non-Debug 3.x

2019-11-14 Thread STINNER Victor
STINNER Victor added the comment: Build warnings: Warning -- Dangling processes: {, } Warning -- Dangling processes: {, } FAIL: test_mymanager_context (test.test_multiprocessing_forkserver.WithManagerTestMyManager) 0:19:02 load avg: 1.07 Re-running failed tests in verbose mode 0:19:02 load

[issue38796] test_multiprocessing_forkserver: test_mymanager_context() failed on AMD64 FreeBSD Non-Debug 3.x

2019-11-14 Thread STINNER Victor
New submission from STINNER Victor : It looks like a race condition in the test. If I recall correctly, there is an hardcoded timeout somewhere (1 second?). https://buildbot.python.org/all/#/builders/368/builds/72 == FAIL:

[issue38797] x86-64 High Sierra 3.x buildbot worker fails to build Python: python.exe setup.py does crash with a bus error

2019-11-14 Thread STINNER Victor
New submission from STINNER Victor : Build 2680 was green, then the buildbot worker became offline, and build fails since build 2694 (when the worker came back). x86-64 High Sierra 3.x: https://buildbot.python.org/all/#/builders/145/builds/2694 ... gcc -c -Wno-unused-result -Wsign-compare -g