[issue30873] `SystemError: returned NULL without setting an error` from importing _pickle

2017-07-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I get the following error on 3.7: $ ./python issue30873.py Traceback (most recent call last): File "issue30873.py", line 44, in exec("import _pickle", dct) File "", line 1, in File "/home/serhiy/py/cpython/Lib/importlib/_bootstrap.py", line 1059,

[issue30873] `SystemError: returned NULL without setting an error` from importing _pickle

2017-07-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue30876] SystemError on import

2017-07-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: It is possible to get SystemError on import (see attached archive). $ ./python -c 'import package.module1' Traceback (most recent call last): File "", line 1, in File "/home/serhiy/py/cpython/package/module1.py", line 3, in from . import module2

[issue30726] [Windows] Warnings in elementtree due to new expat

2017-07-07 Thread Ned Deily
Ned Deily added the comment: New changeset 5777e79ecbd1f2adf36456e09f210608ee221691 by Ned Deily (Victor Stinner) in branch '3.6': [3.6] bpo-30726: PCbuild _elementtree: remove duplicate defines (#2348) (#2349) https://github.com/python/cpython/commit/5777e79ecbd1f2adf36456e09f210608ee221691

[issue30797] ./pyconfig.h:1438:0: warning: "_GNU_SOURCE" redefined [enabled by default]

2017-07-07 Thread Ned Deily
Ned Deily added the comment: New changeset bdabd7666032ce356d550da21c35e4bee5b3448c by Ned Deily in branch '3.6': bpo-30797, bpo-30694: Avoid _GNU_SOURCE redefined warning in xmlparse.c (#2615) https://github.com/python/cpython/commit/bdabd7666032ce356d550da21c35e4bee5b3448c --

[issue30687] build.bat should locate msbuild.exe rather than vcvarsall.bat

2017-07-07 Thread Ned Deily
Ned Deily added the comment: New changeset 00134f64d982561750f57f1a0bb7bb073f9f237c by Ned Deily (Steve Dower) in branch '3.6': bpo-30687: Fixes build scripts to find msbuild.exe and stop relying on vcvarsall.bat (#2252) (#2280)

[issue30730] [security] Injecting environment variable in subprocess on Windows

2017-07-07 Thread Ned Deily
Ned Deily added the comment: New changeset a9b16cff35811f88cdfeb4f50758140dfff36ebc by Ned Deily (Serhiy Storchaka) in branch '3.6': [3.6] bpo-30730: Prevent environment variables injection in subprocess on Windows. (GH-2325) (#2360)

[issue29591] expat 2.2.0: Various security vulnerabilities in bundled expat (CVE-2016-0718 and CVE-2016-4472)

2017-07-07 Thread Ned Deily
Ned Deily added the comment: New changeset 5777e79ecbd1f2adf36456e09f210608ee221691 by Ned Deily (Victor Stinner) in branch '3.6': [3.6] bpo-30726: PCbuild _elementtree: remove duplicate defines (#2348) (#2349) https://github.com/python/cpython/commit/5777e79ecbd1f2adf36456e09f210608ee221691

[issue30604] co_extra_freefuncs is stored thread locally and can lead to crashes

2017-07-07 Thread Ned Deily
Ned Deily added the comment: New changeset c794b643c9172d69afa46f85982befd82511d9df by Ned Deily (Victor Stinner) in branch '3.6': bpo-30704, bpo-30604: Fix memleak in code_dealloc() (#2455) (#2456) https://github.com/python/cpython/commit/c794b643c9172d69afa46f85982befd82511d9df --

[issue30500] [security] urllib connects to a wrong host

2017-07-07 Thread Ned Deily
Ned Deily added the comment: New changeset b0fba8874a4bd6bf4773e6efdbd8fa762e9f05bd by Ned Deily (Victor Stinner) in branch '3.6': bpo-30500: urllib: Simplify splithost by calling into urlparse. (#1849) (#2289) https://github.com/python/cpython/commit/b0fba8874a4bd6bf4773e6efdbd8fa762e9f05bd

[issue30745] Warnings in Modules/_winapi.c

2017-07-07 Thread Ned Deily
Ned Deily added the comment: New changeset d1d65015fca44b8d1f0b1df78694310270f03a6d by Ned Deily (Serhiy Storchaka) in branch '3.6': [3.6] bpo-30745: Fix compiler warnings introduced in bpo-30730. (GH-2376) (#2378)

[issue30704] test_free_different_thread() of test_code leaks references on Python 3.6

2017-07-07 Thread Ned Deily
Ned Deily added the comment: New changeset c794b643c9172d69afa46f85982befd82511d9df by Ned Deily (Victor Stinner) in branch '3.6': bpo-30704, bpo-30604: Fix memleak in code_dealloc() (#2455) (#2456) https://github.com/python/cpython/commit/c794b643c9172d69afa46f85982befd82511d9df --

[issue30694] Update embedded copy of expat to 2.2.1

2017-07-07 Thread Ned Deily
Ned Deily added the comment: New changeset ea1ab803ddc14ab02ffed50ecc5089897f259623 by Ned Deily (Victor Stinner) in branch '3.6': bpo-30694: Upgrade Modules/expat/ to libexpat 2.2.1 (#2300) (#2313) https://github.com/python/cpython/commit/ea1ab803ddc14ab02ffed50ecc5089897f259623 New

[issue30875] round(number[, digits]) does not return value with >12 decimal places

2017-07-07 Thread Steven D'Aprano
Steven D'Aprano added the comment: > Using "round(number[, digits])" in a program I get no rounding It works for me. Can you show an example of it not working? py> round(1.23456789012345, 3) 1.235 > Using the same command in the terminal interpreter it returns > ... (3 periods) then hangs

[issue30859] Can't install Python for Windows 3.6.1 on multiple profiles

2017-07-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue30875] round(number[, digits]) does not return value with >12 decimal places

2017-07-07 Thread john Forgue
New submission from john Forgue: I have a sensor that returns float with 15 decimal places. Using "round(number[, digits])" in a program I get no rounding Using the same command in the terminal interpreter it returns ... (3 periods) then hangs requiring ^C to continue. I'm using Python

[issue30874] unittest execute tests twice in some conditions

2017-07-07 Thread Alessandro Cannini
New submission from Alessandro Cannini: Unittest execute the tests twice in some conditions. You can see the log here: https://travis-ci.org/ale5000-git/test/builds/251382617 based on this code: https://github.com/ale5000-git/test/tree/7a64f24a8bfea0579e30346ba993744272aa9c36 The code to

[issue30856] unittest.TestResult.addSubTest should be called immediately after subtest finishes

2017-07-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +ezio.melotti, michael.foord, rbcollins ___ Python tracker ___

[issue30841] A shadowing variable naming emitted for Python-ast.c

2017-07-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +benjamin.peterson, brett.cannon, ncoghlan, yselivanov ___ Python tracker ___

[issue8231] Unable to run IDLE without write-access to home directory

2017-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 552f26680d3806df7c27dd7161fd7d57ac815f78 by terryjreedy in branch '3.6': [3.6] bpo-8231: Call idlelib.IdleConf.GetUserCfgDir only once. (GH-2629) (#2631) https://github.com/python/cpython/commit/552f26680d3806df7c27dd7161fd7d57ac815f78

[issue30826] More details in reference 'Looping through a list in Python and modifying it'

2017-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Are you looking for something like: Let it = iter(words). When next(it) returns 'defenestrate', insertion at the beginning moves the original 'defenestrate' over so that next(words) returns 'defenestrate' again. ? -- nosy: +terry.reedy

[issue30873] `SystemError: returned NULL without setting an error` from importing _pickle

2017-07-07 Thread ppperry
Changes by ppperry : -- title: `SystemError: returned NULL without setting an error` from imp.create_builtin -> `SystemError: returned NULL without setting an error` from importing _pickle ___ Python tracker

[issue8231] Unable to run IDLE without write-access to home directory

2017-07-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2696 ___ Python tracker ___ ___

[issue30873] `SystemError: returned NULL without setting an error` from imp.create_builtin

2017-07-07 Thread ppperry
New submission from ppperry: The following rather long code, reduced from the same example as issue30626, produces a SystemError: import builtins from importlib.machinery import PathFinder import importlib import sys import _imp from functools import partial def copy_module(module): new =

[issue8231] Unable to run IDLE without write-access to home directory

2017-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 223c7e70e48eb6eed4aab3906fbe32b098faafe3 by terryjreedy in branch 'master': bpo-8231: Call idlelib.IdleConf.GetUserCfgDir only once. (#2629) https://github.com/python/cpython/commit/223c7e70e48eb6eed4aab3906fbe32b098faafe3 --

[issue30779] IDLE: configdialog -- factor out Changes class

2017-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 9d8abf31c430dd83d073660cc92f1fe4ca6f2cd4 by terryjreedy in branch '3.6': [3.6] bpo-30779: News (GH-2627) (#2630) https://github.com/python/cpython/commit/9d8abf31c430dd83d073660cc92f1fe4ca6f2cd4 --

[issue30825] csv.Sniffer does not detect lineterminator

2017-07-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> test needed ___ Python tracker ___ ___

[issue30823] os.startfile("") craches Python 2.7, 3.4 in Windows 7 32 bit in ConEmu 161002 [32]

2017-07-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue30779] IDLE: configdialog -- factor out Changes class

2017-07-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2695 ___ Python tracker ___ ___

[issue11820] idle3 shell os.system swallows shell command output

2017-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Closed #13220 as duplicate of this. -- ___ Python tracker ___ ___

[issue13220] print function unable while multiprocessing.Process is being run

2017-07-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> duplicate stage: test needed -> resolved status: open -> closed superseder: -> idle3 shell os.system swallows shell command output ___ Python tracker

[issue13220] print function unable while multiprocessing.Process is being run

2017-07-07 Thread ppperry
ppperry added the comment: Duplicate of issue11820. -- nosy: +ppperry ___ Python tracker ___ ___

[issue8231] Unable to run IDLE without write-access to home directory

2017-07-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2694 ___ Python tracker ___ ___

[issue30779] IDLE: configdialog -- factor out Changes class

2017-07-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2693 ___ Python tracker ___ ___

[issue30779] IDLE: configdialog -- factor out Changes class

2017-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 24f2e19d68cc6ca563d2be5944d11d5f55a46918 by terryjreedy in branch 'master': bpo-30779: News (#2627) https://github.com/python/cpython/commit/24f2e19d68cc6ca563d2be5944d11d5f55a46918 -- ___ Python

[issue30821] unittest.mock.Mocks with specs aren't aware of default arguments

2017-07-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +michael.foord ___ Python tracker ___ ___

[issue27099] IDLE: turn builting extensions into regular modules

2017-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: 30779 was merged and backported today. -- ___ Python tracker ___ ___

[issue30779] IDLE: configdialog -- factor out Changes class

2017-07-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed stage: test needed -> resolved status: open -> closed ___ Python tracker ___

[issue30869] regrtest: Add .idlerc to saved_test_environment

2017-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: The current tests do not write anything. But IDLE currently requires the existence of .idlerc to run, and tries to write it if not found. Changing this requirement without disabling multiple features would not be trivial. On possibility might be to replace

[issue30851] IDLE: configdialog -- fix tkinter Variables

2017-07-07 Thread Cheryl Sabella
Cheryl Sabella added the comment: Created the pull request so it's ready once the tests are available. -- ___ Python tracker ___

[issue30851] IDLE: configdialog -- fix tkinter Variables

2017-07-07 Thread Cheryl Sabella
Changes by Cheryl Sabella : -- pull_requests: +2692 ___ Python tracker ___ ___

[issue8231] Unable to run IDLE without write-access to home directory

2017-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: My second patch did fix that. I think I will extract that part immediately. -- ___ Python tracker ___

[issue8231] Unable to run IDLE without write-access to home directory

2017-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: > GetUserCfgDir() is called in three places, (buried in one of Mark's posts). > On the fact of it, this seems like something that should be fixed. -- ___ Python tracker

[issue30779] IDLE: configdialog -- factor out Changes class

2017-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Cheryl, thank you for reviewing. I am answering the question about #30868 on that issue. I did not want to immediately test user parser Save() calls in the .save_all test for two reasons. 1. I want to first reconsider the general question what to do about

[issue30296] Remove unnecessary tuples, lists, sets, and dicts from Lib

2017-07-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Why do you think that adding an unnecessary list comprehension around tuple() > call makes them better? I just restore the original code because I don't think the changes make it better. > Also, I don't think you should be able to override and revert all

[issue30296] Remove unnecessary tuples, lists, sets, and dicts from Lib

2017-07-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: Why do you think that adding an unnecessary list comprehension around tuple() call makes them better? Also, I don't think you should be able to override and revert all the judgments I made when carefully reviewing all the OP's PR. You are NOT the sole

[issue30837] Mac OS High Sierra Beta - Python Crash

2017-07-07 Thread Ned Deily
Ned Deily added the comment: I agree with Ronald. Feel free to reopen if a reproducible test case can be supplied and duplicated with, say, a python.org Python. We still may not be able to do much about it other than suggest avoiding the proxy lookup. -- resolution: -> third party

[issue30779] IDLE: configdialog -- factor out Changes class

2017-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset edc034221f878b437748cef0f05c782d8190499d by terryjreedy in branch '3.6': [3.6] bpo-30779: IDLE -- Factor ConfigChanges class from configdialog, put in config; test. (GH-2612) (#2625)

[issue30779] IDLE: configdialog -- factor out Changes class

2017-07-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2691 ___ Python tracker ___ ___

[issue30779] IDLE: configdialog -- factor out Changes class

2017-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 349abd9e37dfdc077bc21f19e6ed2292c767f0e8 by terryjreedy in branch 'master': bpo-30779: IDLE -- Factor ConfigChanges class from configdialog, put in config; test. (#2612)

[issue30861] StreamReader does not return reamaing and ready data buffer before raise the Exeption

2017-07-07 Thread pfreixes
pfreixes added the comment: fair enough. I'm out with few chances to grab a computer. I'll be back in a week with more information. El 07/07/2017 20:14, "Yury Selivanov" escribió: > > Yury Selivanov added the comment: > > I looked at the PR and it looks good. The

[issue30296] Remove unnecessary tuples, lists, sets, and dicts from Lib

2017-07-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Since some changes looks worse than the old code to me (see my comments on GitHub), I have created PR 2624 which reverts changes with which I disagree or applies alternate changes. -- resolution: fixed -> stage: resolved -> patch review status:

[issue30296] Remove unnecessary tuples, lists, sets, and dicts from Lib

2017-07-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2690 ___ Python tracker ___ ___

[issue30809] IDLE parenmatch - highlighting options

2017-07-07 Thread Charles Wohlganger
Charles Wohlganger added the comment: I've rolled pretty much all this was going to do, other than underlining and font work into #27099. Trying to bring parenmatch into main otherwise would have been just as much of a hassle. -- ___ Python tracker

[issue27099] IDLE: turn builting extensions into regular modules

2017-07-07 Thread Charles Wohlganger
Charles Wohlganger added the comment: Progress Update: I've moved all of the basic functionality of the extensions into the regular parts of IDLE, including menus and keyboard shortcuts. parenmatch and codecontext have all of their settings now in the Highlighting settings tab. I have added

[issue22207] Test for integer overflow on Py_ssize_t: explicitly cast to size_t

2017-07-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I extracted the cases that really can happen in PR 2623. -- assignee: -> serhiy.storchaka resolution: fixed -> stage: resolved -> status: closed -> open versions: +Python 3.6, Python 3.7 ___ Python tracker

[issue30511] shutil.make_archive should not need to chdir (alternatively: make shutil.make_archive thread-safe)

2017-07-07 Thread Joey Harrington
Joey Harrington added the comment: It would be nice if there was at least a warning in the docs that make_archive is not thread-safe, and that if you have two threads creating archives that it's extremely likely you'll get erroneous results since the race condition lasts for the entire

[issue22207] Test for integer overflow on Py_ssize_t: explicitly cast to size_t

2017-07-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2689 ___ Python tracker ___ ___

[issue30553] Add HTTP Response code 421

2017-07-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list

[issue30861] StreamReader does not return reamaing and ready data buffer before raise the Exeption

2017-07-07 Thread Yury Selivanov
Yury Selivanov added the comment: I looked at the PR and it looks good. The intent is also clear. But the idea of delaying exceptions in StreamReader read methods still feels finicky. To go forward with this we need more examples than just nodejs. And it doesn't really matter what trio and

[issue30788] email.policy.SMTP.fold() issue for long filenames with spaces

2017-07-07 Thread Joel Hillacre
Changes by Joel Hillacre : -- pull_requests: +2688 ___ Python tracker ___ ___

[issue30814] Import dotted name as alias breaks with concurrency

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

[issue30858] Keyword can't be an expression?

2017-07-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, I prefer the current error message and my students don't seem to have issues with it. No matter what wording we put in, someone will always find a way to misread it, in part because the "end6 + end=' '" example isn't a simple mistake, it reflects

[issue29854] Segfault when readline history is more then 2 * history size

2017-07-07 Thread Nir Soffer
Changes by Nir Soffer : -- pull_requests: +2687 ___ Python tracker ___ ___ Python-bugs-list

[issue30861] StreamReader does not return reamaing and ready data buffer before raise the Exeption

2017-07-07 Thread Guido van Rossum
Guido van Rossum added the comment: IMO you haven't demonstrated a need, you are just complaining that you don't like it. -- ___ Python tracker ___

[issue29854] Segfault when readline history is more then 2 * history size

2017-07-07 Thread Berker Peksag
Berker Peksag added the comment: According to https://cnswww.cns.cwru.edu/php/chet/readline/CHANGES, the history-size setting was added in readline 6.0: e. A new user-settable variable, `history-size', allows setting the maximum number of entries in the history list. The only

[issue29854] Segfault when readline history is more then 2 * history size

2017-07-07 Thread Berker Peksag
Berker Peksag added the comment: > So we have version 0x502 without libedit emulation succeeding on > FreeBSD 9.x, and failing on 10.x. test_history_size() fails on FreeBSD 9.x too: == FAIL: test_history_size

[issue29854] Segfault when readline history is more then 2 * history size

2017-07-07 Thread Nir Soffer
Nir Soffer added the comment: So we have version 0x502 without libedit emulation succeeding on FreeBSD 9.x, and failing on 10.x. I think we are missing something, or maybe the libedit check is wrong. We need results from all builders to do something with this. I think at least for now we want

[issue30861] StreamReader does not return reamaing and ready data buffer before raise the Exeption

2017-07-07 Thread pfreixes
pfreixes added the comment: I would like to focus the issue as was initially described, Im still convinced that this is a buggy behaviour. As has been seen other systems such as python sync or nodejs behaves as is expected. This last one is IMHO something that can be skipped. Im wondering how

[issue30183] [HPUX] compilation error in pytime.c with cc compiler

2017-07-07 Thread David Haney
David Haney added the comment: I've attached the test output summary from a recent build. -- Added file: http://bugs.python.org/file46995/tests.out ___ Python tracker

[issue30872] Update curses docs to Python 3

2017-07-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2686 ___ Python tracker ___ ___

[issue30872] Update curses docs to Python 3

2017-07-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The curses libraries works with strings and characters. But what are strings? In different functions this means different: Unicode strings, byte strings or any. Proposed PR explains this. It also unifies the documentation of boolean arguments, and fixes

[issue30871] Add a "python info" command somewhere to dump versions of all dependencies

2017-07-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Something like the CLI of modules site, sysconfig and platform? Note that there are two versions: the version with which the interpreter is build, and the version of the dynamic library. -- nosy: +serhiy.storchaka

[issue30861] StreamReader does not return reamaing and ready data buffer before raise the Exeption

2017-07-07 Thread Guido van Rossum
Guido van Rossum added the comment: But half closed state is already supported. On Jul 7, 2017 2:37 AM, "Dima Tisnek" wrote: > > Dima Tisnek added the comment: > > It seems Guido sets a higher bar on the proposed change. > > @pfreixes, if you can show that this change

[issue30837] Mac OS High Sierra Beta - Python Crash

2017-07-07 Thread Ronald Oussoren
Ronald Oussoren added the comment: I proprose closing this issue as there's too little information to reproduce the problem, the crash is using a system build of Python on a beta version of macOS and this appears to be a known issue. -- ___ Python

[issue30871] Add a "python info" command somewhere to dump versions of all dependencies

2017-07-07 Thread Nir Soffer
Nir Soffer added the comment: I like the idea, may be also useful in https://github.com/sosreport/sos/blob/master/sos/plugins/python.py -- nosy: +Nir Soffer ___ Python tracker

[issue29854] Segfault when readline history is more then 2 * history size

2017-07-07 Thread STINNER Victor
STINNER Victor added the comment: AMD64 FreeBSD 9.x 3.x, test_history_size() fails: readline version: 0x502 readline runtime version: 0x502 readline library version: '5.2' use libedit emulation? False AMD64 FreeBSD 10.x Shared 3.x, test_history_size() fails: readline version: 0x502 readline

[issue30779] IDLE: configdialog -- factor out Changes class

2017-07-07 Thread Cheryl Sabella
Cheryl Sabella added the comment: Terry, Any interest on using gitter or slack (or something like that) while trying to coordinate work between you, Louie, me, and others? -- ___ Python tracker

[issue30871] Add a "python info" command somewhere to dump versions of all dependencies

2017-07-07 Thread STINNER Victor
New submission from STINNER Victor: While discussing how to dump the readline version in regrtest or test_readline in bpo-29854, I proposed to add a new buildbot step to dump any kinds of debug information. It would avoid to pollute test output with useless information. For example, while the

[issue29854] Segfault when readline history is more then 2 * history size

2017-07-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1881befb905553618f1e7ad2cef8f6ff07e1b8ef by Victor Stinner in branch 'master': bpo-29854: test_readline logs versions (#2619) https://github.com/python/cpython/commit/1881befb905553618f1e7ad2cef8f6ff07e1b8ef --

[issue13802] IDLE Prefernces/Fonts: use multiple alphabets in examples

2017-07-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: On other hand, we can use the standard font chooser dialog. But it doesn't allow to configure the sample text at all (at least on X Window). Terry, try please the following commands on Windows: import tkinter root = tkinter.Tk() root.tk.call('tk',

[issue29854] Segfault when readline history is more then 2 * history size

2017-07-07 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2685 ___ Python tracker ___ ___

[issue29854] Segfault when readline history is more then 2 * history size

2017-07-07 Thread Berker Peksag
Changes by Berker Peksag : -- pull_requests: +2684 ___ Python tracker ___ ___

[issue30779] IDLE: configdialog -- factor out Changes class

2017-07-07 Thread Cheryl Sabella
Cheryl Sabella added the comment: Sorry about that. When I read msg297804, I thought your intention was for me to work on the PRs. I didn't see your other note until now. It will be good for me to learn from your changes. As far as mocking Save, I sort of did that (very basically) in my PR

[issue29854] Segfault when readline history is more then 2 * history size

2017-07-07 Thread Nir Soffer
Nir Soffer added the comment: The failures looks like libedit failures on OS X, where history size is ignored. The test is skipped if is_editline is set, we should probably skip on these platforms too. -- nosy: +Nir Soffer ___ Python tracker

[issue29854] Segfault when readline history is more then 2 * history size

2017-07-07 Thread Berker Peksag
Berker Peksag added the comment: I've opened PR 2618 to print readline version and implementation in regrtest's display_header() method. -- ___ Python tracker

[issue29854] Segfault when readline history is more then 2 * history size

2017-07-07 Thread Berker Peksag
Berker Peksag added the comment: > Similar failure on x86 Tiger 3.x. This one is interesting. I thought we don't have OS X buildbots with readline installed. I would prefer skipping the test based on readline version installed. Side note: I think we should print readline, sqlite3 etc.

[issue13802] IDLE Prefernces/Fonts: use multiple alphabets in examples

2017-07-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't think that it is worth to include in Python distribution examples for a hundred of languages. If there are some system-wide collections of examples we can use them, but this should be platform specific and not always available. --

[issue29854] Segfault when readline history is more then 2 * history size

2017-07-07 Thread STINNER Victor
STINNER Victor added the comment: Similar failure on x86 Tiger 3.x. Maybe we need to skip the test on old macOS and old FreeBSD versions? Maybe it's related to the libncurses version? http://buildbot.python.org/all/builders/x86%20Tiger%203.x/builds/908/steps/test/logs/stdio

[issue29854] Segfault when readline history is more then 2 * history size

2017-07-07 Thread STINNER Victor
STINNER Victor added the comment: The test fails on AMD64 FreeBSD 10.x Shared 3.x: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.x%20Shared%203.x/builds/551/steps/test/logs/stdio == FAIL: test_history_size

[issue30869] regrtest: Add .idlerc to saved_test_environment

2017-07-07 Thread STINNER Victor
STINNER Victor added the comment: test_site has a similar issue: bpo-30227, "test_site must not write outside the build directory: must not write into $HOME/.local/". -- ___ Python tracker

[issue30869] regrtest: Add .idlerc to saved_test_environment

2017-07-07 Thread STINNER Victor
STINNER Victor added the comment: I dislike the idea of opening all $HOME/.idlerc/ directory and store their content in memory. If a unit test writes into $HOME, we already have an issue. Unit tests must not modify the user configuration. If an unit test is interrupted, there is a high risk

[issue30861] StreamReader does not return reamaing and ready data buffer before raise the Exeption

2017-07-07 Thread Dima Tisnek
Dima Tisnek added the comment: It seems Guido sets a higher bar on the proposed change. @pfreixes, if you can show that this change is needed to implement "TCP half-closed" state (i.e. when remote calls shutdown(SHUT_WR) after it's done sending data but continues to recv(), then local is

[issue30714] test_ssl fails with openssl 1.1.0f

2017-07-07 Thread Ned Deily
Ned Deily added the comment: Sorry, this didn't make it in time for 3.6.2. There is still at least a couple of weeks to get it into 3.5.4 and 2.7.14. -- ___ Python tracker

[issue30797] ./pyconfig.h:1438:0: warning: "_GNU_SOURCE" redefined [enabled by default]

2017-07-07 Thread Ned Deily
Ned Deily added the comment: One more thing: building with a recent gcc on Linux: $ gcc --version gcc (Debian 6.3.0-18) 6.3.0 20170516 also gives an "unused but set variable" warning. ./Modules/expat/xmlparse.c: In function ‘gather_time_entropy’: ./Modules/expat/xmlparse.c:780:7: warning:

[issue13802] IDLE Prefernces/Fonts: use multiple alphabets in examples

2017-07-07 Thread Louie Lu
Louie Lu added the comment: Serhiy: Or would it be to detect the user language environment, and come up with user language example sentence? What I remember that Windows font preview will change the sentence in the different language. -- ___ Python

[issue13802] IDLE Prefernces/Fonts: use multiple alphabets in examples

2017-07-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are many different alphabets in the world. Why Chines but not Cyrillic or Devanagari? An example that includes all scripts would be too large (and likely most characters would not be rendered correctly with an arbitrary font). I suggest just make the

[issue13802] IDLE Prefernces/Fonts: use multiple alphabets in examples

2017-07-07 Thread Louie Lu
Louie Lu added the comment: Add the string with pangram and chinese, now sample text shows: AaBbCcDdEe FfGgHhIiJjK 1234567890 #:+=(){}[] The quick brown fox jumps over the lazy dog. [1] 南去經三國,東來過五湖 [2] -- [1]:

[issue30870] IDLE: configdialog/fonts: change font when select by key up/down

2017-07-07 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +2683 ___ Python tracker ___ ___ Python-bugs-list

[issue30870] IDLE: configdialog/fonts: change font when select by key up/down

2017-07-07 Thread Louie Lu
New submission from Louie Lu: Add event for KeyRelease-Up and KeyRelease-Down to change sample font. Current code only changed font when using button-click on listbox. -- assignee: terry.reedy components: IDLE messages: 297867 nosy: louielu, terry.reedy priority: normal severity:

  1   2   >