[issue19690] test_logging test_race failed with PermissionError

2014-09-04 Thread Vinay Sajip

Vinay Sajip added the comment:

> What is the status of this issue?

Sorry, it's been off my radar - I wonder if it has become more common recently. 
It's hard to reproduce, and tweaking timeouts might make it disappear, but it's 
a trial-and-error situation because I can hardly ever get the error to occur. 
The base race condition can't be eliminated, unfortunately.

--

___
Python tracker 

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



[issue22258] set_inheritable(): ioctl(FIOCLEX) is available but fails with ENOTTY on Illumos

2014-09-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9d5386a22e68 by Victor Stinner in branch 'default':
Issue #22258: Fix typo in Misc/NEWS
http://hg.python.org/cpython/rev/9d5386a22e68

--

___
Python tracker 

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



[issue22258] set_inheritable(): ioctl(FIOCLEX) is available but fails with ENOTTY on Illumos

2014-09-04 Thread STINNER Victor

STINNER Victor added the comment:

> "the the"

Oh, thanks for the report. It's now fixed. It would be better to have the 
Misc/NEWS entry in the patch directly :-(

--

___
Python tracker 

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



[issue22333] test_threaded_import.test_parallel_meta_path() failed on x86 Windows7 3.x

2014-09-04 Thread STINNER Victor

New submission from STINNER Victor:

==
FAIL: test_parallel_meta_path (test.test_threaded_import.ThreadedImportTests)
--
Traceback (most recent call last):
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\test_threaded_import.py",
 line 133, in test_parallel_meta_path
self.check_parallel_module_init()
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\test_threaded_import.py",
 line 121, in check_parallel_module_init
self.assertTrue(done.wait(60))
AssertionError: False is not true

--
components: Tests
keywords: buildbot
messages: 226341
nosy: haypo
priority: normal
severity: normal
status: open
title: test_threaded_import.test_parallel_meta_path() failed on x86 Windows7 3.x
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



[issue22333] test_threaded_import.test_parallel_meta_path() failed on x86 Windows7 3.x

2014-09-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f8d2834e1269 by Victor Stinner in branch 'default':
Issue #22333: Add debug traces to test_threaded_import
http://hg.python.org/cpython/rev/f8d2834e1269

--
nosy: +python-dev

___
Python tracker 

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



[issue22334] test_tcl.test_split() fails on "x86 FreeBSD 7.2 3.x" buildbot

2014-09-04 Thread STINNER Victor

New submission from STINNER Victor:

The test was added by the issue #18101 (changeset 9486c07929a1).

On FreeBSD 7.2, Tcl version is 8.6b1 (seen in the test output).

http://buildbot.python.org/all/builders/x86%20FreeBSD%207.2%203.x/builds/5560/steps/test/logs/stdio

==
FAIL: test_split (test.test_tcl.TclTest)
--
Traceback (most recent call last):
  File 
"/usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/test/test_tcl.py", line 
563, in test_split
self.assertEqual(split(arg), res, msg=arg)
AssertionError: Tuples differ: (12, '\u20ac', b'\xe2\x82\xac', (3.4,)) != 
('12', '\u20ac', '\xe2\x82\xac', '3.4')

First differing element 0:
12
12

- (12, '\u20ac', b'\xe2\x82\xac', (3.4,))
+ ('12', '\u20ac', '\xe2\x82\xac', '3.4') : 12 \u20ac \xe2\x82\xac 3.4

==
FAIL: test_splitlist (test.test_tcl.TclTest)
--
Traceback (most recent call last):
  File 
"/usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/test/test_tcl.py", line 
513, in test_splitlist
self.assertEqual(splitlist(arg), res, msg=arg)
AssertionError: Tuples differ: (12, '\u20ac', b'\xe2\x82\xac', (3.4,)) != 
('12', '\u20ac', '\xe2\x82\xac', '3.4')

First differing element 0:
12
12

- (12, '\u20ac', b'\xe2\x82\xac', (3.4,))
+ ('12', '\u20ac', '\xe2\x82\xac', '3.4') : 12 \u20ac \xe2\x82\xac 3.4

--
components: Tests, Tkinter
keywords: buildbot
messages: 226343
nosy: haypo, serhiy.storchaka
priority: normal
severity: normal
status: open
title: test_tcl.test_split() fails on "x86 FreeBSD 7.2 3.x" buildbot

___
Python tracker 

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



[issue22334] test_tcl.test_split() fails on "x86 FreeBSD 7.2 3.x" buildbot

2014-09-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e6cfbc3e2ed9 by Victor Stinner in branch 'default':
Issue #22334: Add debug traces to test_tcl
http://hg.python.org/cpython/rev/e6cfbc3e2ed9

--
nosy: +python-dev

___
Python tracker 

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



[issue21951] tcl test change crashes AIX

2014-09-04 Thread STINNER Victor

STINNER Victor added the comment:

The failing assertion means that the method raised an exception and returned a 
result, or failed but didn't raised an exception. According to the gdb trace, 
the function failed (res is NULL). You can display the current exception in gdb 
using: "print PyErr_Occurred()" (NULL if there is no exception).

Please run test_tcl on AIX with attached test_tkinter.patch applied.

--
Added file: http://bugs.python.org/file36530/tkinter_debug.patch

___
Python tracker 

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



[issue6639] turtle: _tkinter.TclError: invalid command name ".10170160"

2014-09-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is more complete patch.

--
Added file: http://bugs.python.org/file36531/turtledemo_destroy.patch

___
Python tracker 

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



[issue21933] Allow the user to change font sizes with the text pane of turtledemo

2014-09-04 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I am aware of this because the Windows has the same behavior. As I noted in my 
post to #17642, I consider this behavior a tolerable glitch rather than a 
patch-blocking bug for turtledemo because the text is relatively short and read 
only, so there is no issue of needing to keep a cursor in place and visible. 
The issue would be different for Idle if indeed this is a tk rather than turtle 
problem. Also, people would typically only move a few clicks up or down, and 
scrolling up when already at the top of the file has no effect.  So I do not 
regard this as a bug for this issue and regard this as still closed unless you 
happen to have thought of a workaround.

If you don't have a fix now, you could open a separate issue to investigate 
whether the linkage is a tk, tkinter, or turtle bug.

As part of #17535, I discovered that when a Text widgets change the font size, 
they scroll up, down too far (or down and up too far), and back to where they 
should be.  This is not visible with small files like the turtle examples, but 
is with 3000-line files like idlelib/EditorWindow.py, especially when line 
numbers are enabled.  My test script attached to #17535 shows that Text indeed 
calls scrollbar.set 3 times.  I regard this as a tk bug.  My point here is that 
Text widget font size changes are a bit flaky even without the mousewheel issue.

--

___
Python tracker 

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



[issue22334] test_tcl.test_split() fails on "x86 FreeBSD 7.2 3.x" buildbot

2014-09-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

More likely there is a bug in Tcl 8.6b1 (as in Tcl before 8.5.5).

--

___
Python tracker 

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



[issue22334] test_tcl.test_split() fails on "x86 FreeBSD 7.2 3.x" buildbot

2014-09-04 Thread Ned Deily

Ned Deily added the comment:

Perhaps David B can update Tcl and Tk on the buildbot? Note, Tcl/Tk 8.6.2 (and 
8.5.16) were just released a few days ago.

--
nosy: +db3l, ned.deily

___
Python tracker 

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



[issue19546] configparser leaks implementation detail

2014-09-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 2b14665b7bce by Łukasz Langa in branch 'default':
Fix #19546: onfigparser exceptions expose implementation details.  Patch by 
Claudiu Popa.
http://hg.python.org/cpython/rev/2b14665b7bce

New changeset 554ead559f24 by Łukasz Langa in branch 'default':
Merge fix for #19546: configparser exceptions leak implementation details
http://hg.python.org/cpython/rev/554ead559f24

--
nosy: +python-dev

___
Python tracker 

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



[issue19546] configparser leaks implementation detail

2014-09-04 Thread Łukasz Langa

Changes by Łukasz Langa :


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



[issue19546] configparser leaks implementation detail

2014-09-04 Thread Łukasz Langa

Łukasz Langa added the comment:

Thank you Claudiu for your patch, sorry it took so long to respond.

--

___
Python tracker 

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



[issue19546] configparser leaks implementation detail

2014-09-04 Thread Claudiu Popa

Claudiu Popa added the comment:

No problem, thank you for committing it.

--

___
Python tracker 

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



[issue21186] RawConfigParser __name__ option handling inconsistent

2014-09-04 Thread Łukasz Langa

Łukasz Langa added the comment:

Thanks for your report and sorry it took so long to respond!

You are absolutely right that __name__ was a broken feature, which is why we 
removed it in Python 3.2. See issue #10489. For Python 2.7 you can use the 
backport, available on PyPI.

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed
type:  -> behavior

___
Python tracker 

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



[issue22334] test_tcl.test_split() fails on "x86 FreeBSD 7.2 3.x" buildbot

2014-09-04 Thread STINNER Victor

STINNER Victor added the comment:

> More likely there is a bug in Tcl 8.6b1 (as in Tcl before 8.5.5).

If the bug is not present in Tcl 8.6.2, we can skip the test on the version Tcl 
8.6b1.

--

___
Python tracker 

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



[issue21356] Support LibreSSL (instead of OpenSSL): make RAND_egd optional

2014-09-04 Thread STINNER Victor

STINNER Victor added the comment:

> The PyPy patch (and some discussion) is here:

Your patch checks at runtime if libssl comes with RAND_egd:

   HAVE_OPENSSL_RAND_EGD = rffi_platform.Has('RAND_egd')

In CPython, the _ssl module is compiled in C. How can we check if libssl 
provides RAND_egd() or not at compile time?

Is there a way to check if libssl is OpenSSL or LibreSSL?

--

___
Python tracker 

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



[issue22335] Python 3: Segfault instead of MemoryError when bytearray too big

2014-09-04 Thread swanson

New submission from swanson:

On Python 3, but not Python 2, you crash with a Segmentation Fault instead of 
getting a MemoryError as expected.  It seems to only be a problem with 
bytearray, not with other things like tuple:

$ python3
Python 3.4.0 (default, Apr 11 2014, 13:05:18) 
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> bytearray(0x7FFF)
Segmentation fault (core dumped)
$ 


compare to:


$ python
Python 2.7.6 (default, Mar 22 2014, 22:59:38) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> bytearray(0x7FFF)
Traceback (most recent call last):
  File "", line 1, in 
MemoryError
>>> 


$ python3
Python 3.4.0 (default, Apr 11 2014, 13:05:18) 
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> (0,)*0x7FFF
Traceback (most recent call last):
  File "", line 1, in 
MemoryError
>>>

--
messages: 226356
nosy: swanson
priority: normal
severity: normal
status: open
title: Python 3: Segfault instead of MemoryError when bytearray too big
type: crash
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



[issue21356] Support LibreSSL (instead of OpenSSL): make RAND_egd optional

2014-09-04 Thread STINNER Victor

STINNER Victor added the comment:

Related discussion:
http://marc.info/?l=openbsd-tech&m=140512043210089&w=2

The answer for Python is:
"your package maintainers and ask them to configure these software without egd 
support."

--

___
Python tracker 

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



[issue22323] Rewrite PyUnicode_AsWideChar() and PyUnicode_AsWideCharString()

2014-09-04 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue22335] Python 3: Segfault instead of MemoryError when bytearray too big

2014-09-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Looks as integer overflow introduced in issue19087.

+if (size + logical_offset + 1 < alloc) {

--
nosy: +pitrou, serhiy.storchaka
stage:  -> needs patch
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



[issue22335] Python 3: Segfault instead of MemoryError when bytearray too big

2014-09-04 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +haypo

___
Python tracker 

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



[issue21951] tcl test change crashes AIX

2014-09-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

As far as I remember, both res and PyErr_Occurred() were NULL.

--

___
Python tracker 

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



[issue21933] Allow the user to change font sizes with the text pane of turtledemo

2014-09-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a patch which should fix this bug. In additional it fixes a bug on 
MacOS: mouse wheel only increased font size.

--
Added file: http://bugs.python.org/file36532/turtledemo_change_font_size.patch

___
Python tracker 

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



[issue21951] tcl test change crashes AIX

2014-09-04 Thread David Edelsohn

David Edelsohn added the comment:

When the failing test is re-enabled, the _tkinter patch produces the following 
output:

test_user_command (test.test_tcl.TclTest) ... Assertion failed: __EX, file  
/home/dje/src/cpython/Modules/_tkinter.c, line 1277
Fatal Python error: Aborted

Current thread 0x0001 (most recent call first):
  File "/home/dje/src/cpython/Lib/test/test_tcl.py", line 435 in check
  File "/home/dje/src/cpython/Lib/test/test_tcl.py", line 468 in 
test_user_command
  File "/home/dje/src/cpython/Lib/unittest/case.py", line 577 in run
  File "/home/dje/src/cpython/Lib/unittest/case.py", line 625 in __call__
  File "/home/dje/src/cpython/Lib/unittest/suite.py", line 125 in run
  File "/home/dje/src/cpython/Lib/unittest/suite.py", line 87 in __call__
  File "/home/dje/src/cpython/Lib/unittest/suite.py", line 125 in run
  File "/home/dje/src/cpython/Lib/unittest/suite.py", line 87 in __call__
  File "/home/dje/src/cpython/Lib/unittest/runner.py", line 168 in run
  File "/home/dje/src/cpython/Lib/test/support/__init__.py", line 1750 in 
_run_suite
  File "/home/dje/src/cpython/Lib/test/support/__init__.py", line 1784 in 
run_unittest
  File "/home/dje/src/cpython/Lib/test/test_tcl.py", line 615 in test_main
  File "/home/dje/src/cpython/Lib/test/regrtest.py", line 1280 in runtest_inner
  File "/home/dje/src/cpython/Lib/test/regrtest.py", line 978 in runtest
  File "/home/dje/src/cpython/Lib/test/regrtest.py", line 763 in main
  File "/home/dje/src/cpython/Lib/test/regrtest.py", line 1564 in 
main_in_temp_cwd
  File "/home/dje/src/cpython/Lib/test/__main__.py", line 3 in 
  File "/home/dje/src/cpython/Lib/runpy.py", line 85 in _run_code
  File "/home/dje/src/cpython/Lib/runpy.py", line 170 in _run_module_as_main
IOT/Abort trap (core dumped)

--

___
Python tracker 

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



[issue21951] tcl test change crashes AIX

2014-09-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9ab404cdcaa1 by Victor Stinner in branch 'default':
Issue #21951: Fix AsObj() of the _tkinter module: raise MemoryError on memory
http://hg.python.org/cpython/rev/9ab404cdcaa1

--

___
Python tracker 

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



[issue22336] _tkinter should use Python PyMem_Malloc() instead of Tcl ckalloc()

2014-09-04 Thread STINNER Victor

New submission from STINNER Victor:

The PyMem_Malloc(size) function has a well defined behaviour: if size is 0, a 
pointer different than NULL is returned. It looks like ckalloc(size) returns 
NULL if the size is NULL: see issue #21951 (bug on AIX).

Moreover, memory allocated by ckalloc() is not traced by the new tracemalloc 
module!

Attached patch replaces calls to ckalloc() and ckfree() with PyMem_Malloc() and 
PyMem_Free(). It may fix the issue #21951 on AIX.

There is still a call to ckfree() in Tkapp_SplitList(). This memory block is 
allocated internally by Tcl, not directly by _tkinter.c.

--
files: pymem.patch
keywords: patch
messages: 226363
nosy: David.Edelsohn, haypo, serhiy.storchaka
priority: normal
severity: normal
status: open
title: _tkinter should use Python PyMem_Malloc() instead of Tcl ckalloc()
type: enhancement
versions: Python 3.5
Added file: http://bugs.python.org/file36533/pymem.patch

___
Python tracker 

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



[issue21951] tcl test change crashes AIX

2014-09-04 Thread STINNER Victor

STINNER Victor added the comment:

> When the failing test is re-enabled, the _tkinter patch produces the 
> following output:

Thanks. I found and fixed a bug in AsObj() for tuple and list. It looks like 
ckalloc(size) returns NULL if size is 0. Please update Python, compile and run 
test_tcl to see if you get a MemoryError exception instead of a crash.

I just created the issue #22336 which may fix this issue if my analysis was 
correct. It uses PyMem_Malloc(size) which has a well-defined behaviour when 
size is 0.

--

___
Python tracker 

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



[issue22336] _tkinter should use Python PyMem_Malloc() instead of Tcl ckalloc()

2014-09-04 Thread STINNER Victor

STINNER Victor added the comment:

>PyMem_Free(FREECAST argv);

FREECAST can be dropped here, PyMem_Free() always takes a void* pointer.

--

___
Python tracker 

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



[issue22336] _tkinter should use Python PyMem_Malloc() instead of Tcl ckalloc()

2014-09-04 Thread STINNER Victor

Changes by STINNER Victor :


--
components: +Tkinter

___
Python tracker 

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



[issue22336] _tkinter should use Python PyMem_Malloc() instead of Tcl ckalloc()

2014-09-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Event structs (Tkapp_CallEvent, VarEvent, CommandEvent) must have been 
allocated by the caller using Tcl_Alloc or ckalloc (see man 
Tcl_ThreadQueueEvent).

--

___
Python tracker 

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



[issue21951] tcl test change crashes AIX

2014-09-04 Thread David Edelsohn

David Edelsohn added the comment:

$ ./python -m test -v test_tcl
== CPython 3.5.0a0 (default:9ab404cdcaa1+, Sep 4 2014, 10:06:33) [GCC 4.8.1]
==   AIX-1-00F84C0C4C00-powerpc-32bit big-endian
==   hash algorithm: siphash24 32bit
==   /home/dje/src/cpython/build/test_python_48694044
Testing with 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)
[1/1] test_tcl
patchlevel = 8.4.7
testCall (test.test_tcl.TclTest) ... ok
testCallException (test.test_tcl.TclTest) ... ok
testCallException2 (test.test_tcl.TclTest) ... ok
testEval (test.test_tcl.TclTest) ... ok
testEvalException (test.test_tcl.TclTest) ... ok
testEvalException2 (test.test_tcl.TclTest) ... ok
testEvalFile (test.test_tcl.TclTest) ... ok
testEvalFileException (test.test_tcl.TclTest) ... ok
testGetVar (test.test_tcl.TclTest) ... ok
testGetVarArray (test.test_tcl.TclTest) ... ok
testGetVarArrayException (test.test_tcl.TclTest) ... ok
testGetVarException (test.test_tcl.TclTest) ... ok
testLoadWithUNC (test.test_tcl.TclTest) ... skipped 'Requires Windows'
testPackageRequireException (test.test_tcl.TclTest) ... ok
testSetVar (test.test_tcl.TclTest) ... ok
testSetVarArray (test.test_tcl.TclTest) ... ok
testUnsetVar (test.test_tcl.TclTest) ... ok
testUnsetVarArray (test.test_tcl.TclTest) ... ok
testUnsetVarException (test.test_tcl.TclTest) ... ok
test_eval_null_in_result (test.test_tcl.TclTest) ... ok
test_evalfile_null_in_result (test.test_tcl.TclTest) ... ok
test_exprboolean (test.test_tcl.TclTest) ... ok
test_exprdouble (test.test_tcl.TclTest) ... ok
test_exprlong (test.test_tcl.TclTest) ... ok
test_exprstring (test.test_tcl.TclTest) ... ok
test_getboolean (test.test_tcl.TclTest) ... ok
test_getdouble (test.test_tcl.TclTest) ... ok
test_getint (test.test_tcl.TclTest) ... ok
test_passing_values (test.test_tcl.TclTest) ... ok
test_split (test.test_tcl.TclTest) ... ok
test_splitlist (test.test_tcl.TclTest) ... ok
test_user_command (test.test_tcl.TclTest) ... ERROR
testFlattenLen (test.test_tcl.TkinterTest) ... ok
test_huge_string_builtins (test.test_tcl.BigmemTclTest) ... skipped 'needs 
UINT_MAX < SIZE_MAX'
test_huge_string_call (test.test_tcl.BigmemTclTest) ... skipped 'needs UINT_MAX 
< SIZE_MAX'

==
ERROR: test_user_command (test.test_tcl.TclTest)
--
Traceback (most recent call last):
  File "/home/dje/src/cpython/Lib/test/test_tcl.py", line 468, in 
test_user_command
check((), '')
  File "/home/dje/src/cpython/Lib/test/test_tcl.py", line 435, in check
r = self.interp.call('testfunc', value)
MemoryError

--
Ran 35 tests in 0.133s

FAILED (errors=1, skipped=3)
test test_tcl failed
1 test failed:
test_tcl

--

___
Python tracker 

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



[issue21933] Allow the user to change font sizes with the text pane of turtledemo

2014-09-04 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Great. That works better on Windows too. Attached is an augmented patch to also 
move the other size bindings to text (I verified that 'bind_all' is needed), 
move the resize binding back to where it was, delete the now-empty binding 
function, and add a not to the docstring that the mousewheel only resizes when 
the mouse is over the text.  Please verify that this also works for non-windows.

--
Added file: http://bugs.python.org/file36534/turtledemo_change_font_size2.patch

___
Python tracker 

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



[issue21933] Allow the user to change font sizes with the text pane of turtledemo

2014-09-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

This works on X11 (Linux).

Actually it doesn't matter for what widget you call bind_all(). It works 
globally.

--

___
Python tracker 

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



[issue20421] expose SSL socket protocol version

2014-09-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 648685f8d5e9 by Antoine Pitrou in branch 'default':
Issue #20421: Add a .version() method to SSL sockets exposing the actual 
protocol version in use.
http://hg.python.org/cpython/rev/648685f8d5e9

--
nosy: +python-dev

___
Python tracker 

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



[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.

2014-09-04 Thread Terry J. Reedy

Terry J. Reedy added the comment:

And if you enable code context in the other window, neither will have the 
checkmark. As I said, the one button is being used to toggle two things: the 
state of the current window and the default for future windows, and the 
checkmark only indicates the second. I agree that this is confusing.

--

___
Python tracker 

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



[issue20421] expose SSL socket protocol version

2014-09-04 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Pushed to default.

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



[issue13179] IDLE uses common tkinter variables across all editor windows

2014-09-04 Thread Terry J. Reedy

Terry J. Reedy added the comment:

There has been more discussion of code context toggling in #17535, msg225411 
2014-8-16 and following messages. The code context button toggles both the 
state of the current window and the default for new windows.

PEP 434 ratified my comment about new Idle features not having to wait.  #3068 
is about adding an extension configuration dialog that will be needed to 
uncouple the local and global effects of option buttons for extension features.

--
versions: +Python 3.5 -Python 3.3

___
Python tracker 

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



[issue21951] tcl test change crashes AIX

2014-09-04 Thread STINNER Victor

STINNER Victor added the comment:

Thanks David! Your ouput confirms my analysis. asobj_empty_sequence.patch 
should fix the test on AIX.

I read Tcl source code, Tcl_NewListObj() doesn't use the second parameter if 
the first parameter (length) is zero.

--
Added file: http://bugs.python.org/file36535/asobj_empty_sequence.patch

___
Python tracker 

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



[issue20421] expose SSL socket protocol version

2014-09-04 Thread Alex Gaynor

Alex Gaynor added the comment:

Should this be backported to 2.7.9?

--

___
Python tracker 

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



[issue20421] expose SSL socket protocol version

2014-09-04 Thread Antoine Pitrou

Antoine Pitrou added the comment:

It's as you want, now. I don't think this is really important, though.

--

___
Python tracker 

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



[issue20421] expose SSL socket protocol version

2014-09-04 Thread Alex Gaynor

Alex Gaynor added the comment:

Attached patch backports it (only change is the use of `closing()` and 
resolving the conflict in Misc/NEWS). I'll leave it up to benjamin whether he 
wants to commit (input from others welcome). My view is to prefer backporting 
stuff since it helps keep the diff small.

--
nosy: +benjamin.peterson
Added file: http://bugs.python.org/file36536/backport-version.diff

___
Python tracker 

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



[issue4180] warnings.simplefilter("always") does not make warnings always show up

2014-09-04 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Brett, do you want to review this?

--

___
Python tracker 

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



[issue20421] expose SSL socket protocol version

2014-09-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 16c86a6bdbe2 by Alex Gaynor in branch '2.7':
Issue #20421: Add a .version() method to SSL sockets exposing the actual 
protocol version in use.
http://hg.python.org/cpython/rev/16c86a6bdbe2

--

___
Python tracker 

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



[issue22334] test_tcl.test_split() fails on "x86 FreeBSD 7.2 3.x" buildbot

2014-09-04 Thread STINNER Victor

STINNER Victor added the comment:

Debug trace from x86 FreeBSD 6.4 3.x:

==
FAIL: test_splitlist (test.test_tcl.TclTest)
--
Traceback (most recent call last):
  File "/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/test/test_tcl.py", 
line 517, in test_splitlist
'arg=%a, %s' % (arg, dbg_info))
AssertionError: Tuples differ: (12, '\u20ac', b'\xe2\x82\xac', (3.4,)) != 
('12', '\u20ac', '\xe2\x82\xac', '3.4')

First differing element 0:
12
12

- (12, '\u20ac', b'\xe2\x82\xac', (3.4,))
+ ('12', '\u20ac', '\xe2\x82\xac', '3.4') : arg=, want objects? True, Tcl version: (8, 5), Tk patchlevel: (8, 
5, 4)

--

___
Python tracker 

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



[issue22337] Modulus not returning proper remainder

2014-09-04 Thread DenisCrnic

New submission from DenisCrnic:

Modulus is returning wrong remainder when working with negative numbers.
For example 34%-3 should return 1, but it returns -2.

34/-3=-11, remainder: 1, proof: -11*(-3)+1=34 <--- Math logic (works in Java 
for example)

but python goes like that:
34/-3=12, remainder: -2. proof: -12*(-3)+(-2)=34 <--- Python logic (works)
I know that python is looking for the int which is the closest to the a (a%b), 
and is divisible with it, but in this case that's not right. it should seek for 
the closest integer, which is lower than a, in this case 33

If explanation is not clear enough, reply me, i'll take more time to make it 
clear.
maybe my theory is wrong, and python syntax works better than in Java.

--
files: Screenshot_1.png
messages: 226381
nosy: DenisCrnic
priority: normal
severity: normal
status: open
title: Modulus not returning proper remainder
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file36537/Screenshot_1.png

___
Python tracker 

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



[issue22334] test_tcl.test_split() fails on "x86 FreeBSD 7.2 3.x" buildbot

2014-09-04 Thread STINNER Victor

STINNER Victor added the comment:

Debug trace on FreeBSD 7.2:

==
FAIL: test_splitlist (test.test_tcl.TclTest)
--
Traceback (most recent call last):
  File 
"/usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/test/test_tcl.py", line 
517, in test_splitlist
'arg=%a, %s' % (arg, dbg_info))
AssertionError: Tuples differ: (12, '\u20ac', b'\xe2\x82\xac', (3.4,)) != 
('12', '\u20ac', '\xe2\x82\xac', '3.4')

First differing element 0:
12
12

- (12, '\u20ac', b'\xe2\x82\xac', (3.4,))
+ ('12', '\u20ac', '\xe2\x82\xac', '3.4') : arg=, want objects? True, Tcl version: (8, 6), Tk patchlevel: (8, 
-1)

--

___
Python tracker 

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



[issue22337] Modulus not returning proper remainder

2014-09-04 Thread R. David Murray

R. David Murray added the comment:

This is, indeed, the way Python works.  See

https://docs.python.org/3/reference/expressions.html

where you will find:

The modulo operator always yields a result with the same sign as its second 
operand (or zero); the absolute value of the result is strictly smaller than 
the absolute value of the second operand

--
nosy: +r.david.murray
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



[issue22117] Rewrite pytime.h to work on nanoseconds

2014-09-04 Thread STINNER Victor

STINNER Victor added the comment:

And now, something completly different.

nanosec-wip.patch is a work-in-progress patch to use a unified (64 bits) 
integer type to store a timestamp: _PyTime_t. The type is written to be opaque, 
the unit is undefined, you must use functions to convert from and to this type. 
Well, in fact it's just a number of nanoseconds.

The patch is large:

 Include/pytime.h  |  125 ++-
 Modules/_datetimemodule.c |   43 ++--
 Modules/_testcapimodule.c |   25 +-
 Modules/_threadmodule.c   |  156 +++---
 Modules/gcmodule.c|   12 -
 Modules/posixmodule.c |   29 +-
 Modules/selectmodule.c|   33 ---
 Modules/signalmodule.c|   20 -
 Modules/socketmodule.c|  151 --
 Modules/socketmodule.h|2 
 Modules/timemodule.c  |   40 ++-
 Python/pytime.c   |  480 +-
 12 files changed, 645 insertions(+), 471 deletions(-)

Conversion functions require a rounding mode.

I didn't update all tests yet. For example, test_datetime crash, test_time and 
test_threading fail. There are also 3 remaining FIXME for myself in pytime.c.

--
Added file: http://bugs.python.org/file36538/nanosec-wip.patch

___
Python tracker 

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



[issue21228] Missing enumeration of HTTPResponse Objects methods of urllib.request.urlopen's http.client.HTTPResponse?

2014-09-04 Thread Evens Fortuné

Evens Fortuné added the comment:

Hi,

>From my limited experience reporting documentation issues, I see that it's 
>better to submit a patch than to only report an issue. So, I've tried to look 
>into the source code to figure out what was going on. I have attached a patch 
>that I'm submitting to you for review hoping I doing everything right.

What was reported as ambiguous in this issue is the description of the return 
value of the function urllib.request.urlopen() for http and https URLs. It was 
mentionned that it should be an http.client.HTTPResponse object but it implied 
that something may have been different about this object. 

To understand why I'm may now be able to assert what's being said in that 
patch, follow me in the source code. It's based on revision c499cc2c4a06. If 
you don't care about all the walkthrough you can skip to step 9.

   1. We want to describe the return value of the urllib.request.urlopen() for 
http and https URLs
   2. The urlopen() function is defined in Lib/urllib/request.py starting on 
line 138. Its return value is the return value function of the opener.open() 
method (line 153)
  * This opener object is defined in one of these locations:
 * On line 150 as the return value of the module function 
build_opener() (this return value is cached in the _opener module variable)
 * On line 152 as the value cached in the _opener module variable
 * On line 148 still as the return value of the module function 
build_opener() in the case if you want to access an HTTPS URL and you provide a 
cafile, capath or cadefault argument
  * So either way, the opener object come from the build_opener directly or 
indirectly.
   3. The build_opener() function is defined starting on line 505. Its return 
value (line 539) is an instance of the OpenerDirector class (line 514). The 
OpenerDirector class is defined starting on line 363.
  a. Before returning its return value, after some checks (lines 522-530, 
535-536), build_opener() calls the OpenerDirector().add_handler() with an 
instance of some of the classes defined in the default_classes list (line 
515-518). What matters to us is the HTTPHandler class and the HTTPSHandler 
class (line 520).
  b. The OpenerDirector().add_handler() method (line 375) takes the 
HTTPHandler class (line 1196) and:
 * Insert the HTTPHandler.http_open() method in the list stored as the 
value of OpenerDirector().handle_open['http'].
 * Insert the HTTPHandler.http_request() method in the list stored as 
the value of OpenerDirector().process_request['http'].
  c. For HTTPSHandler (line 1203) is the same thing but :
 * HTTPSHandler.https_open() for OpenerDirector().handle_open['https']
 * HTTPSHandler.https_request() for 
OpenerDirector().process_request['https']
   4. I remind you that we are looking for the return value of the method 
open() of an instance of the OpenerDirector class (see point number 2). This 
method is defined starting on line 437.
   5. The OpenDirector.open() method's return value is the response variable 
(line 463)
   6. This variable is defined on lines 461 and 455.
  a. The loop on lines 458-461 tries to find in his handlers (the 
OpenerDirector().process_response dictionary) a response processor (a 
XXX.http_response() method) which isn't defined in HTTPHandler or HTTPSHandler. 
(a http_response() method is defined in HTTPErrorProcessor [line 564] and in 
HTTPCookieProcessor [line 1231] but in each of these cases, these classes don't 
modify the response value)
  b. So response variable's value is the return value of 
OpenerDirector()._open(req, data) on line 455. 
 * The req argument is a Request instance (line 440) or something that 
has the same interface, I guess (line 442). The Request class is defined on 
line 253.
 * The data argument is included in the constructor of the Request 
instance (line 440 and then on line 262) or added to the object provided (line 
444). Afterwards, it won't be used directly (OpenerDirector()._open() receives 
it as an argument but won't use it in its body)
   7. OpenerDirector()._open() is defined on line 465. It will call 
OpenerDirector()._call_chain() up to three times depending on whether a result 
has been found (lines 468-469, 474-475). 
  * OpenerDirector()._call_chain() is defined on line 426. All it does is 
calling the handlers registered in the dictionnary provided (the chain 
argument) until one returns something else than None and returns it.
  * In our case (retrieving http and http resources):
 a. The first call (line 466) will return None since HTTPHandler or 
HTTPSHandler don't have a default_open() method (in fact, no handler defined in 
this file has a default_open() method)
 b. The second call will work since HTTPHandler.http_open() (line 1198) 
and HTTPSHandler.https_open() (line 1212) exists. Their return values will be 
enventually what we are lookin

[issue4130] Intel icc 9.1 does not support __int128_t used by ctypes

2014-09-04 Thread Marcin Wojdyr

Marcin Wojdyr added the comment:

I just came across this issue when compiling 2.7.8 with ICC 15.0.
But apparently it's been fixed in the meantime by updating libffi to v3.1 
(r92061 for 2.7).

--
nosy: +wojdyr

___
Python tracker 

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



[issue21907] Update Windows build batch scripts

2014-09-04 Thread David Bolen

David Bolen added the comment:

While troubleshooting an issue with test_distutils consistently failing on my 
XP buildbot, I narrowed it down to the test.bat change to use run_tests.py.  I 
don't yet know fully what's happening, but after replacing the new test.bat 
with the older version (that calls rt.bat) everything works fine.

Doing so also appears to clean up the stdin encoding problem (which was causing 
a consistent failure in test_capi).

As suggested by Zachary in msg222621, and given the status of XP going forward, 
I think it may be best, at least for now, to revert back to the traditional 
test.bat/rt.bat combination under XP, which has been stable for a long time.  
At least until some further work can be done to discover what's happening with 
the new approach, assuming it's desired at some point under XP.

Attached is a simple test.bat update that reverts to the older rt.bat approach 
but only under XP.

--
Added file: http://bugs.python.org/file36540/test.bat

___
Python tracker 

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



[issue22290] "AMD64 OpenIndiana 3.x" buildbot: assertion failed in PyObject_Call() in test_subprocess.test_preexec()

2014-09-04 Thread STINNER Victor

STINNER Victor added the comment:

I reproduced the crash with pyfailmalloc. The problem is that 
_posixsubprocess.fork_exec() calls gc.enable() on error when preexec_fn is set 
and the garbage collector was disabled (by fork_exec). Calling a function with 
an exception set is forbidden.

Attached patch fixes this issue, but fix also error handling in fork_exec() and 
add some unit tests.

--
keywords: +patch
Added file: http://bugs.python.org/file36541/fork_exec.patch

___
Python tracker 

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



[issue22290] "AMD64 OpenIndiana 3.x" buildbot: assertion failed in PyObject_Call() in test_subprocess.test_preexec()

2014-09-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 16e3d240456f by Victor Stinner in branch 'default':
Issue #22290: PyObject_Call() now fails with an assertion error when called
http://hg.python.org/cpython/rev/16e3d240456f

--
nosy: +python-dev

___
Python tracker 

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



[issue22338] test_json crash on memory allocation failure

2014-09-04 Thread STINNER Victor

New submission from STINNER Victor:

Using pyfailmalloc, I'm able to reproduce the crash seen on a buildbot.

Attached patch fixes two bugs in error handlers.

http://buildbot.python.org/all/builders/AMD64%20OpenIndiana%203.x/builds/8557/steps/test/logs/stdio

[191/390] test_urllib2net
Fatal Python error: Segmentation fault

Current thread 0x0001 (most recent call first):
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 317 in _iterencode_list
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 420 in _iterencode
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 430 in _iterencode
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 317 in _iterencode_list
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 420 in _iterencode
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 430 in _iterencode
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 317 in _iterencode_list
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 420 in _iterencode
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 430 in _iterencode
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 317 in _iterencode_list
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 420 in _iterencode
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 430 in _iterencode
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 317 in _iterencode_list
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 420 in _iterencode
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 430 in _iterencode
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 317 in _iterencode_list
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 420 in _iterencode
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 430 in _iterencode
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 317 in _iterencode_list
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 420 in _iterencode
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 430 in _iterencode
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 317 in _iterencode_list
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 420 in _iterencode
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 430 in _iterencode
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 317 in _iterencode_list
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 420 in _iterencode
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 430 in _iterencode
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 317 in _iterencode_list
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 420 in _iterencode
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 430 in _iterencode
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 317 in _iterencode_list
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 420 in _iterencode
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 430 in _iterencode
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 317 in _iterencode_list
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 420 in _iterencode
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 430 in _iterencode
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 317 in _iterencode_list
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 420 in _iterencode
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 430 in _iterencode
  File 
"/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/json/encoder.py", 
line 317 in _iterencode_list
  File 
"/export/home

[issue22338] test_json crash on memory allocation failure

2014-09-04 Thread STINNER Victor

Changes by STINNER Victor :


--
type:  -> crash
versions: +Python 2.7, 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



[issue22290] "AMD64 OpenIndiana 3.x" buildbot: assertion failed in PyObject_Call() in test_subprocess.test_preexec()

2014-09-04 Thread STINNER Victor

STINNER Victor added the comment:

> For example, test_json crashed with SIGSEGV in this build, probably because 
> of an unhandled MemoryError exception:

I created an issue for this bug: issue #22338. I proposed a fix.

--

___
Python tracker 

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



[issue22339] Incorrect behavior when subclassing enum.Enum

2014-09-04 Thread Kiss György

New submission from Kiss György:

There is a small inconvenience in the ``enum`` module.
When I subclass ``enum.Enum`` and redefine the ``value`` dynamic attribute, the 
aliasing behavior doesn't work correctly, because ``member.value`` is used in 
some places instead of ``member._value_``.
I attached a patch where I fixed all these places. This causes no harm to the 
internal working, but makes subclassing behave correctly.

--
components: Library (Lib)
files: enum.patch
keywords: patch
messages: 226392
nosy: Walkman
priority: normal
severity: normal
status: open
title: Incorrect behavior when subclassing enum.Enum
type: enhancement
versions: Python 3.4
Added file: http://bugs.python.org/file36543/enum.patch

___
Python tracker 

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



[issue22339] Incorrect behavior when subclassing enum.Enum

2014-09-04 Thread Ethan Furman

Ethan Furman added the comment:

Can you give an example of the code you were having problems with?

--
assignee:  -> ethan.furman
nosy: +ethan.furman

___
Python tracker 

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



[issue22339] Incorrect behavior when subclassing enum.Enum

2014-09-04 Thread Ethan Furman

Changes by Ethan Furman :


--
nosy: +barry, eli.bendersky

___
Python tracker 

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



[issue21933] Allow the user to change font sizes with the text pane of turtledemo

2014-09-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ecc98ea50bc3 by Terry Jan Reedy in branch '3.4':
Issue #21933: Make Control-Mousewhell only change font size and not also scroll.
http://hg.python.org/cpython/rev/ecc98ea50bc3

--

___
Python tracker 

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



[issue21933] Allow the user to change font sizes with the text pane of turtledemo

2014-09-04 Thread Terry J. Reedy

Changes by Terry J. Reedy :


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



[issue22339] Incorrect behavior when subclassing enum.Enum

2014-09-04 Thread Kiss György

Kiss György added the comment:

Yes, sorry I forgot about that. Here is a minimal example:


from enum import EnumMeta, Enum
from types import DynamicClassAttribute


class _MultiMeta(EnumMeta):
def __init__(enum_class, cls, bases, classdict):
# make sure we only have tuple values, not single values
for member in enum_class.__members__.values():
if not isinstance(member._value_, tuple):
raise ValueError('{!r}, should be tuple'.format(member._value_))

def __call__(cls, suit):
for member in cls:
if suit in member._value_:
return member
return super().__call__(suit)


class MultiValueEnum(Enum, metaclass=_MultiMeta):
@DynamicClassAttribute
def value(self):
"""The value of the Enum member."""
return self._value_[0]

class IncorrectAliasBehavior(MultiValueEnum):
first = 1, 2, 3
second = 4, 5, 6
alias_to_first = 1, 2, 3


When you call IncorrectAliasBehavior.alias_to_first, the documentation says it 
should return IncorrectAliasBehavior.first, but in this case it returns 
IncorrectAliasBehavior.alias_to_first, because canonical_member.value is 
referenced on line 162, and so it returns the redefined value, not the 
internally used one.
This was very confusing for me.

--

___
Python tracker 

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



[issue19461] RawConfigParser modifies empty strings unconditionally

2014-09-04 Thread Łukasz Langa

Łukasz Langa added the comment:

This bug has been fixed in Python 3.2 (see 892236137db9). Please use the 
configparser backport for Python 2.7.

--
resolution:  -> fixed
stage: needs patch -> resolved
status: open -> closed
type: enhancement -> behavior

___
Python tracker 

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



[issue22253] ConfigParser does not handle files without sections

2014-09-04 Thread Martin Panter

Changes by Martin Panter :


--
nosy: +vadmium

___
Python tracker 

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



[issue17083] can't specify newline string for readline for binary files

2014-09-04 Thread Martin Panter

Changes by Martin Panter :


--
nosy: +vadmium

___
Python tracker 

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



[issue1152248] Add support for reading records with arbitrary separators to the standard IO stack

2014-09-04 Thread Martin Panter

Martin Panter added the comment:

Related:
* Issue 563491: 2002 proposal for parameter to readline, rejected at the time
* Issue 17083: Newline is hard coded for binary file readline

Fixing this issue for binary files would probably also satisfy Issue 17083.

--

___
Python tracker 

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



[issue1243678] httplib gzip support

2014-09-04 Thread Martin Panter

Martin Panter added the comment:

Agreed, this issue is not a duplicate of the marked “gzip” seek issue, however 
it _does_ duplicate Issue 1508475.

--

___
Python tracker 

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



[issue1508475] transparent gzip compression in urllib

2014-09-04 Thread Martin Panter

Martin Panter added the comment:

Related: Issue 1243678, which includes a patch for “httplib” (now known as 
“http.client”?). That patch looks like it sets Accept-Encoding and decodes 
according to Content-Encoding. However I suspect it is also trying to be too 
“transparent” at the wrong level and would have many of the problems already 
mentioned here.

--

___
Python tracker 

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



[issue21951] tcl test change crashes AIX

2014-09-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

The patch can be simpler. And there is yet one similar bug, for unicode strings.

--
Added file: http://bugs.python.org/file36544/asobj_empty_sequence_2.patch

___
Python tracker 

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



[issue20912] [zipfile.py]: Make zip directory attributes more friendly for MS-Windows

2014-09-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

If there are no objections I'll commit the patch soon.

--

___
Python tracker 

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



[issue21228] Missing enumeration of HTTPResponse Objects methods of urllib.request.urlopen's http.client.HTTPResponse?

2014-09-04 Thread Martin Panter

Martin Panter added the comment:

With this patch, there is no longer any implication that the returned object 
implements the “addinfourl” interface. Perhaps that should be added back. Or 
maybe add it to the HTTPResponse class documentation itself? There is a comment 
that says the methods are there “for compatibility with old-style urllib 
responses”, although it seems to me they also make the class compatible with 
Python 3’s new “urllib”:

http://hg.python.org/cpython/file/c499cc2c4a06/Lib/http/client.py#l772

It is good to document the “msg” attribute and its inconsistency, since I have 
found this is required to implement your own BaseHandler.default_open(). 
However I’m not so sure if it is necessary to document the “url” attribute. Why 
not encourage using geturl() instead, since it is already documented, at least 
for non-HTTP responses?

I also saw a comment against the “msg” attribute which mentions deprecating 
something, but it is not clear what:
http://hg.python.org/cpython/file/c499cc2c4a06/Lib/urllib/request.py#l1187

--

___
Python tracker 

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