[issue30729] Swap doesn't work in some circumstances

2017-06-21 Thread Hang Liao

New submission from Hang Liao:

Suppose I have two lists 
L1 = [1,3,2,4], L2 = [1,3,2,4]
L1[1], L1[2] = L1[2], L1[1]
This gives me L1 = [1,2,3,4]
However, if I write
L2[1], L2[L2[1] - 1] = L2[L2[1] - 1], L2[1]
This gives me back the same L2 = [1,3,2,4]
I am not sure if this is a mistake ... If it is what it intended to do please 
tell me.

--
components: macOS
messages: 296614
nosy: Ikaros, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: Swap doesn't work in some circumstances
type: behavior
versions: Python 3.5

___
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-06-21 Thread Louie Lu

Changes by Louie Lu :


--
nosy: +haypo

___
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-06-21 Thread Segev Finer

Changes by Segev Finer :


--
type:  -> compile error

___
Python tracker 

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



[issue30616] Cannot use functional API to create enum with zero values

2017-06-21 Thread Dong-hee Na

Changes by Dong-hee Na :


--
pull_requests: +2373

___
Python tracker 

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



[issue29366] os.listdir has inconsistent behavior when run on a non-directory

2017-06-21 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
resolution:  -> not a bug
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



[issue30728] IDLE: Modernize configdialog code.

2017-06-21 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I moved PR 2307 here.  I made trivial PR 2322 for the config_key typo.

Cheryl, how did you do the name changes?  Did you prepare a rename mapping or 
script that could be applied to other patch files?  If so, please upload.

If sensibly possible, I would like rename patches to start with a rename list 
that can be reviewed before making a patch.  For example, #24225 began with a 
patch first, followed by the list of renames in msg243572.  I rejected some of 
the renames as too mechanical and posted 
https://bugs.python.org/file42678/%40newnames.txt for review.  It would have 
saved me a couple of hours if the OP had done the same before making the patch.

--

___
Python tracker 

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



[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-21 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Thanks. That gives me something to work with.

--

___
Python tracker 

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



[issue8799] Hang in lib/test/test_threading.py

2017-06-21 Thread STINNER Victor

STINNER Victor added the comment:

The race condition is not dead, at least in Python 2.7 :-) I backported the 
change for bpo-30727: "[2.7] test_threading.ConditionTests.test_notify() hangs 
randomly on Python 2.7".

--

___
Python tracker 

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



[issue8799] Hang in lib/test/test_threading.py

2017-06-21 Thread STINNER Victor

STINNER Victor added the comment:


New changeset da6d305b6fcd49ba1224b1fd2131d7648a5be6b9 by Victor Stinner in 
branch '2.7':
bpo-8799: Reduce timing sensitivity of condition test by explicitly (#2320)
https://github.com/python/cpython/commit/da6d305b6fcd49ba1224b1fd2131d7648a5be6b9


--
nosy: +haypo

___
Python tracker 

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



[issue30541] Add restricted mocks to the python unittest mocking framework

2017-06-21 Thread STINNER Victor

STINNER Victor added the comment:

> I don't see what this buys over spec and autospec. I'd be inclined to close 
> it without a compelling use case beyond what is already supported.

I proposed to Mario to open an issue since I like his API. Even if "sealing" 
mocks is unlikely to be the most common case, when you need it, I prefer his 
API over the specs thing which reminds me bad time with mox. I prefer the 
declarative Python-like API, rather than Mock(spec=["method2"], 
**{"method2.return_value": 1}).

But yeah, technically specs and sealing seems similar. It's just another way to 
describe a mock. Since I prefer sealing, I would like to allow users to choose 
between specs and sealing.

--

___
Python tracker 

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



[issue27388] IDLE configdialog: reduce multiple references to Var names

2017-06-21 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
pull_requests:  -2354

___
Python tracker 

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



[issue27388] IDLE configdialog: reduce multiple references to Var names

2017-06-21 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I moved PR 2307 to a new issue, #30728 Modernize configdialog. My comment that 
internal Var names "can lowercased (PEP8) and otherwised changed" was 
anticipating such an issue.  The point for this issue was to contrast Var names 
with the cross-version config names that we must not change.

I don't expect anyone else to fully understand this without a couple of hours 
of code study.

Once #22115 was merged, I could have gone ahead.  Since I did not, I should now 
wait for at least part of PR 2307 and #30728 since the patch for this would 
break parts of the existing new patch.  I could work on a new test though.

--
dependencies: +Add new methods to trace Tkinter variables

___
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-06-21 Thread STINNER Victor

STINNER Victor added the comment:

If a test requires ctypes, please skip your test if ctypes is missing. The new 
test fails on the "x86 Ubuntu Shared 3.x" buildbot which lacks the _ctypes 
module (for an unknown reason, but does it really matter here? ;-)).

http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.x/builds/924/steps/test/logs/stdio

test test_code crashed -- Traceback (most recent call last):
  File 
"/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/test/libregrtest/runtest.py",
 line 156, in runtest_inner
the_module = importlib.import_module(abstest)
  File 
"/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/importlib/__init__.py", 
line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 978, in _gcd_import
  File "", line 961, in _find_and_load
  File "", line 950, in _find_and_load_unlocked
  File "", line 655, in _load_unlocked
  File "", line 679, in exec_module
  File "", line 205, in _call_with_frames_removed
  File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/test/test_code.py", 
line 218, in 
import ctypes
  File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/ctypes/__init__.py", 
line 7, in 
from _ctypes import Union, Structure, Array
ModuleNotFoundError: No module named '_ctypes'

--
resolution: fixed -> 
status: closed -> open

___
Python tracker 

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



[issue30727] [2.7] test_threading.ConditionTests.test_notify() hangs randomly on Python 2.7

2017-06-21 Thread STINNER Victor

STINNER Victor added the comment:

It's getting late here, so I chose to first backport the commit 
020af2a2bc4708215360a3793b5a1790e15d05dd to Python 2.7, to reduce the likehood 
of this bug on 2.7 buildbots.

--
pull_requests: +2372

___
Python tracker 

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



[issue8799] Hang in lib/test/test_threading.py

2017-06-21 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2371

___
Python tracker 

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



[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-21 Thread Charles Wohlganger

Charles Wohlganger added the comment:

There are two changes:
First - The flash-delay option is for how until the parens that are highlighted 
will stop highlighting. The flash-delay option for the ParenMatch only affects 
the 'default' style. Similarly the 'expressions' style does not use the 
flash-delay option and will not stop highlighting until input is given to IDLE. 
Desired behavior is for the flash-delay option to work for both styles, and 
setting flash-delay to 0 will cause the input required behavior that is 
currently only used by the 'expressions' style. 

I couldn't find anything in the test suite for testing the delay behavior 
specific to styles, only that the timer works in general, so I'm not sure how 
to test it other than just observing it. The test did not seem to cover if 
'default' style worked properly using the 'show surrounding parens' command. I 
have added that to all style tests.

Second - There is no style for highlighting the opening and closing parens. The 
new behavior is to write 'parens' (without ticks) for the style option, 
apply/ok the options, restart IDLE, and make a statement with parens, and it 
highlights both parens. 

The uploaded parenmatch test file covers the parens style, ensuring it works 
correctly.

--
Added file: http://bugs.python.org/file46967/test_parenmatch.py

___
Python tracker 

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



[issue30727] [2.7] test_threading.ConditionTests.test_notify() hangs randomly on Python 2.7

2017-06-21 Thread STINNER Victor

STINNER Victor added the comment:

The bug occurs when notify(n) is called while less than n threads are waiting 
in cond.wait(): when some threads didn't reach cond.wait() yet. The 
synchronization code is very fragile and depends on time. The issue was worked 
again in the master banch by adding more _wait() calls...

To really fix the race condition, reliable synchronization primitives should be 
used, like threading.Event.

--

___
Python tracker 

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



[issue30728] IDLE: Modernize configdialog code.

2017-06-21 Thread Cheryl Sabella

Changes by Cheryl Sabella :


--
pull_requests: +2370

___
Python tracker 

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



[issue30728] IDLE: Modernize configdialog code.

2017-06-21 Thread Terry J. Reedy

New submission from Terry J. Reedy:

Depending on the file, modernizing includes:
* Add docstrings.
* Change non-class names with caps to PEP8 no-caps names;
  this often means, for example, changing embedded 'A' to '_a'.
* Make most comments be sentences, like this sentence.  
* Review and possibly change overly cryptic existing PEP8 names.
* Switch to ttk widgets and revise imports; 'from tkinter import *'
  becomes 'from tkinter(.ttk) import item1, item2, ...';
  use (...\n...) for multiple lines.
* Split a toplevel class into a window class and a frame class.
* Use modern code idioms and features up to current maintenance version.
* Add tests, which are essential for checking correctness of above.

For a large file like configdialog.py, I would like a separate PR or even issue 
for each item above.  Of necessity, name changes must be done  in 
test_configdialog.py, and it should be included in most patches for this issue. 
 For some files, other consumers will also need patching. I don't think that 
modules other than test_configdialog access much of anything beside 
ConfigDialog, which name we are not presently changing. 

Cheryl's original patch for this issue combined conversion to pep8 names, 
revision of pep8 names (including existing #28523 'colour' to 'color'), and tkk 
and import conversion (and an unrelated typo correction in another file).  
Louie suggested adding comment revisions.  At this point, I decided that this 
would be too much for one patch and that I would prefer more numerous patches 
that would be easier to review and test.  (Louie's comments should be the basis 
for a separate PR.) Issue 28523 can be made a dependency of this issue and 
expanded to other name revisions.

The order of changes is somewhat arbitrary, except that docstrings and comments 
do not need tests, and can be helpful for writing tests.  Tests of some type 
are otherwise needed for the other steps.  This presents a problem when code 
changes are needed to write tests. What is true is that each patch needs to 
apply to the current file, and once applied, should be backported immediately.  
(Out of order backports can 'work' but produce a wrong result.  This happened 
already.)

The problem of multiple patches to the same file possibly breaking each other 
includes exist patches on the tracker.  When we changed textview, there were no 
outstanding patches that I know of.  For help_about, there is an existing 
patch, but I did not want to apply it completely as is.  Pieces of it will have 
to be adapted as needed.  For config_key, there are at least 2 patches that may 
be ready-to-go or close to it.  So I want to test those before writing 
additional patches to modernize config_key.

I will review current config-dialog issues to see which have patches and which 
might be quick to apply.

--
messages: 296603
nosy: csabella, louielu, terry.reedy
priority: normal
severity: normal
stage: test needed
status: open
title: IDLE: Modernize configdialog code.
type: enhancement
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



[issue5680] Command-line arguments when running in IDLE

2017-06-21 Thread veganaiZe

veganaiZe added the comment:

I've created a simple work-around for those who don't want to wait for the next 
release(s) of IDLE.  It's available on SO:

https://stackoverflow.com/a/44687632/5039027

--

___
Python tracker 

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



[issue30727] [2.7] test_threading.ConditionTests.test_notify() hangs randomly on Python 2.7

2017-06-21 Thread STINNER Victor

STINNER Victor added the comment:

See also bpo-8799 "Hang in lib/test/test_threading.py" and the commit 
020af2a2bc4708215360a3793b5a1790e15d05dd which added two _wait() calls to 
ConditionTests._check_notify().

--

___
Python tracker 

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



[issue30541] Add restricted mocks to the python unittest mocking framework

2017-06-21 Thread Michael Foord

Michael Foord added the comment:

I don't see what this buys over spec and autospec. I'd be inclined to close it 
without a compelling use case beyond what is already supported.

--

___
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-06-21 Thread Yury Selivanov

Yury Selivanov added the comment:

Closing the issue. Thank you Dino for working on this!

--
resolution:  -> fixed
stage: backport 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



[issue30727] [2.7] test_threading.ConditionTests.test_notify() hangs randomly on Python 2.7

2017-06-21 Thread STINNER Victor

STINNER Victor added the comment:

notify_bug.py: script close totest.test_threading.ConditionTests.test_notify() 
but different:

* _wait() sleeps 1 nanosecond rather than 10 ms
* log many messages into stdout (file descriptor 1) using os.write()

It's quite easy to reproduce the bug with this script.

--
Added file: http://bugs.python.org/file46966/notify_bug.py

___
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-06-21 Thread Yury Selivanov

Yury Selivanov added the comment:

It doesn't need to be, it's only for 3.6

--

___
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-06-21 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:

PR 2152 is not yet ported to master.

--

___
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-06-21 Thread Brett Cannon

Brett Cannon added the comment:

Should this be closed since the all PRs got merged?

--

___
Python tracker 

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



[issue30727] [2.7] test_threading.ConditionTests.test_notify() hangs randomly on Python 2.7

2017-06-21 Thread STINNER Victor

Changes by STINNER Victor :


--
title: [2.7] test_threading.ConditionTests.test_notify() hangs randomly on 
FreeBSD on Python 2.7 -> [2.7] test_threading.ConditionTests.test_notify() 
hangs randomly on Python 2.7

___
Python tracker 

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



[issue30727] [2.7] test_threading.ConditionTests.test_notify() hangs randomly on FreeBSD on Python 2.7

2017-06-21 Thread STINNER Victor

STINNER Victor added the comment:

Oh, I reproduced the bug on Linux as well by running "./python -m test -F -m 
test.test_threading.ConditionTests.test_notify -v test_threading" 6 times in 
different terminals: the test hangs in two terminal after 2508 and 2262 runs.

--

___
Python tracker 

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



[issue30727] [2.7] test_threading.ConditionTests.test_notify() hangs randomly on FreeBSD on Python 2.7

2017-06-21 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +pitrou, serhiy.storchaka

___
Python tracker 

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



[issue30727] [2.7] test_threading.ConditionTests.test_notify() hangs randomly on FreeBSD on Python 2.7

2017-06-21 Thread STINNER Victor

STINNER Victor added the comment:

test.test_threading.ConditionTests.test_notify() tests the threading._Condition.

threading._Condition uses internally a threading._RLock.

threading._RLock uses an internal lock created with thread.allocate_lock().

thread.allocate_lock() calls internally PyThread_allocate_lock(). On my Linux 
(Fedora 25) and FreeBSD (FreeBSD 11 VM) machines, PyThread_allocate_lock() 
calls sem_init(): POSIX pthread semaphores.

In Python 3, RLock was implemented in C for speed (the new Python 3.0 io module 
was slow because of RLock performance): see bpo-3001.

I know at least one race condition in Python 2.7 RLock: bpo-13697, RLock bug 
with signals.

--

___
Python tracker 

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



[issue23451] Deprecation warnings building 3.5 Visual Studio Windows 8.1 64 bit

2017-06-21 Thread Mark Lawrence

Changes by Mark Lawrence :


--
nosy:  -BreamoreBoy

___
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-06-21 Thread Segev Finer

Changes by Segev Finer :


--
pull_requests: +2369

___
Python tracker 

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



[issue30351] regrtest hangs on x86 Windows XP 2.7

2017-06-21 Thread STINNER Victor

STINNER Victor added the comment:

I created bpo-30727: "[2.7] test_threading.ConditionTests.test_notify() hangs 
randomly on FreeBSD on Python 2.7".

--

___
Python tracker 

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



[issue30351] [2.7] regrtest hangs on Python 2.7 (test_threading?)

2017-06-21 Thread STINNER Victor

Changes by STINNER Victor :


--
title: regrtest hangs on x86 Windows XP 2.7 -> [2.7] regrtest hangs on Python 
2.7 (test_threading?)

___
Python tracker 

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



[issue30727] [2.7] test_threading.ConditionTests.test_notify() hangs randomly on FreeBSD on Python 2.7

2017-06-21 Thread STINNER Victor

New submission from STINNER Victor:

Example where the test hangs after at the 48th run:

[haypo@freebsd ~/prog/python/2.7]$ ./python -m test -F -m 
test.test_threading.ConditionTests.test_notify -v test_threading 
(...)
0:00:10 [ 47] test_threading
test_notify (test.test_threading.ConditionTests) ... ok
(...)
0:00:10 [ 48] test_threading
test_notify (test.test_threading.ConditionTests) ... 


It looks like a timing issue / race condition since the likehood of the bug 
seems to depend on the system load.

Traceback using my watchdog:
https://github.com/python/cpython/pull/2317

---
0:00:57 [285] test_threading
test_notify (test.test_threading.ConditionTests) ... *** STACKTRACE - START ***
# ThreadID: 34391913984
File: "/usr/home/haypo/prog/python/2.7/Lib/test/lock_tests.py", line 37, in task
  f()
File: "/usr/home/haypo/prog/python/2.7/Lib/test/lock_tests.py", line 360, in f
  cond.wait()
File: "/usr/home/haypo/prog/python/2.7/Lib/threading.py", line 340, in wait
  waiter.acquire()

# ThreadID: 34392086528
File: "/usr/home/haypo/prog/python/2.7/Lib/test/lock_tests.py", line 37, in task
  f()
File: "/usr/home/haypo/prog/python/2.7/Lib/test/lock_tests.py", line 360, in f
  cond.wait()
File: "/usr/home/haypo/prog/python/2.7/Lib/threading.py", line 340, in wait
  waiter.acquire()

# ThreadID: 34384994304
File: "/usr/home/haypo/prog/python/2.7/Lib/runpy.py", line 174, in 
_run_module_as_main
  "__main__", fname, loader, pkg_name)
File: "/usr/home/haypo/prog/python/2.7/Lib/runpy.py", line 72, in _run_code
  exec code in run_globals
File: "/usr/home/haypo/prog/python/2.7/Lib/test/__main__.py", line 3, in 

  regrtest.main_in_temp_cwd()
File: "/usr/home/haypo/prog/python/2.7/Lib/test/regrtest.py", line 2030, in 
main_in_temp_cwd
  main()
File: "/usr/home/haypo/prog/python/2.7/Lib/test/regrtest.py", line 812, in main
  result = local_runtest()
File: "/usr/home/haypo/prog/python/2.7/Lib/test/regrtest.py", line 798, in 
local_runtest
  testdir=testdir)
File: "/usr/home/haypo/prog/python/2.7/Lib/test/regrtest.py", line 1007, in 
runtest
  return runtest_inner(test, verbose, quiet, huntrleaks, pgo, testdir)
File: "/usr/home/haypo/prog/python/2.7/Lib/test/regrtest.py", line 1196, in 
runtest_inner
  indirect_test()
File: "/usr/home/haypo/prog/python/2.7/Lib/test/test_threading.py", line 929, 
in test_main
  ThreadingExceptionTests,
File: "/usr/home/haypo/prog/python/2.7/Lib/test/support/__init__.py", line 
1571, in run_unittest
  _run_suite(suite)
File: "/usr/home/haypo/prog/python/2.7/Lib/test/support/__init__.py", line 
1530, in _run_suite
  result = runner.run(suite)
File: "/usr/home/haypo/prog/python/2.7/Lib/unittest/runner.py", line 151, in run
  test(result)
File: "/usr/home/haypo/prog/python/2.7/Lib/unittest/suite.py", line 70, in 
__call__
  return self.run(*args, **kwds)
File: "/usr/home/haypo/prog/python/2.7/Lib/unittest/suite.py", line 108, in run
  test(result)
File: "/usr/home/haypo/prog/python/2.7/Lib/unittest/suite.py", line 70, in 
__call__
  return self.run(*args, **kwds)
File: "/usr/home/haypo/prog/python/2.7/Lib/unittest/suite.py", line 108, in run
  test(result)
File: "/usr/home/haypo/prog/python/2.7/Lib/unittest/case.py", line 393, in 
__call__
  return self.run(*args, **kwds)
File: "/usr/home/haypo/prog/python/2.7/Lib/unittest/case.py", line 329, in run
  testMethod()
File: "/usr/home/haypo/prog/python/2.7/Lib/test/lock_tests.py", line 401, in 
test_notify
  self._check_notify(cond)
File: "/usr/home/haypo/prog/python/2.7/Lib/test/lock_tests.py", line 384, in 
_check_notify
  _wait()
File: "/usr/home/haypo/prog/python/2.7/Lib/test/lock_tests.py", line 16, in 
_wait
  time.sleep(0.01)

# ThreadID: 34384996864
File: "/usr/home/haypo/prog/python/2.7/Lib/threading.py", line 774, in 
__bootstrap
  self.__bootstrap_inner()
File: "/usr/home/haypo/prog/python/2.7/Lib/threading.py", line 801, in 
__bootstrap_inner
  self.run()
File: "/usr/home/haypo/prog/python/2.7/Lib/test/regrtest.py", line 1971, in run
  self.dump_threads()
File: "/usr/home/haypo/prog/python/2.7/Lib/test/regrtest.py", line 1997, in 
dump_threads
  self.dump_thread(stack)

# ThreadID: 34392083968
File: "/usr/home/haypo/prog/python/2.7/Lib/test/lock_tests.py", line 37, in task
  f()
File: "/usr/home/haypo/prog/python/2.7/Lib/test/lock_tests.py", line 360, in f
  cond.wait()
File: "/usr/home/haypo/prog/python/2.7/Lib/threading.py", line 340, in wait
  waiter.acquire()

# ThreadID: 34392080128
File: "/usr/home/haypo/prog/python/2.7/Lib/test/lock_tests.py", line 37, in task
  f()
File: "/usr/home/haypo/prog/python/2.7/Lib/test/lock_tests.py", line 360, in f
  cond.wait()
File: "/usr/home/haypo/prog/python/2.7/Lib/threading.py", line 340, in wait
  waiter.acquire()

*** STACKTRACE - END ***
---

--
components: Tests
messages: 296591
nosy: haypo
priority: normal
severity: normal
status: open
title: [2.7] test_threading.ConditionTests.test_notify() hangs randomly on 
FreeBSD on Python 2.7
versions: Python 2.7


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

2017-06-21 Thread Segev Finer

New submission from Segev Finer:

We are getting:

Warning C4005   'HAVE_MEMMOVE': macro redefinition  _elementtree
c:\users\segev\prj\python\cpython\modules\expat\winconfig.h 34  
Warning C4267   '=': conversion from 'size_t' to 'unsigned char', possible loss 
of data _elementtree
c:\users\segev\prj\python\cpython\modules\expat\siphash.h   316 
Warning C4996   'getenv': This function or variable may be unsafe. Consider 
using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. 
See online help for details.  _elementtree
C:\Users\Segev\prj\python\cpython\Modules\expat\xmlparse.c  796 
Warning C4005   'HAVE_MEMMOVE': macro redefinition  _elementtree
c:\users\segev\prj\python\cpython\modules\expat\winconfig.h 34  
Warning C4005   'HAVE_MEMMOVE': macro redefinition  _elementtree
c:\users\segev\prj\python\cpython\modules\expat\winconfig.h 34

And in 64-bit:

c:\users\segev\prj\python\cpython\modules\expat\siphash.h(201): warning C4244: 
'initializing': conversion from '__int64' to 'char', possible loss of data

I'm not sure how many Python versions this affects.

--
components: Extension Modules, Windows
messages: 296590
nosy: Segev Finer, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: [Windows] Warnings in elementtree due to new expat
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



[issue30541] Add restricted mocks to the python unittest mocking framework

2017-06-21 Thread Mario Corchero

Mario Corchero added the comment:

Whilst I agree that using spec can be used for a similar purpose and I did not 
know about being able to do nested definitions via the arguments (the 
**{"method1.return_value": 1}, really cool!) I find the idea of allowing users 
to halt the mock generation really useful. It is much less disruptive and feels 
more natural.

Compare:
>>> inner_m = Mock(spec=["method2"], **{"method2.return_value": 1})
>>> m = Mock(spec=["method1"], **{"method1.return_value": inner_m})

with: 
>>> m = mock.Mock()
>>> m.method1().method2() = 1
>>> mock.seal(m)


In brief, seal allows users to just add the method to their existing workflow 
where they use generic mocks. Moreover, it is extremely user friendly, many of 
the developers that struggle with the mocking module found seal really helpful.

--

___
Python tracker 

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



[issue23451] Deprecation warnings building 3.5 Visual Studio Windows 8.1 64 bit

2017-06-21 Thread Segev Finer

Changes by Segev Finer :


--
pull_requests: +2368

___
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-06-21 Thread Yury Selivanov

Yury Selivanov added the comment:


New changeset f3cffd2b7879d209f982de899b782fb89cfc410a by Yury Selivanov (Dino 
Viehland) in branch 'master':
bpo-30604: clean up co_extra support (#2144)
https://github.com/python/cpython/commit/f3cffd2b7879d209f982de899b782fb89cfc410a


--

___
Python tracker 

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



[issue30351] regrtest hangs on x86 Windows XP 2.7

2017-06-21 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2367

___
Python tracker 

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



[issue30532] email.policy.SMTP.fold() mangles long headers

2017-06-21 Thread Joel Hillacre

Joel Hillacre added the comment:

> Ping the issue again next week if I don't get to it this weekend.

I am a week late, but here is a ping.

--

___
Python tracker 

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



[issue30351] regrtest hangs on x86 Windows XP 2.7

2017-06-21 Thread STINNER Victor

STINNER Victor added the comment:

http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.x%20Shared%202.7/builds/129/steps/test/logs/stdio

...
0:06:35 [402/404] test_signal passed (46 sec) -- running: test_lib2to3 (63 
sec), test_threading (395 sec)
0:07:01 [403/404] test_lib2to3 passed (89 sec) -- running: test_threading (422 
sec)
[33834 refs]

command timed out: 1200 seconds without output running ['make', 'buildbottest', 
'TESTOPTS=-j2 -j4', 'TESTPYTHONOPTS=', 'TESTTIMEOUT=900'], attempting to kill
process killed by signal 9
program finished with exit code -1
elapsedTime=1622.640079

--

___
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-06-21 Thread STINNER Victor

STINNER Victor added the comment:

Jeremy Kloth added the comment:
> Just a note with the PR, the changes to PCbuild\pyexpat.vcxproj and
> PCbuild\_elementtree.vcxproj should probably be merged forward as
> well.

PR 2310. Yes, I agree. Can you please propose patches for master, and
then 3.6 and 3.5, please?

--

___
Python tracker 

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



[issue30351] regrtest hangs on x86 Windows XP 2.7

2017-06-21 Thread STINNER Victor

STINNER Victor added the comment:

http://buildbot.python.org/all/builders/x86%20Windows%20XP%20VS9.0%202.7/builds/203/steps/test/logs/stdio

...

0:18:49 [401/404] test_zipimport passed -- running: test_threading (158 sec)
0:18:52 [402/404] test_zipimport_support passed -- running: test_threading (161 
sec)
d:\cygwin\home\db3l\buildarea\2.7.bolen-windowsvs9\build\lib\test\support\__init__.py:803:
 RuntimeWarning: tests may fail, unable to create temp dir: 
d:\cygwin\home\db3l\buildarea\2.7.bolen-windowsvs9\build\build\test_python_3408
  with temp_dir(path=name, quiet=quiet) as temp_path:
0:19:03 [403/404] test_zlib passed -- running: test_threading (172 sec)
d:\cygwin\home\db3l\buildarea\2.7.bolen-windowsvs9\build\lib\test\support\__init__.py:803:
 RuntimeWarning: tests may fail, unable to create temp dir: 
d:\cygwin\home\db3l\buildarea\2.7.bolen-windowsvs9\build\build\test_python_4072
  with temp_dir(path=name, quiet=quiet) as temp_path:

command timed out: 1200 seconds without output running ['PC\\VS9.0\\rt.bat', 
'-q', '-d', '-j2'], attempting to kill
program finished with exit code 1
elapsedTime=2347.382000

--

___
Python tracker 

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



[issue30716] Failing tests with installed 3.6.2rc1 on Win 10-64

2017-06-21 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Steve, what should I do to answer you line-ending question, or do you still 
need the info?

Victor Stinner reopened #27425, which was about the exact same line-ending 
failures.

--

___
Python tracker 

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



[issue29212] Python 3.6 logging thread name regression with concurrent.future threads

2017-06-21 Thread desbma

desbma added the comment:

Thank you Gregory for the insight and new patch.

Can this be merged in the 3.6 branch as well (targeting the 3.6.3 release)?

--

___
Python tracker 

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



[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-21 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Hi Charles. Welcome to CPython development and its issue tracker.  Everyone 
starts 'new at this'.

Can you please describe, in detail, a simple, minimal example of how to invoke 
the existing behavior that you want to change, then what change you want to 
see.  Behavior change patches should be accompanied by a test that fails before 
the patch and passes after it is applies.  Such a description is the basis for 
a new test.

The test for idlelib.parenmatch is in idlelib.idle_test.test_parenmatch.  Can 
you see if you can make sense of the existing tests and if you have any idea 
how to add a new one?

--

___
Python tracker 

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



[issue29981] Update Index for set, dict, and generator 'comprehensions'

2017-06-21 Thread R. David Murray

R. David Murray added the comment:

On the PR Berker wrote:

   I'm wondering if we should still advertise the use of set([...]). We 
replaced all instances of it with set literals in the stdlib.

set([...]) is part of the language, and the python documentation is also a 
specification of the language, so I think the reference *must* stay.

--
nosy: +r.david.murray

___
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-06-21 Thread Jeremy Kloth

Jeremy Kloth added the comment:

Just a note with the PR, the changes to PCbuild\pyexpat.vcxproj and
PCbuild\_elementtree.vcxproj should probably be merged forward as
well.

On Wed, Jun 21, 2017 at 1:14 PM, STINNER Victor  wrote:
>
> STINNER Victor added the comment:
>
>
> New changeset ab3b0ade505ce07a3d5ec4fbc991a154242732e6 by Victor Stinner 
> (Jeremy Kloth) in branch '2.7':
> bpo-29591: Update VS project files (#2310)
> https://github.com/python/cpython/commit/ab3b0ade505ce07a3d5ec4fbc991a154242732e6
>
>
> --
>
> ___
> Python tracker 
> 
> ___

--
nosy: +jeremy.kloth

___
Python tracker 

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



[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-21 Thread Charles Wohlganger

Changes by Charles Wohlganger :


--
pull_requests: +2366

___
Python tracker 

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



[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-21 Thread Terry J. Reedy

Terry J. Reedy added the comment:

On bugs.python.org tracker a number prefixed by '#' refers an issue number on 
this tracker.  On the other hand, PR2306 or PR 2306 should do what you meant.

https://docs.python.org/devguide/triaging.html#generating-special-links-in-a-comment

In a pull request, bpo-30723 should refer back to this issue, at least in a 
title.

--
stage:  -> test needed

___
Python tracker 

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



[issue30549] ProcessPoolExecutor hangs forever if the object raises on __getstate__

2017-06-21 Thread Grzegorz Grzywacz

Grzegorz Grzywacz added the comment:

This is already reported and patch was proposed. Here: #30006

--
nosy: +grzgrzgrz3

___
Python tracker 

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



[issue25684] ttk.OptionMenu radiobuttons aren't unique between two instances of OptionMenu

2017-06-21 Thread Cheryl Sabella

Cheryl Sabella added the comment:

I've now added unittests for this change.

--
nosy: +gpolo

___
Python tracker 

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



[issue30725] Windows installer for 2.7.13 doesn't install pip when installing to C:\Program Files

2017-06-21 Thread Steve Dower

Steve Dower added the comment:

I wonder if the custom action to run _ensurepip isn't running as admin... that 
would be the only thing I can think of.

Can you try running the installer with:

  msiexec /l*vx log.txt /i path_to.msi

Then attach the generated log.txt file? We might be able to see what's 
happening better with that.

--

___
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-06-21 Thread STINNER Victor

STINNER Victor added the comment:


New changeset ab3b0ade505ce07a3d5ec4fbc991a154242732e6 by Victor Stinner 
(Jeremy Kloth) in branch '2.7':
bpo-29591: Update VS project files (#2310)
https://github.com/python/cpython/commit/ab3b0ade505ce07a3d5ec4fbc991a154242732e6


--

___
Python tracker 

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



[issue30541] Add restricted mocks to the python unittest mocking framework

2017-06-21 Thread Grzegorz Grzywacz

Grzegorz Grzywacz added the comment:

Existing mock implementation already has that feature. Mock attributes can be 
limited with `spec` attribute.


>>> inner_m = Mock(spec=["method2"], **{"method2.return_value": 1})
>>> m = Mock(spec=["method1"], **{"method1.return_value": inner_m})
>>> 
>>> m.method1().method2()
1
>>> 
>>> m.method1().attr
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python3.5/unittest/mock.py", line 580, in __getattr__
raise AttributeError("Mock object has no attribute %r" % name)
AttributeError: Mock object has no attribute 'attr'

--
nosy: +grzgrzgrz3

___
Python tracker 

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



[issue29212] Python 3.6 logging thread name regression with concurrent.future threads

2017-06-21 Thread Gregory P. Smith

Changes by Gregory P. Smith :


--
pull_requests: +2365

___
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-06-21 Thread STINNER Victor

STINNER Victor added the comment:


New changeset c90e96015085784df86632b26059b19c80cbfc97 by Victor Stinner 
(haney) in branch 'master':
bpo-30183: Fixes HP-UX cc compilation error in pytime.c (#1351)
https://github.com/python/cpython/commit/c90e96015085784df86632b26059b19c80cbfc97


--

___
Python tracker 

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



[issue30725] Windows installer for 2.7.13 doesn't install pip when installing to C:\Program Files

2017-06-21 Thread Kevin Keating

New submission from Kevin Keating:

If I use the Python 64-bit 2.7.13 Windows installer and install to C:\Program 
Files\Python27, then the Scripts folder doesn't get created and pip doesn't get 
installed.  If I uninstall Python and reinstall it to C:\Python27, 
C:\Programs\Python27, or "C:\Path with spaces\Python27", then the Scripts 
folder is created and pip works correctly.  If I install Python 2.7.12 using 
https://www.python.org/ftp/python/2.7.12/python-2.7.12.amd64.msi or Python 
3.6.1 using https://www.python.org/ftp/python/3.6.1/python-3.6.1-amd64.exe, 
then I don't experience this issue.  This issue does happen if I install to 
C:\PROGRA~1\Python27, which is the 8.3 filename equivalent of C:\Program 
Files\Python27.  I've seen this on a handful of Windows 10 computers so far.  I 
haven't tried other versions of Windows or the 32-bit installers.


Steps to reproduce:
- Download the Python installer from 
https://www.python.org/ftp/python/2.7.13/python-2.7.13.amd64.msi and run it.
- Select "Install for all users" and click Next.
- Enter C:\Program Files\Python27 as the installation folder and click Next.
- Click on "Register Extensions" and select "Entire feature will be 
unavailable".  (I don't know if this step is required, but it's what I've been 
doing to test.)  Click Next.
- Click Yes at the UAC prompt.
- Wait for installation to finish.

Expected results:
The "C:\Program Files\Python27\Scripts" and "C:\Program 
Files\Python27\Lib\site-packages\pip" folders should get created during the 
installation.

Actual results:
Neither of the folders exist.

--
components: Installation, Windows
messages: 296571
nosy: KevKeating, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Windows installer for 2.7.13 doesn't install pip when installing to 
C:\Program Files
versions: Python 2.7

___
Python tracker 

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



[issue27620] IDLE: Add keyboard equivalents for mouse actions.

2017-06-21 Thread Terry J. Reedy

Terry J. Reedy added the comment:

ConfigDialgo.__init__ has commented out key bindings for the buttons, including 
Esc for [Cancel].  We should establish 'IDLE Dialog Conventions', document (add 
to README.txt?), and follow consistently.
 
#27621 is about polishing Query box behavior.  It should be generalized to 
other boxes.

--

___
Python tracker 

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



[issue30616] Cannot use functional API to create enum with zero values

2017-06-21 Thread Ethan Furman

Ethan Furman added the comment:

3.7 fixed, now need 3.6.

--
stage: test needed -> backport needed

___
Python tracker 

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



[issue29212] Python 3.6 logging thread name regression with concurrent.future threads

2017-06-21 Thread Gregory P. Smith

Gregory P. Smith added the comment:

agreed the repr(self) name being surfaced is a regression even if technically 
"correct".

your patch makes sense, but i think a nicer variant of it will be to name the 
thread ("Executor_" + str(num_threads)) when no thread_name_prefix is supplied.

--
assignee:  -> gregory.p.smith

___
Python tracker 

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



[issue30716] Failing tests with installed 3.6.2rc1 on Win 10-64

2017-06-21 Thread Steve Dower

Changes by Steve Dower :


--
nosy: +haypo

___
Python tracker 

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



[issue30616] Cannot use functional API to create enum with zero values

2017-06-21 Thread Ethan Furman

Ethan Furman added the comment:


New changeset dcc8ce44c74492670e6bfbde588a2acbf8f365e0 by ethanfurman (Dong-hee 
Na) in branch 'master':
bpo-30616: Functional API of enum allows to create empty enums. (#2304)
https://github.com/python/cpython/commit/dcc8ce44c74492670e6bfbde588a2acbf8f365e0


--

___
Python tracker 

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



[issue30716] Failing tests with installed 3.6.2rc1 on Win 10-64

2017-06-21 Thread Steve Dower

Steve Dower added the comment:

For the next build, test_codecencodings_iso2022, test_random, test_sax and 
test_tools should all pass, as the .gitattributes file excludes those files 
from conversion. I'm still in favour of hardening the tests.

test_pcbuild_rc should be skipped. I don't think this test breaking in an 
install is a release blocking issue.

Up to Ned whether we want to fix these tests before 3.6.2. They may affect 
users who build from the sdist and do a repo-wide line ending conversion (or 
fork into another repo that does different line ending correction - I know at 
least two of those exist).

--

___
Python tracker 

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



[issue30716] Failing tests with installed 3.6.2rc1 on Win 10-64

2017-06-21 Thread Steve Dower

Changes by Steve Dower :


--
priority: release blocker -> normal

___
Python tracker 

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



[issue30716] Failing tests with installed 3.6.2rc1 on Win 10-64

2017-06-21 Thread Steve Dower

Steve Dower added the comment:

So the pickle issues were because the .gitattributes file changed multiple 
times since the last release but the files were not modified, so git did not 
fix them in my build repo. This should cover random and 2to3.

Most of the stdlib is correct CRLF.

XML should be immune to LF/CRLF differences, so we should harden the test (or 
the library?) against those.

IMO, we should also harden the multibyte tests against newline differences. 
When they read the test data with 'rb' they can also .replace(b'\r\n', b'\n') - 
it's totally external to the tests.

test_pcbuild_rt should fail in an install (or better yet, be skipped - we don't 
ship rt.bat).

--

___
Python tracker 

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



[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-21 Thread Charles Wohlganger

Changes by Charles Wohlganger :


--
pull_requests: +2363

___
Python tracker 

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



[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-21 Thread Charles Wohlganger

Changes by Charles Wohlganger :


--
pull_requests:  -2362

___
Python tracker 

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



[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-21 Thread Charles Wohlganger

Changes by Charles Wohlganger :


--
pull_requests: +2362

___
Python tracker 

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



[issue30724] ZipFile.open treats directory path as empty file

2017-06-21 Thread Kit Yan Choi

New submission from Kit Yan Choi:

Given a zipfile with the following content:

subdir/
file1.txt
subdir/file2.txt

>>> archive = ZipFile(file_path, "r")
>>> f = archive.open("subdir/", "r")
>>>f.read()
b''

It is quite odd that the subdirectory can be opened as if it was an empty file. 
 One would expect it to raise.

One use case is that the archive is created using shutil.make_archive, which 
includes the subdirectory paths in the namelist.  Upon looping 
ZipFile.namelist(), you end up opening a subdirectory and getting the empty 
content, which should have led to error and prompted the developers to filter 
the namelist first.

--
messages: 296564
nosy: Kit Yan Choi
priority: normal
severity: normal
status: open
title: ZipFile.open treats directory path as empty file
type: behavior
versions: Python 2.7, Python 3.3, Python 3.4, Python 3.5

___
Python tracker 

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



[issue30709] Bad getter from Descriptor#Properties example

2017-06-21 Thread Mariatta Wijaya

Changes by Mariatta Wijaya :


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



[issue6739] IDLE: refuse invalid key bindings

2017-06-21 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I believe patch for #21519 affects area of file patched here.

--

___
Python tracker 

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



[issue21519] IDLE : Bug in keybinding validity check

2017-06-21 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I believe patch affects same area of file as patch for #6739.

--

___
Python tracker 

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



[issue30368] [2.7] OpenSSL compilation fails on AMD64 Windows7 SP1 VS9.0 2.7

2017-06-21 Thread STINNER Victor

STINNER Victor added the comment:

Oh cool, with my commit 2ada64d2a073f85f135461833952dbe8d656810d "[2.7] 
bpo-30694: Upgrade Modules/expat/ to libexpat 2.2.1 (#2300)", and obvious 
Jeremy's previous fix!, the compile step of "AMD64 Windows7 SP1 VS9.0 2.7" 
succeeded for the first time since a long time!

--

___
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-06-21 Thread STINNER Victor

STINNER Victor added the comment:

I will wait for 2.7, 3.5, 3.6 and master buildbots before backporting the 
change to 3.3 and 3.4.

--

___
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-06-21 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 2ada64d2a073f85f135461833952dbe8d656810d by Victor Stinner in 
branch '2.7':
[2.7] bpo-30694: Upgrade Modules/expat/ to libexpat 2.2.1 (#2300) (#2312)
https://github.com/python/cpython/commit/2ada64d2a073f85f135461833952dbe8d656810d


--

___
Python tracker 

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



[issue30711] getaddrinfo invalid port number

2017-06-21 Thread Radek Smejkal

Changes by Radek Smejkal :


--
components: +Extension Modules -Library (Lib)
keywords: +patch
Added file: http://bugs.python.org/file46965/getaddrinfo_invalid_port.patch

___
Python tracker 

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



[issue30716] Failing tests with installed 3.6.2rc1 on Win 10-64

2017-06-21 Thread Steve Dower

Steve Dower added the comment:

To clarify (because I never trust test output for this), your install has \n 
line endings everywhere instead of \r\n?

--

___
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-06-21 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 91d171be45942d37a973b0675521b5159a96be31 by Victor Stinner in 
branch '3.5':
bpo-30694: Upgrade Modules/expat/ to libexpat 2.2.1 (#2300) (#2314)
https://github.com/python/cpython/commit/91d171be45942d37a973b0675521b5159a96be31


--

___
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-06-21 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 4a66524006852fc982aebafa277f2c043d9ad149 by Victor Stinner in 
branch '3.6':
bpo-30694: Upgrade Modules/expat/ to libexpat 2.2.1 (#2300) (#2313)
https://github.com/python/cpython/commit/4a66524006852fc982aebafa277f2c043d9ad149


--

___
Python tracker 

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



[issue29212] Python 3.6 logging thread name regression with concurrent.future threads

2017-06-21 Thread desbma

desbma added the comment:

Ping.

I think any change, included Inada Naoki's idea above is better that the 
current behavior that pollutes the logging module output.

Unfortunately I cannot rely on the 3.6 new thread_name_prefix argument for 
portability reasons, and have to manually patch my Python 3.6.x installs just 
to fix this.

--

___
Python tracker 

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



[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-21 Thread Charles Wohlganger

New submission from Charles Wohlganger:

Sorry, I'm new to this, and I've done it out of order. Commit #2306 covers the 
following:

In IDLE, parenmatch extension:
Add highlighting left and right parens to styles.
Make flash-delay setting independent of parens highlighting style. Currently, 
the flash-delay option only affects one of the two styles, but there is no good 
reason for it not to affect both.

--
assignee: terry.reedy
components: IDLE
messages: 296554
nosy: terry.reedy, wohlganger
priority: normal
severity: normal
status: open
title: IDLE parenmatch - left and right highlighting, independent flash-delay
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



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

2017-06-21 Thread David Haney

Changes by David Haney :


--
pull_requests:  -2361

___
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-06-21 Thread David Haney

David Haney added the comment:

I submitted a pull request for a possible fix for this issue but haven't 
received any feedback yet. Is there any additional information needed from me?

--
pull_requests: +2361

___
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-06-21 Thread STINNER Victor

STINNER Victor added the comment:

> Added pull_request2355 to address issues from upgrading to Expat 2.2.0 on 
> Windows 2.7

I would prefer to first fix the new vulnerabilities, by upgrading expat to 
2.2.1, and then review your change.

=> https://github.com/python/cpython/pull/2312

--

___
Python tracker 

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



[issue30368] [2.7] OpenSSL compilation fails on AMD64 Windows7 SP1 VS9.0 2.7

2017-06-21 Thread STINNER Victor

STINNER Victor added the comment:

> Added PR to issue29591 to address issue building Expat.  In short, the 
> project files were not updated along with the copy of Expat.

I would prefer to first fix the new vulnerabilities, but upgrading expat to 
2.2.1, and then review your change.

=> https://github.com/python/cpython/pull/2312

--

___
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-06-21 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2360

___
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-06-21 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2358

___
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-06-21 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2359

___
Python tracker 

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



[issue30722] Tools/demo/redemo.py broken

2017-06-21 Thread Roundup Robot

Changes by Roundup Robot :


--
pull_requests: +2356

___
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-06-21 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 5ff7132313eb651107b179d20218dfe5d4e47f13 by Victor Stinner in 
branch 'master':
bpo-30694: Upgrade Modules/expat/ to libexpat 2.2.1 (#2300)
https://github.com/python/cpython/commit/5ff7132313eb651107b179d20218dfe5d4e47f13


--

___
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-06-21 Thread STINNER Victor

Changes by STINNER Victor :


--
title: Various security vulnerabilities in bundled expat (CVE-2016-0718 and 
CVE-2016-4472) -> expat 2.2.0: Various security vulnerabilities in bundled 
expat (CVE-2016-0718 and CVE-2016-4472)

___
Python tracker 

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



[issue30710] getaddrinfo raises OverflowError

2017-06-21 Thread Radek Smejkal

Radek Smejkal added the comment:

> I like your idea about getting rid of OverflowError. But wouldn't it make the 
> problem with other reported by you issue, issue30711, worse?

It depends on the implementation of the underlying getaddrinfo. For 
Modules/getaddrinfo.c, it will be worse for positive numbers outside the C long 
range.

--

___
Python tracker 

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



[issue30722] Tools/demo/redemo.py broken

2017-06-21 Thread Christoph Sarnowski

Christoph Sarnowski added the comment:

By the way, I confused the flags, in my error-reproduction steps, instead of 
the re.MULTILINE flag, it is the re.DOTALL flag that should lead to all lines 
being matched by ".*".

--

___
Python tracker 

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



[issue29269] test_socket failing in solaris

2017-06-21 Thread Peter

Peter added the comment:

Getting the same test_socket errors on Solaris 11 with Python 3.5.3.


==
ERROR: testCount (test.test_socket.SendfileUsingSendfileTest)
--
Traceback (most recent call last):
  File "/usr/local/src/Python-3.5.3/Lib/test/test_socket.py", line 5204, in 
testCount
  File "/usr/local/src/Python-3.5.3/Lib/test/test_socket.py", line 5107, in 
recv_data
MemoryError

==
ERROR: testCount (test.test_socket.SendfileUsingSendfileTest)
--
Traceback (most recent call last):
  File "/usr/local/src/Python-3.5.3/Lib/test/test_socket.py", line 266, in 
_tearDown
  File "/usr/local/src/Python-3.5.3/Lib/test/test_socket.py", line 278, in 
clientRun
  File "/usr/local/src/Python-3.5.3/Lib/test/test_socket.py", line 5197, in 
_testCount
  File "/usr/local/src/Python-3.5.3/Lib/socket.py", line 286, in 
_sendfile_use_sendfile
raise _socket.timeout('timed out')
socket.timeout: timed out

==
ERROR: testWithTimeout (test.test_socket.SendfileUsingSendfileTest)
--
Traceback (most recent call last):
  File "/usr/local/src/Python-3.5.3/Lib/test/test_socket.py", line 5274, in 
testWithTimeout
  File "/usr/local/src/Python-3.5.3/Lib/test/test_socket.py", line 5107, in 
recv_data
MemoryError

==
ERROR: testWithTimeout (test.test_socket.SendfileUsingSendfileTest)
--
Traceback (most recent call last):
  File "/usr/local/src/Python-3.5.3/Lib/test/test_socket.py", line 266, in 
_tearDown
  File "/usr/local/src/Python-3.5.3/Lib/test/test_socket.py", line 278, in 
clientRun
  File "/usr/local/src/Python-3.5.3/Lib/test/test_socket.py", line 5269, in 
_testWithTimeout
  File "/usr/local/src/Python-3.5.3/Lib/socket.py", line 286, in 
_sendfile_use_sendfile
raise _socket.timeout('timed out')
socket.timeout: timed out

--
Ran 530 tests in 54.577s

FAILED (errors=4, skipped=315)
test test_socket failed
1 test failed again:
test_socket

--
nosy: +petriborg

___
Python tracker 

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



[issue29523] latest setuptools breaks virtualenvs due to unbundling dependencies

2017-06-21 Thread Charalampos Stratakis

Charalampos Stratakis added the comment:

Closing this per the discussion at the PR.

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



[issue30712] struct.unpack generates wrong error in certain conditions

2017-06-21 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Because the size of '2s2s29H' is 62 bytes. If the following C float needs to be 
aligned on 4 bytes boundary, it should start at offset 64, after 2 padding 
bytes.

--

___
Python tracker 

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



[issue30722] Tools/demo/redemo.py broken

2017-06-21 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I think ideally it would be nice to provide a switch between Unicode and bytes 
and disable the LOCALE flag in the Unicode mode. But this is too complex task. 
I think it is better to remove LOCALE.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



  1   2   >