[issue19654] test_tkinter sporadic failures on "x86 Tiger 3.x" buildbot

2014-01-31 Thread Ned Deily

Changes by Ned Deily :


--
assignee: ronaldoussoren -> 

___
Python tracker 

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



[issue19654] test_tkinter sporadic failures on "x86 Tiger 3.x" buildbot

2014-01-31 Thread Ned Deily

Ned Deily added the comment:

The failures in test_tk here are the same ones documented in Issue19761 for Tk 
8.4 so this issue could be closed as a duplicate of that one.  The mystery 
remains why test_tk appears to alternately pass and fail on this buildbot.  I 
don't see why it doesn't always fail.

--

___
Python tracker 

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



[issue19761] test_tk fails on OS X with multiple test case failures with both Tk 8.5 and 8.4

2014-01-31 Thread Ned Deily

Ned Deily added the comment:

There are three different classes of errors here:

1. test_debug AssertionError: '0' != 0

This has already been fixed by 7dab4feec126/05e84d3ecd1e/e7d922d8ee03 for 
Issue6517.


2. test_bitmap checks for invalid bitmap values do not fail as expected with 
Cocoa Tk

This appears to be a bug in Cocoa Tk, reproducible with the wish shell.  I've 
opened a Tk issue for it:

https://core.tcl.tk/tk/tktview?name=31cd33dbf0

The simplest approach would be to just skip test_bitmap for OS X until this is 
fixed.  A more focused workaround patch would be to only skip the 
checkInvalidParam test when running under Cocoa Tk:

'aqua' in root.tk.call('tk', 'windowingsystem') and
'AppKit' in root.tk.call('winfo', 'server', '.')


3. test_insertborderwidth failures for Entry and Spinbox widgets

After a little investigation, I think this is a test case error. at least for 
Entry.  According to third-party Tkinter documentation 
(http://infohost.nmt.edu/tcc/help/pubs/tkinter/web/entry.html) for the Entry 
widget:

"By default, the insertion cursor is a simple rectangle. You can get the cursor 
with the tk.RAISED relief effect (see Section 5.6, 'Relief styles') by setting 
insertborderwidth to the dimension of the 3-d border. If you do, make sure that 
the insertwidth option is at least twice that value."

It looks like for both the OS X Carbon (8.4) and Cocoa (8.5 and 8.6) Tks, the 
restriction about insertwidth is enforced, but with the X11 Tk, it is not.

Some examples using Cocoa Tk (8.5.15) and 3.4.0b3:
>>> from tkinter import *; r = Tk()
>>> w = Entry(r, insertborderwidth=1.3); w.pack(); w['insertborderwidth']
0
>>> w = Entry(r, insertborderwidth=1.3, insertwidth=10); w.pack(); 
>>> w['insertborderwidth']
1
>>> w = Entry(r, insertborderwidth=2); w.pack(); w['insertborderwidth']
0
>>> w = Entry(r, insertborderwidth=2, insertwidth=10); w.pack(); 
>>> w['insertborderwidth']
2
>>> w = Entry(r, insertborderwidth='10p'); w.pack(); w['insertborderwidth']
0
>>> w = Entry(r, insertborderwidth='10p', insertwidth=10); w.pack(); 
>>> w['insertborderwidth']
5

Using X11 Tk (8.6.1) on OS X:
>>> from tkinter import *; r = Tk()
>>> w = Entry(r, insertborderwidth=1.3); w.pack(); w['insertborderwidth']
1
>>> w = Entry(r, insertborderwidth=1.3, insertwidth=10); w.pack(); 
>>> w['insertborderwidth']
1
>>> w = Entry(r, insertborderwidth=2); w.pack(); w['insertborderwidth']
1
>>> w = Entry(r, insertborderwidth=2, insertwidth=10); w.pack(); 
>>> w['insertborderwidth']
2
>>> w = Entry(r, insertborderwidth='10p'); w.pack(); w['insertborderwidth']
1
>>> w = Entry(r, insertborderwidth='10p', insertwidth=10); w.pack(); 
>>> w['insertborderwidth']
5

So it appears the tests could be made to pass on OS X Cocoa and Carbon Tks and 
on X11 Tks if insertwidth is also set on the insertborderwidth tests.  That 
would need to be tested with Windows Tk.

--
versions: +Python 3.3

___
Python tracker 

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



[issue20456] Argument Clinic rollup patch, 2014/01/31

2014-01-31 Thread Larry Hastings

Larry Hastings added the comment:

Checked in!  I think that's the last new feature for Argument Clinic until 
after 3.4 ships.

--
resolution:  -> fixed
stage: patch review -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue20456] Argument Clinic rollup patch, 2014/01/31

2014-01-31 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 19d81cc213d7 by Larry Hastings in branch 'default':
#Issue 20456: Several improvements and bugfixes for Argument Clinic,
http://hg.python.org/cpython/rev/19d81cc213d7

--
nosy: +python-dev

___
Python tracker 

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



[issue20472] test_write_pty() of test_asyncio fails on "x86 Tiger 3.x" buildbot

2014-01-31 Thread Guido van Rossum

Guido van Rossum added the comment:

Well, there were other pty problems on OS X versions before Mavericks (10.9) -- 
let's just disable this test too using the same approach.

--

___
Python tracker 

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



[issue20471] test_signature_on_class() of test_inspect fails on "AMD64 FreeBSD 9.0 3.x" buildbot

2014-01-31 Thread Larry Hastings

Larry Hastings added the comment:

I'd like to investigate this, but I can't reproduce it.  So far it only happens 
on the "AMD64 FreeBSD 9.0 3.x" buildbot.

Is there a way I can get remote access to that machine?

--
assignee:  -> larry

___
Python tracker 

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



[issue20473] inspect.Signature no longer handles builtin classes correctly

2014-01-31 Thread Larry Hastings

New submission from Larry Hastings:

Yury: In revision 9433b380ad33 you changed inspect.Signature so that it cannot 
handle builtin classes.  Please fix it.

   >>> import _pickle
   >>> import inspect
   >>> str(inspect.signature(_pickle.Pickler))
   '()'
   >>> _pickle.Pickler.__text_signature__
   '(file, protocol=None, fix_imports=True)'

Those two strings should be the same.

I don't know any guaranteed way to tell a builtin class from a
user class.  So if you pass in a class, the best approach is to
do what it used to do: try from_builtin, and if it fails fail over
to the isinstance(obj, type) code.  You changed it to

if _signature_is_builtin(obj):
return Signature.from_builtin(obj)

This unambiguously returns the result from from_builtin.  Either
find a way that you can determine a class is a builtin 100%
reliably, or change this to *try* from_builtin but only return its
result if it's successful.

Your changes might have also caused #20471; that wasn't failing before.  I'm 
still investigating.

--
assignee: yselivanov
messages: 209871
nosy: larry, yselivanov
priority: normal
severity: normal
stage: needs patch
status: open
title: inspect.Signature no longer handles builtin classes correctly
type: behavior
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



[issue20472] test_write_pty() of test_asyncio fails on "x86 Tiger 3.x" buildbot

2014-01-31 Thread STINNER Victor

New submission from STINNER Victor:

http://buildbot.python.org/all/builders/x86%20Tiger%203.x/builds/7801/steps/test/logs/stdio

==
FAIL: test_write_pty (test.test_asyncio.test_events.PollEventLoopTests)
--
Traceback (most recent call last):
  File 
"/Users/db3l/buildarea/3.x.bolen-tiger/build/Lib/test/test_asyncio/test_events.py",
 line 1105, in test_write_pty
self.assertEqual(b'1', data)
AssertionError: b'1' != b''

--
messages: 209870
nosy: gvanrossum, haypo, pitrou
priority: normal
severity: normal
status: open
title: test_write_pty() of test_asyncio fails on "x86 Tiger 3.x" buildbot

___
Python tracker 

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



[issue20471] test_signature_on_class() of test_inspect fails on "AMD64 FreeBSD 9.0 3.x" buildbot

2014-01-31 Thread STINNER Victor

New submission from STINNER Victor:

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

==
ERROR: test_signature_on_class (test.test_inspect.TestSignatureObject)
--
Traceback (most recent call last):
  File 
"/usr/home/buildbot/buildarea/3.x.krah-freebsd/build/Lib/test/test_inspect.py", 
line 2198, in test_signature_on_class
self.assertEqual(str(inspect.signature(C)), '()')
  File "/usr/home/buildbot/buildarea/3.x.krah-freebsd/build/Lib/inspect.py", 
line 1734, in signature
return signature(object)
  File "/usr/home/buildbot/buildarea/3.x.krah-freebsd/build/Lib/inspect.py", 
line 1695, in signature
return Signature.from_builtin(obj)
  File "/usr/home/buildbot/buildarea/3.x.krah-freebsd/build/Lib/inspect.py", 
line 2196, in from_builtin
raise ValueError("no signature found for builtin {!r}".format(func))
ValueError: no signature found for builtin 

--
messages: 209869
nosy: haypo, larry
priority: normal
severity: normal
status: open
title: test_signature_on_class() of test_inspect fails on "AMD64 FreeBSD 9.0 
3.x" buildbot
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



[issue20354] tracemalloc causes segfault in "make profile-opt"

2014-01-31 Thread STINNER Victor

STINNER Victor added the comment:

I tested "./configure --enable-shared && make profile-opt" with the fix and it 
worked. So I close the issue. Thanks for the report Jan Matejek.

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

___
Python tracker 

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



[issue20354] tracemalloc causes segfault in "make profile-opt"

2014-01-31 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 44b554454971 by Victor Stinner in branch 'default':
Issue #20354: Mention the fix in Misc/NEWS
http://hg.python.org/cpython/rev/44b554454971

--

___
Python tracker 

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



[issue20470] "Fatal Python error: Bus error" on the SPARC Solaris 10 buildbot

2014-01-31 Thread STINNER Victor

STINNER Victor added the comment:

Since tracemalloc is present many times in the dump and the error is an 
unaligned memory access, it looks the issue #20354 which I just fixed.

(I also fixed issue #20162 which is another alignment issue, but it may be 
unrelated to this one.)

--

___
Python tracker 

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



[issue20354] tracemalloc causes segfault in "make profile-opt"

2014-01-31 Thread Roundup Robot

Roundup Robot added the comment:

New changeset fb2cdec2c70c by Victor Stinner in branch 'default':
Issue #20354: Fix alignment issue in the tracemalloc module on 64-bit
http://hg.python.org/cpython/rev/fb2cdec2c70c

--
nosy: +python-dev

___
Python tracker 

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



[issue20162] Test test_hash_distribution fails on RHEL 6.5 / ppc64

2014-01-31 Thread STINNER Victor

STINNER Victor added the comment:

I applied siphash_ppc64.patch. Thanks Yury V. Zaytsev for your report and your 
help to investigate this tricky bug.

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

___
Python tracker 

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



[issue20162] Test test_hash_distribution fails on RHEL 6.5 / ppc64

2014-01-31 Thread Roundup Robot

Roundup Robot added the comment:

New changeset caebb4f231da by Victor Stinner in branch 'default':
Issue #20162: Fix an alignment issue in the siphash24() hash function which
http://hg.python.org/cpython/rev/caebb4f231da

--

___
Python tracker 

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



[issue20470] "Fatal Python error: Bus error" on the SPARC Solaris 10 buildbot

2014-01-31 Thread STINNER Victor

STINNER Victor added the comment:

Example 1:
---

[ 15/388] test_tracemalloc
Fatal Python error: Bus error

Current thread 0x0001 (most recent call first):
  File "", line 321 in _call_with_frames_removed
  File "", line 1270 in load_module
  File "", line 549 in _requires_builtin_wrapper
  File "", line 1160 in _load_backward_compatible
  File "", line 1190 in _load_unlocked
  File "", line 2202 in _find_and_load_unlocked
  File "", line 2213 in _find_and_load
  File 
"/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/tracemalloc.py",
 line 8 in 
  File "", line 321 in _call_with_frames_removed
  File "", line 1447 in exec_module
  File "", line 1128 in _exec
  File "", line 1199 in _load_unlocked
  File "", line 2202 in _find_and_load_unlocked
  File "", line 2213 in _find_and_load
  File 
"/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/test/test_tracemalloc.py",
 line 4 in 
  File "", line 321 in _call_with_frames_removed
  File "", line 1447 in exec_module
  File "", line 1128 in _exec
  File "", line 1199 in _load_unlocked
  File "", line 2202 in _find_and_load_unlocked
  File "", line 2213 in _find_and_load
  File "", line 2230 in _gcd_import
  File 
"/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/importlib/__init__.py",
 line 104 in import_module
  File 
"/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/test/regrtest.py",
 line 1271 in runtest_inner
  File 
"/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/test/regrtest.py",
 line 967 in runtest
  File 
"/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/test/regrtest.py",
 line 763 in main
  File 
"/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/test/regrtest.py",
 line 1565 in main_in_temp_cwd
  File 
"/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/test/__main__.py",
 line 3 in 
  File 
"/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/runpy.py",
 line 86 in _run_code
  File 
"/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/runpy.py",
 line 171 in _run_module_as_main
...
---

Example 2:
---

[146/387/2] test_pydoc
Fatal Python error: Bus error

Thread 0x0054 (most recent call first):
  File 
"/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/threading.py",
 line 290 in wait
  File 
"/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/multiprocessing/queues.py",
 line 230 in _feed
  File 
"/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/threading.py",
 line 869 in run
  File 
"/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/threading.py",
 line 921 in _bootstrap_inner
  File 
"/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/threading.py",
 line 889 in _bootstrap

Current thread 0x0001 (most recent call first):
  File "", line 321 in _call_with_frames_removed
  File "", line 1272 in load_module
  File "", line 549 in _requires_builtin_wrapper
  File "", line 1162 in _load_backward_compatible
  File "", line 1200 in _load_unlocked
  File "", line 2149 in _find_and_load_unlocked
  File "", line 2160 in _find_and_load
  File 
"/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/pydoc.py",
 line 1997 in run
  File 
"/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/pydoc.py",
 line 2053 in apropos
  File 
"/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/test/test_pydoc.py",
 line 577 in test_apropos_with_bad_package
...
---

Example 3:
---

[127/389] test_threading
Fatal Python error: Bus error

Current thread 0x0001 (most recent call first):
  File "", line 321 in _call_with_frames_removed
  File "", line 1270 in load_module
  File "", line 549 in _requires_builtin_wrapper
  File "", line 1160 in _load_backward_compatible
  File "", line 1190 in _load_unlocked
  File "", line 2202 in _find_and_load_unlocked
  File "", line 2213 in _find_and_load
  File 
"/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/tracemalloc.py",
 line 8 in 
  File "", line 321 in _call_with_frames_removed
  File "", line 1447 in exec_module
  File "", line 1128 in _exec
  File "", line 1199 in _load_unlocked
  File "", line 2202 in _find_and_load_unlocked
  File "", line 2213 in _find_and_load
  File 
"/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/test/support/__init__.py",
 line 2167 in run_in_subinterp
  File 
"/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/test/test_threading.py",
 line 894 in test_threads_join
...
---

Example 4:
---
[ 41/389] test_capi
Fatal Python error: Bus error

Current thread 0x0001 (most recent call first):
  File "", line 321 in _call_with_frames_removed
  File "", line 1270 in load_module

[issue20470] "Fatal Python error: Bus error" on the SPARC Solaris 10 buildbot

2014-01-31 Thread STINNER Victor

New submission from STINNER Victor:

On the buildbot "SPARC Solaris 10 (cc, 64b) [SB] 3.x", Python crash randomly 
with bus error. It looks like a regression introduced since the build 1422.

Since it's a crash, it probably comes from a change in C module and so I 
expected this changeset:
http://hg.python.org/cpython/rev/2fbb3c77f1577acc60f57401e07d7feceea66841
"Issue #17919: Fixed integer overflow in the eventmask parameter."

=> see issue #17919

http://buildbot.python.org/all/builders/SPARC%20Solaris%2010%20%28cc%2C%2064b%29%20%5BSB%5D%203.x/builds/1422/

Change #34778
CategoryNone
Changed by  R David Murray 
Changed at  Sat 14 Dec 2013 16:26:20
Branch  default
Revision561822250761b47d643656a0be9c71f9d770252b
Comments

#19970: fix additional typo in 3.4 asyncio docs.

Changed files
Doc/library/asyncio-protocol.rst
Change #34781
CategoryNone
Changed by  Serhiy Storchaka 
Changed at  Sat 14 Dec 2013 17:19:15
Branch  default
Revision2fbb3c77f1577acc60f57401e07d7feceea66841
Comments

Issue #17919: Fixed integer overflow in the eventmask parameter.

Changed files
Lib/test/test_devpoll.py
Lib/test/test_poll.py
Misc/NEWS
Modules/selectmodule.c
Change #34784
CategoryNone
Changed by  Serhiy Storchaka 
Changed at  Sat 14 Dec 2013 18:43:21
Branch  default
Revision804406d79b45d02b1ea0ae2da45cfd5769141830
Comments

Issue #19623: Fixed writing to unseekable files in the aifc module.

Changed files
Lib/aifc.py
Lib/test/audiotests.py
Lib/test/test_aifc.py
Lib/test/test_sunau.py
Lib/test/test_wave.py
Misc/NEWS
Change #34786
CategoryNone
Changed by  Serhiy Storchaka 
Changed at  Sat 14 Dec 2013 19:08:18
Branch  default
Revision953d8ec1aeb3bff787204343a1c1837a17dbf68c
Comments

Null merge

Changed files
Lib/test/test_getargs2.py
Lib/test/test_index.py
Lib/test/test_int.py
Misc/NEWS
Objects/abstract.c
Objects/longobject.c

--
messages: 209861
nosy: haypo
priority: normal
severity: normal
status: open
title: "Fatal Python error: Bus error" on the SPARC Solaris 10 buildbot
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



[issue20469] ssl.getpeercert() should include extensions

2014-01-31 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +christian.heimes, giampaolo.rodola, janssen, pitrou
versions: +Python 3.5 -Python 3.4

___
Python tracker 

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



[issue20444] Reduce logging.config.Converting duplication of code

2014-01-31 Thread dongwm

dongwm added the comment:

yes, Your modification is better

--

___
Python tracker 

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



[issue20452] test_timeout_rounding() of test_asyncio fails on "x86 Ubuntu Shared 3.x" buildbot

2014-01-31 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a090804862f8 by Victor Stinner in branch 'default':
Issue #20452: test_asyncio checks also the granularity
http://hg.python.org/cpython/rev/a090804862f8

New changeset 60a960434e5c by Victor Stinner in branch 'default':
Issue #20452: Fix test_time_and_call_at() of test_asyncio on Windows
http://hg.python.org/cpython/rev/60a960434e5c

--

___
Python tracker 

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



[issue20319] concurrent.futures.wait() can block forever even if Futures have completed

2014-01-31 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Shouldn't it be fixed in 3.3 too?

--
nosy: +pitrou

___
Python tracker 

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



[issue20452] test_timeout_rounding() of test_asyncio fails on "x86 Ubuntu Shared 3.x" buildbot

2014-01-31 Thread STINNER Victor

STINNER Victor added the comment:

Debug info on the Windows failure:

* The busy loop took 89.99 ms
* time.motononic() (which is GetTickCount64()) has a resolution of 10.0144 ms

http://buildbot.python.org/all/builders/x86%20Windows7%203.x/builds/7948/steps/test/logs/stdio

==
FAIL: test_time_and_call_at 
(test.test_asyncio.test_base_events.BaseEventLoopTests)
--
Traceback (most recent call last):
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\test_asyncio\test_base_events.py",
 line 129, in test_time_and_call_at
time.get_clock_info('monotonic')))
AssertionError: False is not true : (0.0899985098839, 0.0100144, 
namespace(adjustable=False, implementation='GetTickCount64()', monotonic=True, 
resolution=0.0100144))

--

___
Python tracker 

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



[issue20319] concurrent.futures.wait() can block forever even if Futures have completed

2014-01-31 Thread Brian Quinlan

Brian Quinlan added the comment:

Oops, no. That was junk due to my sloppiness. I’ll fix it in a minute.

On Jan 31, 2014, at 5:03 PM, STINNER Victor  wrote:

> 
> STINNER Victor added the comment:
> 
>> New changeset 0bcf23a52d55 by Brian Quinlan in branch 'default':
>> Issue #20319: concurrent.futures.wait() can block forever even if Futures 
>> have completed
>> http://hg.python.org/cpython/rev/0bcf23a52d55
> 
> Hum, the change also contains:
> 
> +Fix warning message when `os.chdir()` fails inside
> +  `test.support.temp_cwd()`.  Patch by Chris Jerdonek.
> 
> Is it related to this issue?
> 
> --
> 
> ___
> Python tracker 
> 
> ___

--

___
Python tracker 

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



[issue20319] concurrent.futures.wait() can block forever even if Futures have completed

2014-01-31 Thread STINNER Victor

STINNER Victor added the comment:

> New changeset 0bcf23a52d55 by Brian Quinlan in branch 'default':
> Issue #20319: concurrent.futures.wait() can block forever even if Futures 
> have completed
> http://hg.python.org/cpython/rev/0bcf23a52d55

Hum, the change also contains:

+Fix warning message when `os.chdir()` fails inside
+  `test.support.temp_cwd()`.  Patch by Chris Jerdonek.

Is it related to this issue?

--

___
Python tracker 

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



[issue20319] concurrent.futures.wait() can block forever even if Futures have completed

2014-01-31 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0bcf23a52d55 by Brian Quinlan in branch 'default':
Issue #20319: concurrent.futures.wait() can block forever even if Futures have 
completed
http://hg.python.org/cpython/rev/0bcf23a52d55

--
nosy: +python-dev

___
Python tracker 

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



[issue20319] concurrent.futures.wait() can block forever even if Futures have completed

2014-01-31 Thread Brian Quinlan

Brian Quinlan added the comment:

Thanks very much for the patch Glenn!

--
status: open -> closed

___
Python tracker 

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



[issue20271] urllib.parse.urlparse() accepts wrong URLs

2014-01-31 Thread Yury Selivanov

Yury Selivanov added the comment:

I think we should start raising an exception in 3.5 (backwards incompatible 
change to back-port it)

--
nosy: +yselivanov
versions: +Python 3.5 -Python 2.7, Python 3.3, Python 3.4

___
Python tracker 

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



[issue18162] Add index attribute to IndexError

2014-01-31 Thread Yury Selivanov

Changes by Yury Selivanov :


--
versions: +Python 3.5 -Python 3.4

___
Python tracker 

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



[issue1178] IDLE - add "paste code" functionality

2014-01-31 Thread Terry J. Reedy

Terry J. Reedy added the comment:

By already implemented, I presume Mark was referring to the PastePyShell.py 
extension that is part of the IdleX package http://idlex.sourceforge.net/. I 
plan to take a look.

--

___
Python tracker 

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



[issue19031] Make help() enum aware

2014-01-31 Thread Yury Selivanov

Changes by Yury Selivanov :


--
nosy: +yselivanov

___
Python tracker 

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



[issue19404] Simplify per-instance control of help() output

2014-01-31 Thread Yury Selivanov

Changes by Yury Selivanov :


--
nosy: +yselivanov

___
Python tracker 

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



[issue20469] ssl.getpeercert() should include extensions

2014-01-31 Thread A Hettinger

Changes by A Hettinger :


--
type:  -> enhancement

___
Python tracker 

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



[issue20469] ssl.getpeercert() should include extensions

2014-01-31 Thread A Hettinger

New submission from A Hettinger:

I have crafted an ssl cert which contains a custom extension, when I check the 
cert using OpenSSL on the commandline, I clearly see the extension, but when I 
have the server try to pprint.pprint(s.getpeercert()), I do not see these 
fields.

Overall, I think it would be helpful to include extensions in 
ssl.getpeercert()'s returned list, but if there is a workaround for this 
(probably rare) issue, I would appreciate it.

(I have only tested 3.4, not head)

--
components: Extension Modules
messages: 209850
nosy: oninoshiko
priority: normal
severity: normal
status: open
title: ssl.getpeercert() should include extensions
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



[issue20462] Python IDLE auto closed when creating a new file or open existing file

2014-01-31 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Please ask for help debugging your system and installation on python-list, 
where more people, including some who know things I don't, can see and respond. 
Add more information about exactly what you did. On installation, install for 
one user or everyone. Did you select 'make default Python'? Then, how did you 
get 'Edit with IDLE'?

The SO question, or one identical to it, was posted on python-list a couple of 
weeks ago. I asked for more info and gave detailed instructions on how to 
obtain such, but with no response have not been able to answer.

--

___
Python tracker 

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



[issue14854] faulthandler: fatal error with "SystemError: null argument to internal routine"

2014-01-31 Thread STINNER Victor

STINNER Victor added the comment:

Oh, in fact I already fixed this issue long time ago in Python 3.3 and 3.4.
---
changeset:   78341:2f1494d243ad
user:Victor Stinner 
date:Tue Jul 31 02:55:49 2012 +0200
files:   Lib/test/test_faulthandler.py Python/pythonrun.c
description:
Fix initialization of the faulthandler module

faulthandler requires the importlib if "-X faulthandler" option is present on
the command line, so initialize faulthandler after importlib.

Add also an unit test.
---

I'm closing the issue. Thanks for the report.

--
resolution:  -> fixed
status: open -> closed
versions: +Python 3.3

___
Python tracker 

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



[issue17394] Add slicing support to collections.deque

2014-01-31 Thread Yury Selivanov

Changes by Yury Selivanov :


--
versions: +Python 3.5 -Python 3.4

___
Python tracker 

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



[issue14665] faulthandler prints tracebacks in reverse order

2014-01-31 Thread STINNER Victor

STINNER Victor added the comment:

The issue #19306 changed faulthandler output to mention explicitly the frame 
order. I'm still opposed to reverse_frames.patch for the reason I gave above. 
Can I close this issue as "wont fix"?

--

___
Python tracker 

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



[issue20467] Confusing wording about __init__

2014-01-31 Thread Ethan Furman

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



[issue18554] os.__all__ is incomplete

2014-01-31 Thread Yury Selivanov

Yury Selivanov added the comment:

bump?

--
nosy: +yselivanov

___
Python tracker 

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



[issue17911] Extracting tracebacks does too much work

2014-01-31 Thread Yury Selivanov

Changes by Yury Selivanov :


--
keywords:  -easy
nosy: +yselivanov
versions: +Python 3.5 -Python 3.4

___
Python tracker 

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



[issue13657] IDLE doesn't support sys.ps1 and sys.ps2.

2014-01-31 Thread Terry J. Reedy

Terry J. Reedy added the comment:

If there is a discussion of sys.ps1 and sys.ps2 in the tutorial, then add a 
note that they are not supported in Idle. The only quick action on this issue 
would be to reject and close. I am still opposed to the proposal as presented, 
for reasons stated in my first message.

To expand a bit on what I said before: the prompts 'work', at least for the 
Windows console because
a) it is limited to fixed-pitch fonts, so that '>>>' and '...' have the same 
width;
b) its selection box is always a rectangle, so if one starts with the first 
character of a line and move down and right, the prompts are excluded.

I do not know what is true for *nix consoles, but neither is true for Idle. I 
would only tolerate the added nuisance of a secondary prompt if it were made to 
take up the same space (pixels) as the primary prompt so that indents could be 
4 spaces instead of 8 space tabs.

If we were to get the prompts from the remote process, they should be sent as 
part of every normal response output instead of being a separate enquiry.

Part of my opposition to custom prompts is that the standard prompts, even 
though a nuisance, are instantly recognizable in messages. The can also be 
recognized and removed by code, as when pasting. See #1178, which I hope to act 
on soon. Neither is true of custom prompts.

--

___
Python tracker 

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



[issue13651] Improve redirection in urllib

2014-01-31 Thread Yury Selivanov

Changes by Yury Selivanov :


--
versions: +Python 3.5 -Python 3.4

___
Python tracker 

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



[issue17170] string method lookup is too slow

2014-01-31 Thread Yury Selivanov

Changes by Yury Selivanov :


--
nosy: +yselivanov

___
Python tracker 

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



[issue17170] string method lookup is too slow

2014-01-31 Thread Yury Selivanov

Changes by Yury Selivanov :


--
versions: +Python 3.5 -Python 3.4

___
Python tracker 

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



[issue12915] Add inspect.locate and inspect.resolve

2014-01-31 Thread Yury Selivanov

Changes by Yury Selivanov :


--
nosy: +yselivanov
versions: +Python 3.5 -Python 3.4

___
Python tracker 

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



[issue12971] os.isdir() should contain skiplinks=False in arguments

2014-01-31 Thread Yury Selivanov

Changes by Yury Selivanov :


--
versions: +Python 3.5 -Python 3.4

___
Python tracker 

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



[issue8743] set() operators don't work with collections.Set instances

2014-01-31 Thread Yury Selivanov

Changes by Yury Selivanov :


--
nosy: +yselivanov

___
Python tracker 

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



[issue2226] Small _abcoll Bugs / Oddities

2014-01-31 Thread Yury Selivanov

Changes by Yury Selivanov :


--
nosy: +yselivanov

___
Python tracker 

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



[issue20468] resource module documentation is incorrect

2014-01-31 Thread Kurt Rose

New submission from Kurt Rose:

The documentation in the resource module for get_page_size() is incorrect.

resource.getpagesize()
Returns the number of bytes in a system page. (This need not be the same as the 
hardware page size.) This function is useful for determining the number of 
bytes of memory a process is using. The third element of the tuple returned by 
getrusage() describes memory usage in pages; multiplying by page size produces 
number of bytes.

On Linux, the value returned in getrusage().ru_maxrss is in kilobytes.  On OS-X 
it is in bytes.  Ideally, this could be put into the documentation, but at 
least remove the inaccurate recommendation to multiply maxrss by page size :-)

--
assignee: ronaldoussoren
components: Macintosh
messages: 209844
nosy: Kurt.Rose, ronaldoussoren
priority: normal
severity: normal
status: open
title: resource module documentation is incorrect
versions: Python 2.7, Python 3.1, Python 3.2, 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



[issue20467] Confusing wording about __init__

2014-01-31 Thread Mark Lawrence

New submission from Mark Lawrence:

I found the wording here 
http://docs.python.org/3/reference/datamodel.html#object.__init__ very 
confusing as it implies that __init__ is the class constructor and not the 
initialiser.  Specifically it says "As a special constraint on constructors, no 
value may be returned; doing so will cause a TypeError to be raised at 
runtime".  Can we please have the wording changed so that it states exactly 
what this method does?  Possibly changes are also needed in the equivalent 
section for __new__.

--
assignee: docs@python
components: Documentation
messages: 209843
nosy: BreamoreBoy, docs@python
priority: normal
severity: normal
status: open
title: Confusing wording about __init__
type: enhancement
versions: Python 2.7, Python 3.3, Python 3.4

___
Python tracker 

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



[issue10544] yield expression inside generator expression does nothing

2014-01-31 Thread Yury Selivanov

Changes by Yury Selivanov :


--
versions: +Python 3.5 -Python 3.3, Python 3.4

___
Python tracker 

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



[issue19157] ipaddress.IPv6Network.hosts function omits network and broadcast addresses

2014-01-31 Thread Yury Selivanov

Changes by Yury Selivanov :


--
nosy: +ncoghlan

___
Python tracker 

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



[issue18805] ipaddress netmask/hostmask parsing bugs

2014-01-31 Thread Yury Selivanov

Yury Selivanov added the comment:

bump?

--
nosy: +yselivanov

___
Python tracker 

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



[issue14965] super() and property inheritance behavior

2014-01-31 Thread Yury Selivanov

Changes by Yury Selivanov :


--
versions: +Python 3.5 -Python 3.2, Python 3.3

___
Python tracker 

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



[issue17444] multiprocessing.cpu_count() should use hw.availcpu on Mac OS X

2014-01-31 Thread Yury Selivanov

Yury Selivanov added the comment:

bump?

--
nosy: +yselivanov

___
Python tracker 

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



[issue14515] tempfile.TemporaryDirectory documented as returning object but returns name

2014-01-31 Thread Yury Selivanov

Yury Selivanov added the comment:

bump?

--
nosy: +yselivanov

___
Python tracker 

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



[issue12691] tokenize.untokenize is broken

2014-01-31 Thread Yury Selivanov

Yury Selivanov added the comment:

bump?

--
nosy: +yselivanov
versions: +Python 3.4 -Python 3.2, Python 3.3

___
Python tracker 

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



[issue7325] tempfile.mkdtemp() does not return absolute pathname when relative dir is specified

2014-01-31 Thread Yury Selivanov

Yury Selivanov added the comment:

bump? see also #20267

--
nosy: +yselivanov

___
Python tracker 

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



[issue20466] Example in Doc/extending/embedding.rst fails to compile cleanly

2014-01-31 Thread Zachary Ware

New submission from Zachary Ware:

Reported by Riccardo Rossi on docs@:

The Very High Level Embedding example fails to compile cleanly, due to 
Py_SetProgramName expecting a wchar_t * argument, while the example passes a 
char *.

--
assignee: docs@python
components: Documentation
messages: 209837
nosy: docs@python, zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: Example in Doc/extending/embedding.rst fails to compile cleanly
type: behavior
versions: Python 3.3, Python 3.4

___
Python tracker 

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



[issue14911] generator.throw() documentation inaccurate

2014-01-31 Thread Yury Selivanov

Yury Selivanov added the comment:

Kristjan, can you write a patch for this?

--
nosy: +yselivanov

___
Python tracker 

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



[issue9232] Allow trailing comma in any function argument list.

2014-01-31 Thread Yury Selivanov

Changes by Yury Selivanov :


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



[issue14854] faulthandler: fatal error with "SystemError: null argument to internal routine"

2014-01-31 Thread Yury Selivanov

Yury Selivanov added the comment:

bump?

--
nosy: +yselivanov
versions: +Python 3.4 -Python 3.3

___
Python tracker 

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



[issue14665] faulthandler prints tracebacks in reverse order

2014-01-31 Thread Yury Selivanov

Changes by Yury Selivanov :


--
versions: +Python 3.5 -Python 3.2, Python 3.3

___
Python tracker 

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



[issue11107] Cache constant "slice" instances

2014-01-31 Thread Yury Selivanov

Changes by Yury Selivanov :


--
nosy: +yselivanov

___
Python tracker 

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



[issue11107] Cache constant "slice" instances

2014-01-31 Thread Yury Selivanov

Changes by Yury Selivanov :


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



[issue20456] Argument Clinic rollup patch, 2014/01/31

2014-01-31 Thread Larry Hastings

Larry Hastings added the comment:

Updated the patch.

* The "methoddef_ifndef" template is now sent to the "buffer"
  destination by default.  I expected posixmodule to have an #ifndef,
  I was surprised to find _import had one too.  Both files touched
  to move the buffer to an appropriate spot.

* Fixed the "original" "preset" so it explicitly sets all three new
  templates just like the actual default.

* Forgot a minor fix that was in revision 1: when generating the
  docstring for a function using optional groups, suppress the
  "self/type/module" first argument in the signature.  (The signature
  isn't parsable by inspect.Signature, so we go ahead and insert
  something user-readable like the docstrings before Argument Clinic
  used to do.)
  
* Changed _dbm.dbm.get to no longer use optional groups.  Why was it
  doing that in the first place?  There's now exactly one function
  checked in using optional groups, curses.window.addch.

--
Added file: 
http://bugs.python.org/file33841/larry.clinic.rollup.2014.01.31.2.diff

___
Python tracker 

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



[issue20463] sqlite dumpiter dumps invalid script when virtual tables are used

2014-01-31 Thread R. David Murray

Changes by R. David Murray :


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



[issue1402289] Allow mappings as globals (was: Fix dictionary subclass ...)

2014-01-31 Thread Yury Selivanov

Changes by Yury Selivanov :


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



[issue8733] list type and UserList do not call super in __init__ and therefore, they cannot be parents in a multiple inheritence scheme

2014-01-31 Thread Yury Selivanov

Changes by Yury Selivanov :


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



[issue11117] Implementing Async IO

2014-01-31 Thread Yury Selivanov

Yury Selivanov added the comment:

I guess PEP 3156 covers this, closing this one.

--
nosy: +yselivanov
resolution:  -> out of date
status: open -> closed

___
Python tracker 

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



[issue20218] Add `pathlib.Path.write` and `pathlib.Path.read`

2014-01-31 Thread Ram Rachum

Ram Rachum added the comment:

Patch with documentation attached.

--
Added file: http://bugs.python.org/file33840/patch.patch

___
Python tracker 

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



[issue16991] Add OrderedDict written in C

2014-01-31 Thread Eric Snow

Eric Snow added the comment:

I agree with Antoine.  It's first on my todo list for 3.5.  My goal is that 
this and a couple of related features will land during the PyCon sprints.

--

___
Python tracker 

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



[issue20453] json.load() error message changed in 3.4

2014-01-31 Thread Tshepang Lekhonkhobe

Changes by Tshepang Lekhonkhobe :


--
nosy: +tshepang

___
Python tracker 

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



[issue20465] Upgrade SQLite to 3.8.3 with 3.4.0 Windows and OS X installers

2014-01-31 Thread Ned Deily

New submission from Ned Deily:

The SQLite project has requested that we consider shipping SQLite version 3.8.3 
with the Windows and OS X binary installers for Python 3.4.0, primarily to make 
available support for the new Common Table Expressions feature.  3.8.3 is 
expected to be officially released 2014-02-03.

--
components: Build
messages: 209830
nosy: larry, loewis, ned.deily
priority: release blocker
severity: normal
stage: needs patch
status: open
title: Upgrade SQLite to 3.8.3 with 3.4.0 Windows and OS X installers
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



[issue20464] Update distutils sample config file in Doc/install/index.rst

2014-01-31 Thread Zachary Ware

New submission from Zachary Ware:

>From docs@:

On Thu, Jan 16, 2014 at 2:56 AM, Peter Bröcker  
wrote:
> Hi,
>
> I have tried to set up the distutils config files for a custom module
> installation. Using the suggested snippet  from
>
> http://docs.python.org/2/install/
>
> [install]
> install-base=$HOME/python
> install-purelib=lib
> install-platlib=lib.$PLAT
> install-scripts=scripts
> install-data=data did not work for me.
>
> Instead, I had to add install-headers and additionally modify all paths
> to include $base:
>
> [install]
> install-base=/some/dir
> install-purelib=$base/lib
> install-platlib=$base/lib.$PLAT
> install-scripts=$base/scripts
> install-headers=$base/include
> install-data=$base/data
>
>
> I'm unsure if this is actually a bug, but I could only resolve this with
> the help of this answer on stackoverflow:
> http://stackoverflow.com/a/12768721
>
> Best regards,
> Peter

--
assignee: docs@python
components: Distutils, Documentation
messages: 209829
nosy: docs@python, zach.ware
priority: normal
severity: normal
stage: test needed
status: open
title: Update distutils sample config file in Doc/install/index.rst
type: behavior
versions: Python 2.7, Python 3.3, Python 3.4

___
Python tracker 

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



[issue18916] Various out-of-date Lock text in 3.2+

2014-01-31 Thread Christopher Welborn

Christopher Welborn added the comment:

I meant to say 'attempting to work on the 3.4 arg clinic version', i can't make 
any promises. I'm using it as a learning experience but probably won't yield 
any real results any time soon.

--

___
Python tracker 

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



[issue17633] zipimport's handling of namespace packages is incorrect

2014-01-31 Thread Thomas Heller

Changes by Thomas Heller :


--
nosy: +theller

___
Python tracker 

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



[issue20463] sqlite dumpiter dumps invalid script when virtual tables are used

2014-01-31 Thread Yury Selivanov

Changes by Yury Selivanov :


--
nosy: +ghaering

___
Python tracker 

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



[issue17633] zipimport's handling of namespace packages is incorrect

2014-01-31 Thread Eric V. Smith

Changes by Eric V. Smith :


--
keywords: +needs review
versions: +Python 3.5 -Python 3.4

___
Python tracker 

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



[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-01-31 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 8a91132ed6aa by Yury Selivanov in branch 'default':
inspect.Signauture.from_function: validate duck functions in Signature 
constructor #17159
http://hg.python.org/cpython/rev/8a91132ed6aa

--

___
Python tracker 

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



[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files

2014-01-31 Thread Brett Cannon

Brett Cannon added the comment:

It took a bit of finessing but I managed to convert cmath in a way that didn't 
make it worse compared to before AC.

I now consider this part of the derby done and ready for Larry to review.

--
assignee: brett.cannon -> larry
Added file: http://bugs.python.org/file33839/cmath_derby.diff

___
Python tracker 

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



[issue20462] Python IDLE auto closed when creating a new file or open existing file

2014-01-31 Thread Ned Deily

Changes by Ned Deily :


--
components: +IDLE
nosy: +terry.reedy

___
Python tracker 

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



[issue20463] sqlite dumpiter dumps invalid script when virtual tables are used

2014-01-31 Thread Ronny Pfannschmidt

Changes by Ronny Pfannschmidt :


--
components: +Extension Modules
type:  -> behavior

___
Python tracker 

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



[issue20463] sqlite dumpiter dumps invalid script when virtual tables are used

2014-01-31 Thread Ronny Pfannschmidt

New submission from Ronny Pfannschmidt:

when using virtual tables, dumpiter generates a broken db script
virtual table entries must be created as master table entries
the sqlite tools dump does that correctly
however pythons iterdump  seems to do that rather different and wrong

sqlite3 test.db "create virtual table test using fts4(example);"
---
sqlite dump
PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
PRAGMA writable_schema=ON;
INSERT INTO 
sqlite_master(type,name,tbl_name,rootpage,sql)VALUES('table','test','test',0,'CREATE
 VIRTUAL TABLE test using fts4(example)');
CREATE TABLE 'test_content'(docid INTEGER PRIMARY KEY, 'c0example');
CREATE TABLE 'test_segments'(blockid INTEGER PRIMARY KEY, block BLOB);
CREATE TABLE 'test_segdir'(level INTEGER,idx INTEGER,start_block 
INTEGER,leaves_end_block INTEGER,end_block INTEGER,root BLOB,PRIMARY KEY(level, 
idx));
CREATE TABLE 'test_docsize'(docid INTEGER PRIMARY KEY, size BLOB);
CREATE TABLE 'test_stat'(id INTEGER PRIMARY KEY, value BLOB);
PRAGMA writable_schema=OFF;
COMMIT;
--
python iterdump "import sqlite3;
c=sqlite3.connect("test.db");
print("\n".join(c.iterdump()))"
BEGIN TRANSACTION;
CREATE VIRTUAL TABLE test using fts4(example);
CREATE TABLE 'test_content'(docid INTEGER PRIMARY KEY, 'c0example');
CREATE TABLE 'test_docsize'(docid INTEGER PRIMARY KEY, size BLOB);
CREATE TABLE 'test_segdir'(level INTEGER,idx INTEGER,start_block 
INTEGER,leaves_end_block INTEGER,end_block INTEGER,root BLOB,PRIMARY KEY(level, 
idx));
CREATE TABLE 'test_segments'(blockid INTEGER PRIMARY KEY, block BLOB);
CREATE TABLE 'test_stat'(id INTEGER PRIMARY KEY, value BLOB);
COMMIT;

--
messages: 209825
nosy: Ronny.Pfannschmidt
priority: normal
severity: normal
status: open
title: sqlite dumpiter dumps invalid script when virtual tables are used
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



[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-01-31 Thread Stefan Behnel

Stefan Behnel added the comment:

Thanks a lot!

--

___
Python tracker 

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



[issue18916] Various out-of-date Lock text in 3.2+

2014-01-31 Thread Christopher Welborn

Christopher Welborn added the comment:

Here's the 3.3 version, with the PyThread_allocate_lock comment in the lock 
type.
Still working on the 3.4 argument clinic version.

--
Added file: 
http://bugs.python.org/file33838/threading.lock.docs.3.3-with-comment.patch

___
Python tracker 

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



[issue18916] Various out-of-date Lock text in 3.2+

2014-01-31 Thread Christopher Welborn

Changes by Christopher Welborn :


Removed file: http://bugs.python.org/file33819/threading.lock.docs3.3.patch

___
Python tracker 

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



[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-01-31 Thread Yury Selivanov

Yury Selivanov added the comment:

OK, closing this one.
Stefan, Larry, thank you for your reviews and time.

--
resolution:  -> fixed
stage: patch review -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-01-31 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 32a660a52aae by Yury Selivanov in branch 'default':
inspect.signature: Support duck-types of Python functions (Cython, for 
instance) #17159
http://hg.python.org/cpython/rev/32a660a52aae

--
nosy: +python-dev

___
Python tracker 

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



[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-01-31 Thread Yury Selivanov

Yury Selivanov added the comment:

> Explicitly rejecting classes is a good idea, IMHO, as is requiring that any 
> function-like object must be callable, obviously.

Yeah, I think it's good to restrict this duck-typing as much as possible. 
Committing the patch.

--

___
Python tracker 

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



[issue18801] inspect.classify_class_attrs() misclassifies object.__new__()

2014-01-31 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d0f95094033d by Yury Selivanov in branch 'default':
NEWS: Add news item for #18801
http://hg.python.org/cpython/rev/d0f95094033d

--

___
Python tracker 

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



[issue18801] inspect.classify_class_attrs() misclassifies object.__new__()

2014-01-31 Thread Yury Selivanov

Changes by Yury Selivanov :


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

___
Python tracker 

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



[issue18801] inspect.classify_class_attrs() misclassifies object.__new__()

2014-01-31 Thread Yury Selivanov

Yury Selivanov added the comment:

Not sure if we need to backport this to older python versions

--

___
Python tracker 

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



[issue18801] inspect.classify_class_attrs() misclassifies object.__new__()

2014-01-31 Thread Roundup Robot

Roundup Robot added the comment:

New changeset c38f99554be4 by Yury Selivanov in branch 'default':
inspect.classify_class_attrs: Classify object.__new__ and __init__ correctly 
#18801
http://hg.python.org/cpython/rev/c38f99554be4

--
nosy: +python-dev

___
Python tracker 

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



[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-01-31 Thread Stefan Behnel

Stefan Behnel added the comment:

Tried it, works for me.

Explicitly rejecting classes is a good idea, IMHO, as is requiring that any 
function-like object must be callable, obviously.

--

___
Python tracker 

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



[issue13657] IDLE doesn't support sys.ps1 and sys.ps2.

2014-01-31 Thread Zachary Ware

Zachary Ware added the comment:

Robin Zimmermann on docs@ raised this issue again.  Is this likely to be fixed 
soon, or would it be good to document this limitation of IDLE in the tutorial 
(since the tutorial is the most likely place for someone to be confused by 
this)?

--
nosy: +zach.ware

___
Python tracker 

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



[issue17128] OS X system openssl deprecated - installer should build local libssl

2014-01-31 Thread Ned Deily

Ned Deily added the comment:

Update: the MacPorts certsync daemon has matured and is now included as
an optional MacPorts port.

It's not a perfect solution as noted in the macports-devel thread:

>>The only catch is that custom added certificates or trust anchors need
>>to be in the system keychain to be picked up by certsync by default.
>Yeah, this was an unfortunate trade-off; since certsync is a system-wide 
>daemon, and the resulting CA certs file is also system-wide, it seemed to
>be the most appropriate course of action. Most of the alternatives involve
>patching OpenSSL and some of the software that depends on it, which is a
>road I'm personally wary of committing to.

http://comments.gmane.org/gmane.os.apple.macports.devel/22653

It works by registering a launchd agent that is run whenever any of the
system keychain files or trust setting files are modified.  That raises the
issues of when and how a Python install should register the agent (will
likely need admin/root privileges to do that) and how to delete the agent
(we currently don't have a formal uninstall procedure on OS X).  It would
be easier to manage these things with the binary installer-based Pythons,
as provided by python.org, in which case Pythons built by users from source
would still use the deprecated Apple-supplied libssl and libcrypto.  But
I'd like to separate out the building of third-party libraries, like
openssl, from the installer build process so that user source builds can
take advantage of features like this.

--
versions: +Python 3.5 -Python 3.4

___
Python tracker 

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



[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-01-31 Thread Yury Selivanov

Changes by Yury Selivanov :


--
keywords: +patch
Added file: http://bugs.python.org/file33837/sig_func_ducktype_03.patch

___
Python tracker 

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



[issue17162] Py_LIMITED_API needs a PyType_GenericDealloc

2014-01-31 Thread Martin v . Löwis

Martin v. Löwis added the comment:

I'm not sure we are looking at the same code base, I look at

http://hg.python.org/cpython/file/b56ce3410ca6/Lib/collections/__init__.py#l401

and ISTM that collections.Counter is *not* implemented in C. Also, according to

http://hg.python.org/cpython/file/b56ce3410ca6/Include/object.h#l486

I see that _PyType_LookupId is *not* in the limited API (and it really 
shouldn't).

In any case, _PyType_LookupId cannot replace PyType_GetSlot, since it returns a 
PyObject* from the namespace of the type. Many of the slots don't actually have 
a Python name (including tp_free, which is the OP's original use case), plus 
the value returned ought to be a function pointer, not a PyObject*.

--

___
Python tracker 

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



  1   2   >