[issue30877] possibe typo in json/scanner.py

2017-07-07 Thread Roundup Robot

Changes by Roundup Robot :


--
pull_requests: +2697

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30877] possibe typo in json/scanner.py

2017-07-07 Thread PilatFirst

New submission from PilatFirst:

Should "py_make_scanner" return "scan_once" function rather than "_scan_once"?

--
components: Library (Lib)
messages: 297945
nosy: PilatFirst
priority: normal
severity: normal
status: open
title: possibe typo in json/scanner.py
type: enhancement
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30876] SystemError on import

2017-07-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I don't know other way to provoke SystemError by Python code. Always if 
SystemError was leaked this considered a bug and was fixed.

When unload package you need to remove its name and names of its submodules 
from sys.modules. This is a common case. If the submodule is imported at the 
same time in other thread you can get SystemError (randomly, with very small 
probability). I think that if the error can't be avoided, SystemError is a 
wrong exception for this case.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30876] SystemError on import

2017-07-07 Thread Nick Coghlan

Nick Coghlan added the comment:

To summarise what the attached source archive is doing, module1.py is 
essentially:

import sys
del sys.modules(__package__)
from . import module2

So the only way to trigger this is by corrupting the import state, which seems 
like an appropriate use of SystemError to me.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30876] SystemError on import

2017-07-07 Thread Nick Coghlan

Nick Coghlan added the comment:

I don't think we're that strict with SystemError - once folks are messing about 
with deleting things from the sys module, they *are* writing their own system 
level code, and may end up provoking SystemError if they corrupt the 
interpreter state in the process.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, in 
__import__
module = _gcd_import(name)
  File "/home/serhiy/py/cpython/Lib/importlib/_bootstrap.py", line 986, in 
_gcd_import
return _find_and_load(name, _gcd_import)
  File "/home/serhiy/py/cpython/Lib/importlib/_bootstrap.py", line 963, in 
_find_and_load
return _find_and_load_unlocked(name, import_)
  File "/home/serhiy/py/cpython/Lib/importlib/_bootstrap.py", line 948, in 
_find_and_load_unlocked
raise ModuleNotFoundError(_ERR_MSG.format(name), name=name)
ModuleNotFoundError: No module named '_pickle'

On 3.6:

$ ./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/cpython3.6/Lib/importlib/_bootstrap.py", line 1059, in 
__import__
module = _gcd_import(name)
  File "/home/serhiy/py/cpython3.6/Lib/importlib/_bootstrap.py", line 986, in 
_gcd_import
return _find_and_load(name, _gcd_import)
  File "/home/serhiy/py/cpython3.6/Lib/importlib/_bootstrap.py", line 963, in 
_find_and_load
return _find_and_load_unlocked(name, import_)
  File "/home/serhiy/py/cpython3.6/Lib/importlib/_bootstrap.py", line 950, in 
_find_and_load_unlocked
module = _load_unlocked(spec)
  File "/home/serhiy/py/cpython3.6/Lib/importlib/_bootstrap.py", line 648, in 
_load_unlocked
module = module_from_spec(spec)
  File "/home/serhiy/py/cpython3.6/Lib/importlib/_bootstrap.py", line 560, in 
module_from_spec
module = spec.loader.create_module(spec)
  File "", line 922, in create_module
  File "/home/serhiy/py/cpython3.6/Lib/importlib/_bootstrap.py", line 205, in 
_call_with_frames_removed
return f(*args, **kwds)
KeyError: 'copyreg'

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
SystemError: Parent module 'package' not loaded, cannot perform relative import

SystemError means a programming error in interpreter core or extension. It is 
comparable to an assert in C code, but without immediate crashing. Since this 
situation can be provoked by user code, it should be replaced with other 
exception (KeyError, RuntimeError, ImportError, etc).

--
components: Interpreter Core
files: import-systemerror.zip
messages: 297940
nosy: brett.cannon, eric.snow, ncoghlan, serhiy.storchaka
priority: normal
severity: normal
status: open
title: SystemError on import
type: behavior
versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7
Added file: http://bugs.python.org/file46997/import-systemerror.zip

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

New changeset b6012f982fabed6029d7e2db2a509a8b28b4f6e1 by Ned Deily (Segev 
Finer) in branch '3.6':
[3.6] bpo-30726: Also fix pyexpat.vcxproj (GH-2375) (#2570)
https://github.com/python/cpython/commit/b6012f982fabed6029d7e2db2a509a8b28b4f6e1


--
nosy: +ned.deily

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
https://github.com/python/cpython/commit/00134f64d982561750f57f1a0bb7bb073f9f237c


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
https://github.com/python/cpython/commit/a9b16cff35811f88cdfeb4f50758140dfff36ebc

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)
https://github.com/python/cpython/commit/d1d65015fca44b8d1f0b1df78694310270f03a6d


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--
nosy: +ned.deily

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
https://github.com/python/cpython/commit/d1d65015fca44b8d1f0b1df78694310270f03a6d


--
nosy: +ned.deily

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 requiring ^C to continue.


That sounds like the interactive interpreter is waiting for a closing 
parenthesis (round bracket). It will sit and wait forever for you to finish 
typing the command. If you hit ENTER, you'll just get another prompt.

py> round(1.23456789012345, 3
...
...
... )
1.235


If this does not explain what you are seeing, you will have to give us more 
information, including examples of the failures and instructions for how to 
replicate the failure.

--
nosy: +steven.daprano

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 3.4.2 on RasPi Jessie.

--
components: Library (Lib)
messages: 297928
nosy: john Forgue
priority: normal
severity: normal
status: open
title: round(number[, digits])  does not return value with >12 decimal places
versions: Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 load tests is this:
def custom_test_suite():
import unittest
return unittest.TestLoader().discover("tests", pattern="*_test.py")

--
messages: 297927
nosy: Alessandro Cannini
priority: normal
severity: normal
status: open
title: unittest execute tests twice in some conditions
type: behavior
versions: Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 = type(sys)(module.__name__)
new.__dict__.update(module.__dict__)
return new
_absent = object()
def new_exec(code, globals=_absent, locals=_absent, *, new_builtins):
if globals == _absent:
frame = sys._getframe(2)
globals = frame.f_globals
locals = frame.f_locals
elif locals == _absent:
locals = globals
globals.setdefault("__builtins__", new_builtins);
return exec(code, globals, locals)
dct={}
dct["__builtins__"] = b = copy_module(builtins)
b.exec = partial(new_exec, new_builtins=b)
spec = PathFinder.find_spec("_bootstrap",importlib.__path__)
source_bootstrap = type(sys)("_bootstrap");
spec.loader.exec_module(source_bootstrap);
external_spec = PathFinder.find_spec("_bootstrap_external",importlib.__path__)
source_bootstrap_external = type(sys)("_bootstrap_external");
external_spec.loader.exec_module(source_bootstrap_external);
source_bootstrap.__name__ = "importlib._bootstrap";
source_bootstrap_external.__name__ = "importlib._bootstrap_external";
new_sys = copy_module(sys)
new_sys.path_importer_cache = {}
new_sys.path_hooks = []
new_sys.meta_path = []
new_sys.modules = {
"importlib._bootstrap":source_bootstrap,
"importlib._bootstrap_external":source_bootstrap_external,
  }
for mod in new_sys.modules.values():
mod.__builtins__ = b
b.__import__ = source_bootstrap.__import__
source_bootstrap._install(new_sys,_imp)
exec("import _pickle", dct)

--
components: Interpreter Core, Library (Lib)
messages: 297924
nosy: brett.cannon, eric.snow, ncoghlan, ppperry
priority: normal
severity: normal
status: open
title: `SystemError:  returned NULL without 
setting an  error` from imp.create_builtin
type: behavior
versions: Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30825] csv.Sniffer does not detect lineterminator

2017-07-07 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
stage:  -> test needed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2017-07-07 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
pull_requests: +2695

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2017-07-07 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
pull_requests: +2693

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 builtin open with a wrapper that returned named 
StringIO objects when the path began with '.idlerc/'.  The StringIO would have 
to be cached so that closing and reopening the same path got the same object. 
But this is only good for one process. See below.

There are two existing issues, #8231 and #15862, about HOME not being writable 
and not existing.  The first has a patch I wrote 2 years ago trying to do what 
you suggest above.  It used tempfile.mkdtemp for 2.7 compatibility, by I would 
now use TemporaryDirectory. The discussion ended at that time with some 
unresolved issues.

One in particular is that IDLE runs with two processes, with the user execution 
process being based on run.py.  One of the idlelib modules imported by run 
eventually imports config. See msg253681 and msg253714.

The is already a mechanism for test_idle to tell idlelib module 'testing'.  If 
and when #8231 is solved, that mechanism could be used to ignore $HOME.

--
dependencies: +IDLE: startup problem when HOME does not exist, Unable to run 
IDLE without write-access to home directory

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30851] IDLE: configdialog -- fix tkinter Variables

2017-07-07 Thread Cheryl Sabella

Changes by Cheryl Sabella :


--
pull_requests: +2692

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 Save in the 
new issue.

2. The only specification for .save_all calls to .Save is the code itself, and 
I am not convinced it is correct.  I want to review before semi-freezing the 
code by testing that it does what it does.

Even if it is correct, it will will be tricky to test all paths.  For instance, 
save_all unconditionally call usermain.Save before looking at changes.  Then, 
if changes has changes for usermain, usermain.Save is called again.  To test 
that there are two saves, Func could easily be changed to increment .called 
instead of setting it to 1.

My guess for the double save is that ConfigDialog *might* write some changes 
directly to userCfg, so the unconditional save makes sure they are written.  
But why bypass?  If the dialog is cancelled, the 'unconditional' save will not 
happen, and any directly written changes might affect the current session, but 
might never be saved to disk.  That would seem like a bug.

I have similar questions about the unconditional save of highlights and keys.  
If all three files are always overwritten, why not push any changes to userCfg 
and then write all three without bothering about keeping check if there are 
additional changes?

I am leaving this until I/we have reviewed configdialog while writing tests.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 the 
> judgments I made when carefully reviewing all the OP's PR.  You are NOT the 
> sole arbiter of what goes into Python.

You asked my review and vetoing, and assigned this issue to me. I started 
reviewing, but when I finished it I found that the PR already is merged.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 arbiter 
of what goes into Python.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
https://github.com/python/cpython/commit/edc034221f878b437748cef0f05c782d8190499d


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2017-07-07 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
pull_requests: +2691

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
https://github.com/python/cpython/commit/349abd9e37dfdc077bc21f19e6ed2292c767f0e8


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 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 curio do, as they aren't mainstream. We
> need a (set of) *concrete* examples where this is needed.
>
> An analysis of how this is approached in another mainstream
> libraries/ecosystems like C#, Twisted, etc would also help.
>
> --
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: closed -> open

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 theme elements for both, as that was both easier and 
more in-line with what the rest of the IDLE settings were doing than trying to 
have a separate color-picker for them. The attached image is what it looks like.

What is left for me to do: add the configuration dialogs and proper setting 
saving for the remaining extensions/modules. Change help texts. Once the 
configdialog changes patch (#30779) goes through, I will of course, need to fix 
anything both touch, but that shouldn't be too difficult.

--
nosy: +wohlganger
Added file: http://bugs.python.org/file46996/2017-07-07 13_58_45-Settings.png

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 duration of the archive creation.

--
nosy: +Joey Harrington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 curio do, as they aren't mainstream. We need a (set 
of) *concrete* examples where this is needed.

An analysis of how this is approached in another mainstream 
libraries/ecosystems like C#, Twisted, etc would also help.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 an incorrect mental model that isn't easily fixed by an error message.

--
nosy: +rhettinger

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 thing we need to do is skip the test if readline version is older than 
6.0.

We discussed this with Nir on IRC, and he will send another PR to tweak the 
test.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 (test.test_readline.TestReadline)
--
Traceback (most recent call last):
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd9/build/Lib/test/test_readline.py", 
line 263, in test_history_size
self.assertEqual(len(lines), history_size)
AssertionError: 21 != 10

http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.x%203.x/builds/316/steps/test/logs/stdio

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 to see readline info from all builders, not only
for failed tests.

Maybe switch the failing test to run only on Linux for now?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 curio or trio will handle this scenario. My bet is on as
nodejs.

El 07/07/2017 17:06, "Guido van Rossum"  escribió:

>
> 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 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 expected to read
> > out the data, and then confirm reception and issue it's own
> > shutdown(SHUT_WR) so that remote gets the acknowledgement), then there
> > would be no question.
> >
> > --
> >
> > ___
> > Python tracker 
> > 
> > ___
> >
>
> --
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30872] Update curses docs to Python 3

2017-07-07 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +2686

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 some references and formatting.

--
assignee: docs@python
components: Documentation
messages: 297892
nosy: docs@python, r.david.murray, serhiy.storchaka, twouters
priority: normal
severity: normal
stage: patch review
status: open
title: Update curses docs to Python 3
type: enhancement
versions: Python 3.5, Python 3.6, Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 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 expected to read
> out the data, and then confirm reception and issue it's own
> shutdown(SHUT_WR) so that remote gets the acknowledgement), then there
> would be no question.
>
> --
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 runtime version: 0x502
readline library version: '5.2'
use libedit emulation? False


x86 Tiger 3.x, test_history_size() fails:

readline version: 0x501
readline runtime version: 0x501
readline library version: '5.1'
use libedit emulation? False

--

My Linux box, test_history_size() pass:

readline version: 0x603
readline runtime version: 0x603
readline library version: '6.3'
use libedit emulation? False

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 hash implementation is useful for unit tests on the hash 
function, I dislike always dumping it in the regrtest header.

The idea would be to get a phpinfo-like report:
http://php.net/phpinfo

We can start with an hardcoded list using "try: import xxx except ImportError: 
pass else: ...", but later we may it more "pluggable" somehow?

Maybe define a protocol (function with a specific name, maybe a private 
function?) for each module, add a command which can dump info on a single 
module, or all modules.

Maybe start with an hardcoded list of modules, but later discover automatically 
all stdlib modules?

I don't expect a regular list of information, but more like a long key-value 
list.

Attached pythoninfo.py is an example of such script. It works on Python 
2.7-3.7. Example of Python 3.7 output on my Linux PC:
---
cpu_count: 4
cwd: /home/haypo/prog/GIT/misc/python
filesystem_encoding: utf-8
filesystem_errors: surrogateescape
gdb_version: GNU gdb (GDB) Fedora 7.12.1-48.fc25
hash algorithm: ('siphash24', '64bit')
locale_encoding: UTF-8
platform: Linux-4.11.6-201.fc25.x86_64-x86_64-with-fedora-25-Twenty_Five
python_implementation: CPython
readline_library_version: 6.3
readline_runtime_version: 0x603
readline_version: 0x603
sys.byteorder: little
sys.flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, 
dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, 
verbose=0, bytes_warning=0, quiet=0, hash_randomization=1, isolated=0)
sys.maxsize: 9223372036854775807
sys.version: 3.7.0a0 (heads/testcapi_stack_pointer_master:81dd3fb, Jul  6 2017, 
13:10:36)  [GCC 6.3.1 20161221 (Red Hat 6.3.1-1)]
tcl_version: 8.6
---

Later, we may add a JSON output format, to allow to collect informations of all 
buildbots. For example, check all tested readline versions.

--
components: Tests
files: pythoninfo.py
messages: 297885
nosy: haypo
priority: normal
severity: normal
status: open
title: Add a "python info" command somewhere to dump versions of all 
dependencies
type: enhancement
versions: Python 3.7
Added file: http://bugs.python.org/file46994/pythoninfo.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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', 'fontchooser', 'show')

How it looks?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 by using 
Func().  It wasn't covering everything because I only added it for 'main'.  Do 
you think I should continue with that in #30868 or did you want to do it a 
different way?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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. versions in  
https://github.com/python/cpython/blob/fae8f4a9cb88a68eb14750cbb8ddf8740fd67b8b/Lib/test/libregrtest/main.py#L421

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

==
FAIL: test_history_size (test.test_readline.TestReadline)
--
Traceback (most recent call last):
  File "/Users/db3l/buildarea/3.x.bolen-tiger/build/Lib/test/test_readline.py", 
line 247, in test_history_size
self.assertEqual(len(lines), history_size)
AssertionError: 21 != 10

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 (test.test_readline.TestReadline)
--
Traceback (most recent call last):
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/test/test_readline.py",
 line 247, in test_history_size
self.assertEqual(len(lines), history_size)
AssertionError: 21 != 10

--
nosy: +haypo

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 of leaving the modified configuration.

If idle tests need a well defined configuration, I suggest to start by 
modifiying idlelib.config.idleConf to use a temporary directory, or mock the 
whole object.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 expected to read out the 
data, and then confirm reception and issue it's own shutdown(SHUT_WR) so that 
remote gets the acknowledgement), then there would be no question.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: variable ‘gettimeofday_res’ set but 
not used [-Wunused-but-set-variable]
   int gettimeofday_res;
   ^~~~

Since I didn't see it in time, I didn't try to fix this for 3.6.2 but it would 
be best to silence it going forward.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   >