[issue27666] "stack smashing detected" in PyCursesWindow_Box

2017-11-01 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4189 ___ Python tracker ___

[issue1751519] curses - new window methods: addchstr and addchnstr

2017-11-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- versions: +Python 3.7 -Python 3.2 ___ Python tracker ___

[issue1751519] curses - new window methods: addchstr and addchnstr

2017-11-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker ___

[issue31630] math.tan has poor accuracy near pi/2 on OpenBSD and NetBSD

2017-11-01 Thread Tim Peters
Tim Peters added the comment: Since fdlibm uses tan(x) ~= -1/(x-pi/2) in this range, and the reciprocals of the bad results have a whole of bunch of trailing zero bits, my guess is that argument reduction (the "x-pi/2" part) is screwing up (losing bits of pi/2 beyond the

[issue28643] Broken makefile depends for profile-opt target

2017-11-01 Thread Neil Schemenauer
Change by Neil Schemenauer : -- keywords: +patch pull_requests: +4191 ___ Python tracker ___

[issue31630] math.tan has poor accuracy near pi/2 on OpenBSD and NetBSD

2017-11-01 Thread Stefan Krah
Stefan Krah added the comment: On Wed, Nov 01, 2017 at 06:17:44PM +, Mark Dickinson wrote: > I'm really reluctant to (even conditionally) skip the test, because it's > doing exactly what it's designed to do, namely detecting and reporting that > Python is giving poor

[issue5368] curses patch add color_set and wcolor_set , and addchstr family of functions

2017-11-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- versions: +Python 3.7 -Python 2.7 ___ Python tracker ___

[issue21457] NetBSD curses support improvements

2017-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Guards around functions have been removed in issue31891. But could you please explain why changes in py_curses.h are needed? -- nosy: +serhiy.storchaka ___ Python tracker

[issue18669] curses.chgat() moves cursor, documentation says it shouldn't

2017-11-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: docs@python -> serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker ___

[issue31630] math.tan has poor accuracy near pi/2 on OpenBSD and NetBSD

2017-11-01 Thread Tim Peters
Tim Peters added the comment: Oops! I mixed up `sin` and `cos` in that comment. If it's argument reduction that's broken, then for x near pi/2 cos(x) will be evaluated as -sin(x - pi/2), which is approximately -(x - pi/2), and so error in argument reduction (the "x - pi/2"

[issue18835] Add PyMem_AlignedAlloc()

2017-11-01 Thread Stefan Krah
Stefan Krah added the comment: Yes, it may be better not to add it. To summarize the problems again: - C11 aligned_alloc() / free() would be more comfortable but isn't available on MSVC. - posix_memalign() performance isn't that

[issue27666] "stack smashing detected" in PyCursesWindow_Box

2017-11-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue14598] _cursesmodule.c fails with ncurses-5.9 on Linux

2017-11-01 Thread Masayuki Yamamoto
Masayuki Yamamoto added the comment: Probably, yes. ncurses on Cygwin has provided is_pad() [*]. In addition, the old version of Cygwin will become to not define WINDOW_HAS_FLAGS by issue25720. [*] newer version than patchlevel 20090906 was provided on Cygwin in

[issue31356] Add context manager to temporarily disable GC

2017-11-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I have prepared a PR in GitHub with an initial implementation of the context manager trying to fulfil the discussed requirements: https://github.com/python/cpython/pull/3980 -- nosy: +pablogsal

[issue31913] forkserver could warn if several threads are running

2017-11-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yeah... We might replicate the psutil source code doing that. On Linux, it involves parsing /proc/{pid}/status (which may not be available on some restricted execution environments?). Haven't looked what it does on macOS. -- nosy:

[issue31913] forkserver could warn if several threads are running

2017-11-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: If we do this, I think we should aim for the complete solution on the most common posix platforms (Linux and MacOS) as C/C++ extensions are just as happy to create threads these days. (but if you want to start with a simple python threads

[issue31356] Add context manager to temporarily disable GC

2017-11-01 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +4192 stage: needs patch -> patch review ___ Python tracker

[issue21457] NetBSD curses support improvements

2017-11-01 Thread Thomas Klausner
Thomas Klausner added the comment: Thanks for looking at this. I looked at the patch again, and I can't make sense of the py_curses.h part either - I've removed it from pkgsrc with a request for information if it's still needed. Btw, thanks for working on NetBSD curses

[issue18835] Add PyMem_AlignedAlloc()

2017-11-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: I agree, if the two primary users say they won't use it, it doesn't make sense for us to maintain 600 hundred lines of low-level C code. -- ___ Python tracker

[issue31918] Don't let all python code modify modules

2017-11-01 Thread Марат Нагаев
Change by Марат Нагаев : -- components: +Extension Modules ___ Python tracker ___

[issue31626] Writing in freed memory in _PyMem_DebugRawRealloc() after shrinking a memory block

2017-11-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +4179 ___ Python tracker ___ ___

[issue31918] D

2017-11-01 Thread Марат Нагаев
Change by Марат Нагаев : -- nosy: Марат Нагаев priority: normal severity: normal status: open title: D type: enhancement ___ Python tracker

[issue30442] Skip test_xml_etree under coverage

2017-11-01 Thread Berker Peksag
Berker Peksag added the comment: All PRs have been merged and 3.5 is now in security-fix-only mode. Closing this as 'fixed'. -- nosy: +berker.peksag resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.5

[issue31919] Make curses compiling on OpenIndiana and tests passing

2017-11-01 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The proposed PR makes curses compiling on OpenIndiana (2017.04) and fixes tests. I suppose it fixes issues on Solaris too. -- assignee: serhiy.storchaka components: Extension Modules messages: 305368 nosy:

[issue31390] pydoc.Helper.keywords missing async and await

2017-11-01 Thread Berker Peksag
Berker Peksag added the comment: Thank you for your report. Prior to Python 3.7, async and await keywords have had special meanings and they weren't treated as normal keywords. They are now in Python 3.7: >>> async = 42 File "", line 1 async = 42 ^

[issue31412] wave.open does not accept PathLike objects

2017-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: wave is a one of three audio file modules (aifc, sunau, wave) that should have the same interface. -- nosy: +serhiy.storchaka ___ Python tracker

[issue31908] trace module cli does not write cover files

2017-11-01 Thread Berker Peksag
Berker Peksag added the comment: I think the first part of your patch also fixes issue 26818. Could you adapt the test there and add a test case for the problem in this issue? -- nosy: +berker.peksag versions: -Python 3.5

[issue9674] make install DESTDIR=/home/blah fails when the prefix specified is /

2017-11-01 Thread Xavier de Gaye
Xavier de Gaye added the comment: The problem is that the build system , Py_GetPath() and the distutils module do not handle correctly the case where the configure prefix is '/'. Closing as a duplicate of issue 31114. -- resolution: -> duplicate stage: test needed

[issue31412] wave.open does not accept PathLike objects

2017-11-01 Thread Berker Peksag
Change by Berker Peksag : -- nosy: +berker.peksag ___ Python tracker ___ ___

[issue31918] Don't let all python code modify modules

2017-11-01 Thread Марат Нагаев
New submission from Марат Нагаев : import os os="os" #I think it's bad, os and other modules constants -- title: D -> Don't let all python code modify modules ___ Python tracker

[issue31918] Don't let all python code modify modules

2017-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You haven't modified the os module. You have just binded a new value to the os variable. You can assign arbitrary values to your variables, this is a feature of Python. -- nosy: +serhiy.storchaka resolution: -> not a

[issue28791] update sqlite to latest version before beta 1

2017-11-01 Thread Berker Peksag
Berker Peksag added the comment: > In an effort to not forget about this, I'm setting it to deferred blocker. Should we mark issue 30952 'deferred blocker' too? -- nosy: +berker.peksag ___ Python tracker

[issue8548] Building on CygWin 1.7: PATH_MAX redefined

2017-11-01 Thread Masayuki Yamamoto
Masayuki Yamamoto added the comment: This issue has been out-of-date since Python 3.4 maintenance became security status. -- ___ Python tracker

[issue31872] SSL BIO is broken for internationalized domains

2017-11-01 Thread Nathaniel Smith
Nathaniel Smith added the comment: I believe https://github.com/python/cpython/pull/3010 is the fix you're looking for. -- nosy: +njs ___ Python tracker

[issue25720] Fix curses module compilation with ncurses6

2017-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 6ba0b583d6785a256b17d27431908d67015eeeb6 by Serhiy Storchaka (Miss Islington (bot)) in branch '2.7': bpo-25720: Fix the method for checking pad state of curses WINDOW (GH-4164) (#4213)

[issue25720] Fix curses module compilation with ncurses6

2017-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset ff6ae4de3874f4922a5883f08bb661c93834b060 by Serhiy Storchaka (Miss Islington (bot)) in branch '3.6': bpo-25720: Fix the method for checking pad state of curses WINDOW (GH-4164) (#4212)

[issue25720] Fix curses module compilation with ncurses6

2017-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Masayuki! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31910] test_socket.test_create_connection() failed with EADDRNOTAVAIL (err 99)

2017-11-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4b73a79e796c3832be0cfd45bc27f15aea32b621 by Victor Stinner (Miss Islington (bot)) in branch '2.7': Fix test_socket.test_create_connection() (GH-4206) (#4209)

[issue31910] test_socket.test_create_connection() failed with EADDRNOTAVAIL (err 99)

2017-11-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 89b84b026b389f3c61cbbc5ee89afd8248721b0d by Victor Stinner (Miss Islington (bot)) in branch '3.6': Fix test_socket.test_create_connection() (GH-4206) (#4208)

[issue31892] ssl.get_server_certificate should allow specifying certificate / key type

2017-11-01 Thread Christian Heimes
Christian Heimes added the comment: Thanks for your feature request, Hanno. It's fairly easy to implement with current API for TLS protocols up to TLS 1.2, e.g. cipher suite "DEFAULT:!aRSA:!aDSS" or "aECDSA:!NULL" for ECDSA certs. However TLS 1.3 cipher suites no longer

[issue25720] Fix curses module compilation with ncurses6

2017-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 8bc7d63560024681dce9f40445f2877b2987e92c by Serhiy Storchaka (Masayuki Yamamoto) in branch 'master': bpo-25720: Fix the method for checking pad state of curses WINDOW (#4164)

[issue31919] Make curses compiling on OpenIndiana and tests passing

2017-11-01 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4184 ___ Python tracker ___

[issue31919] Make curses compiling on OpenIndiana and tests passing

2017-11-01 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4183 ___ Python tracker ___

[issue14598] _cursesmodule.c fails with ncurses-5.9 on Linux

2017-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is this issue superseded by issue25720? -- nosy: +serhiy.storchaka status: open -> pending versions: +Python 3.6, Python 3.7 -Python 3.4, Python 3.5 ___ Python tracker

[issue31680] Expose curses library name and version on Python level

2017-11-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +4185 stage: -> patch review ___ Python tracker ___

[issue30423] [asyncio] orphan future close loop and cause "RuntimeError: Event loop stopped before Future completed."

2017-11-01 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset d1e34031f68a3c7523a5376575c87cd0fea2425c by Andrew Svetlov (jimmylai) in branch 'master': [asyncio] bpo-30423: add regression test for orphan future causes "RuntimeError: Event loop stopped before Future completed."

[issue31919] Make curses compiling on OpenIndiana and tests passing

2017-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 87c66e46ce2c929540a9a91bbe25d1840d194475 by Serhiy Storchaka (Miss Islington (bot)) in branch '2.7': bpo-31919: Fix building the curses module on OpenIndiana. (GH-4211) (#4216)

[issue31919] Make curses compiling on OpenIndiana and tests passing

2017-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2be9a31213e93e26a71150efaef1a975f8b9afec by Serhiy Storchaka (Miss Islington (bot)) in branch '3.6': bpo-31919: Fix building the curses module on OpenIndiana. (GH-4211) (#4215)

[issue31919] Make curses compiling on OpenIndiana and tests passing

2017-11-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +4180 stage: -> patch review ___ Python tracker ___

[issue25720] Fix curses module compilation with ncurses6

2017-11-01 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4181 ___ Python tracker ___

[issue25720] Fix curses module compilation with ncurses6

2017-11-01 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4182 ___ Python tracker ___

[issue31919] Make curses compiling on OpenIndiana and tests passing

2017-11-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31919] Make curses compiling on OpenIndiana and tests passing

2017-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 894ebd065e02debf20c0657d26020ecc42b7534f by Serhiy Storchaka in branch 'master': bpo-31919: Fix building the curses module on OpenIndiana. (#4211)

[issue31680] Expose curses library name and version on Python level

2017-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 4217 adds a named tuple curses.ncurses_version containing the three components of the ncurses library version: major, minor, and patch. >>> curses.ncurses_version curses.ncurses_version(major=6, minor=0, patch=20160625)

[issue15037] curses.unget_wch and test_curses fail when linked with ncurses 5.7 and earlier

2017-11-01 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4186 ___ Python tracker ___

[issue31893] Issues with kqueue

2017-11-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +4187 ___ Python tracker ___ ___

[issue15037] curses.unget_wch and test_curses fail when linked with ncurses 5.7 and earlier

2017-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1f81ea85e8e20347ec396001e5b869d36fe38398 by Serhiy Storchaka (Miss Islington (bot)) in branch '3.6': bpo-15037: Add a workaround for getkey() in curses for ncurses 5.7 and earlier. (GH-3826) (#4218)

[issue15037] curses.unget_wch and test_curses fail when linked with ncurses 5.7 and earlier

2017-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 7e68790f3db75a893d5dd336e6201a63bc70212b by Serhiy Storchaka in branch 'master': bpo-15037: Add a workaround for getkey() in curses for ncurses 5.7 and earlier. (#3826)

[issue27666] "stack smashing detected" in PyCursesWindow_Box

2017-11-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +4188 stage: needs patch -> patch review ___ Python tracker ___

[issue31893] Issues with kqueue

2017-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset ce51890894be46f8f9d991a1d0ea1455fc41ccdc by Serhiy Storchaka in branch '2.7': bpo-31893: Fix a backporting error in 8cbf4e10646c3f5b8f0d274c2d7dea5bb6305f57. (#4219)

[issue27666] "stack smashing detected" in PyCursesWindow_Box

2017-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset aad7ac10af6ed40fc21b842e04be0b04b2915d4a by Serhiy Storchaka (Miss Islington (bot)) in branch '3.6': bpo-27666: Fixed stack corruption in curses.box() and curses.ungetmouse(). (GH-4220) (#4221)

[issue27666] "stack smashing detected" in PyCursesWindow_Box

2017-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b694770a2b23cd485c98bf673a8b2dc1a865d9df by Serhiy Storchaka (Miss Islington (bot)) in branch '2.7': bpo-27666: Fixed stack corruption in curses.box() and curses.ungetmouse(). (GH-4220) (#4222)

[issue27666] "stack smashing detected" in PyCursesWindow_Box

2017-11-01 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4190 ___ Python tracker ___

[issue27666] "stack smashing detected" in PyCursesWindow_Box

2017-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your patch Steve. It is better to use PyCurses_ConvertToChtype() which is used for parsing all chtype arguments. -- ___ Python tracker

[issue27666] "stack smashing detected" in PyCursesWindow_Box

2017-11-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka versions: +Python 3.6, Python 3.7 ___ Python tracker ___

[issue15037] curses.unget_wch and test_curses fail when linked with ncurses 5.7 and earlier

2017-11-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue8243] curses writing to window's bottom right position raises: `_curses.error: addstr() returned ERR'

2017-11-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- type: behavior -> enhancement versions: +Python 3.6, Python 3.7 -Python 3.4, Python 3.5 ___ Python tracker

[issue10598] Add test for curses haskey replacement

2017-11-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker ___

[issue3786] _curses, _curses_panel & _multiprocessing can't be build in 2.6b3 w/ SunStudio 12

2017-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Issue31919 have made _curses be built on OpenIndiana with the default curses library. I suppose this have fixed this issue on Solaris too. But configuring _curses to use XPG4 curses is a different issue. -- nosy:

[issue5368] curses patch add color_set and wcolor_set , and addchstr family of functions

2017-11-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker ___

[issue1723038] Curses Menu

2017-11-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka versions: +Python 3.7 -Python 3.4 ___ Python tracker

[issue15852] typos in curses argument error messages

2017-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Do you mind to create a pull request on GitHub Chris? In general the patch LGTM, but I don't think this minor typo fix needs tests for exact error messages. Adding new tests is good, but I think it is enough to test that

[issue9667] NetBSD curses KEY_* constants

2017-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Currently the default curses library on NetBSD provides all guarded functions. All these guards no longer needed. And they were removed in issue31891. -- nosy: +serhiy.storchaka resolution: -> out of date stage: ->

[issue3949] curses' sigwinch handler isn't visible from python

2017-11-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +haypo, serhiy.storchaka versions: +Python 3.6, Python 3.7 -Python 3.3, Python 3.4 ___ Python tracker

[issue31630] math.tan has poor accuracy near pi/2 on OpenBSD and NetBSD

2017-11-01 Thread Mark Dickinson
Mark Dickinson added the comment: The big mystery for me is not "Why this is occurring in the first place?" but "What should we do about it?" I'm really reluctant to (even conditionally) skip the test, because it's doing exactly what it's designed to do, namely detecting