[issue18747] Re-seed OpenSSL's PRNG after fork

2013-10-27 Thread Georg Brandl

Georg Brandl added the comment:

#19227 must be solved before anything is backported to the security branches.

--
dependencies: +test_multiprocessing_xxx hangs under Gentoo buildbots

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



[issue18861] Problems with recursive automatic exception chaining

2013-10-27 Thread Benjamin Peterson

Benjamin Peterson added the comment:

raise ... from None explictly silences the printing of exception context, so I 
don't see the problem.

--

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



[issue19405] Fix outdated comments in the _sre module

2013-10-27 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b7f71babc622 by Serhiy Storchaka in branch '2.7':
Issue #19405: Fixed outdated comments in the _sre module.
http://hg.python.org/cpython/rev/b7f71babc622

New changeset 220e3e40d176 by Serhiy Storchaka in branch '3.3':
Issue #19405: Fixed outdated comments in the _sre module.
http://hg.python.org/cpython/rev/220e3e40d176

New changeset d6f427f94d85 by Serhiy Storchaka in branch 'default':
Issue #19405: Fixed outdated comments in the _sre module.
http://hg.python.org/cpython/rev/d6f427f94d85

--
nosy: +python-dev

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



[issue19329] Faster compiling of charset regexpes

2013-10-27 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d5498d9d9bb0 by Serhiy Storchaka in branch 'default':
Issue #19329: Optimized compiling charsets in regular expressions.
http://hg.python.org/cpython/rev/d5498d9d9bb0

--
nosy: +python-dev

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



[issue19329] Faster compiling of charset regexpes

2013-10-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you Antoine for your review.

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

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



[issue19405] Fix outdated comments in the _sre module

2013-10-27 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
assignee: docs@python - serhiy.storchaka
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

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



[issue19412] Add a test.support decorator for tests that require C level docstrings

2013-10-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I suppose that some tests (e.g. test_genexps.py) still fail with -O2.

--

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



[issue17997] ssl.match_hostname(): sub string wildcard should not match IDNA prefix

2013-10-27 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 10d0edadbcdd by Georg Brandl in branch '3.3':
Issue #17997: Change behavior of ``ssl.match_hostname()`` to follow RFC 6125,
http://hg.python.org/cpython/rev/10d0edadbcdd

--
nosy: +python-dev

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



[issue16041] poplib: unlimited readline() from connection

2013-10-27 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 68029048c9c6 by Georg Brandl in branch '3.3':
Issue #16041: CVE-2013-1752: poplib: Limit maximum line lengths to 2048 to
http://hg.python.org/cpython/rev/68029048c9c6

--

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



[issue16039] imaplib: unlimited readline() from connection

2013-10-27 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4b0364fc5711 by Georg Brandl in branch '3.3':
Issue #16039: CVE-2013-1752: Change use of readline in imaplib module to limit
http://hg.python.org/cpython/rev/4b0364fc5711

--

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



[issue16037] httplib: header parsing is unlimited

2013-10-27 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e445d02e5306 by Georg Brandl in branch '3.3':
Issue #16037: HTTPMessage.readheaders() raises an HTTPException when more than
http://hg.python.org/cpython/rev/e445d02e5306

--

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



[issue16040] nntplib: unlimited readline() from connection

2013-10-27 Thread Roundup Robot

Roundup Robot added the comment:

New changeset fc88bd80d925 by Georg Brandl in branch '3.3':
Issue #16040: CVE-2013-1752: nntplib: Limit maximum line lengths to 2048 to
http://hg.python.org/cpython/rev/fc88bd80d925

--

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



[issue19227] test_multiprocessing_xxx hangs under Gentoo buildbots

2013-10-27 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

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



[issue18747] Re-seed OpenSSL's PRNG after fork

2013-10-27 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

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



[issue16041] poplib: unlimited readline() from connection

2013-10-27 Thread Georg Brandl

Georg Brandl added the comment:

Also merged to default.

--
versions:  -Python 3.3, Python 3.4

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



[issue17997] ssl.match_hostname(): sub string wildcard should not match IDNA prefix

2013-10-27 Thread Georg Brandl

Georg Brandl added the comment:

Also merged to default.

--
versions:  -Python 3.3, Python 3.4

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



[issue16040] nntplib: unlimited readline() from connection

2013-10-27 Thread Georg Brandl

Georg Brandl added the comment:

Also merged to default.

--
versions:  -Python 3.3, Python 3.4

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



[issue16039] imaplib: unlimited readline() from connection

2013-10-27 Thread Georg Brandl

Georg Brandl added the comment:

Also merged to default.

--
versions:  -Python 3.3, Python 3.4

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



[issue16037] httplib: header parsing is unlimited

2013-10-27 Thread Georg Brandl

Georg Brandl added the comment:

Also merged to default.

--
versions:  -Python 3.3, Python 3.4

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



[issue19227] test_multiprocessing_xxx hangs under Gentoo buildbots

2013-10-27 Thread Georg Brandl

Georg Brandl added the comment:

OK, I'm going to apply atfork_prepare.patch for 3.3.3rc1.  If there is any 
indication of a continuing problem, we'll revert the whole re-seeding code for 
the final.

--

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



[issue19227] test_multiprocessing_xxx hangs under Gentoo buildbots

2013-10-27 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 021ca321b26e by Georg Brandl in branch '3.3':
Issue #19227: Try to fix deadlocks caused by re-seeding then OpenSSL
http://hg.python.org/cpython/rev/021ca321b26e

New changeset d3a13a7be9e9 by Georg Brandl in branch 'default':
#19227: merge with 3.3
http://hg.python.org/cpython/rev/d3a13a7be9e9

--

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



[issue18964] test_tcl fails when _tkinter linked with Tcl 8.4

2013-10-27 Thread Georg Brandl

Georg Brandl added the comment:

For some reason, this still fails on the OpenIndiana builder:

http://buildbot.python.org/all/builders/AMD64%20OpenIndiana%203.3/builds/1104/steps/test/logs/stdio

--
nosy: +georg.brandl
status: closed - open

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



[issue19406] PEP 453: add the ensurepip module

2013-10-27 Thread Nick Coghlan

Nick Coghlan added the comment:

Draft docs patch attached. This splits out a new Software Packaging and 
Distribution section in the main docs index, with distutils, ensurepip and 
venv as the specific entries.

There's a couple of questions I need answered regarding the behaviour of pip in 
order to document --user properly:

* how does pip install react when --user is passed while a virtual environment 
is active?
* how does pip install react when both --root and --user are passed?

--
Added file: http://bugs.python.org/file32386/pep453_ensurepip_docs.diff

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



[issue19390] clinic.py: unhandled syntax error

2013-10-27 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b496ed363c2d by Larry Hastings in branch 'default':
Issue #19390: Argument Clinic no longer accepts malformed Python and C ids.
http://hg.python.org/cpython/rev/b496ed363c2d

--
nosy: +python-dev

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



[issue19414] OrderedDict.values() behavior for modified instance

2013-10-27 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


--
nosy: +rhettinger

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



[issue19390] clinic.py: unhandled syntax error

2013-10-27 Thread Larry Hastings

Larry Hastings added the comment:

Fixed.

And, yeah, Clinic actually uses ast.parse where it can.  (FWIW, most of the 
parser was re-written by Dmitry Jemerov during the PyCon US 2013 sprints, 
though I wound up re-re-writing most of what he did.)

--
assignee:  - larry
resolution:  - fixed
stage:  - committed/rejected
status: open - closed
type:  - behavior

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



[issue19227] test_multiprocessing_xxx hangs under Gentoo buildbots

2013-10-27 Thread Charles-François Natali

Charles-François Natali added the comment:

Note that no matter where the atfork-hook is executed (prepare,
parent, child), it will still be deadlock-prone in case of
double-fork, since the hook will effectively be called after the first
fork (and before the second one). And double-fork is common, e.g. when
creating daemon processes.

--

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



[issue18306] os.stat gives exception for Windows junctions in v3.3

2013-10-27 Thread John Jefferies

John Jefferies added the comment:

Hello Tim,

The fact that it works on 64-bit Python obviously reduces the priority. 
I will make a point of choosing the 64-bit version in the future.

FWIW. I'm dubious about the problem being solely attributable to WOWs 
handling of junctions because my Python 3.2 (that doesn't have the 
problem) is also 32-bit. There must be something else, even if that 
something isn't going to be fixed.

Thankyou for spending time on this.

John

On 24/10/2013 09:35, Tim Golden wrote:
 Tim Golden added the comment:

 Just revisited this to see if I could close off. One thing occurred to me 
 which should have come up before: this situation will be aggravated by WOW64 
 file redirection.

 If I run 64-bit Python on 64-bit Windows I can successfully stat links in 
 %windir%\system32 under 3.4 and 3.3. If I run 32-bit Python on 64-bit 
 Windows, I get the error you describe because Windows will silently redirect 
 the 32-bit Python process towards %windir%\SysWow64 where the junction (or, 
 possibly, its target) does not exist.

 Given that I'm able to stat %windir%\system32 junctions on both versions, I'm 
 going to close this as works-for-me. I think there's a case for a 
 bigger-picture look at the resolution of reparse points across the stdlib but 
 that would have to be its own issue.

 --
 assignee:  - tim.golden
 resolution:  - works for me
 stage: test needed - committed/rejected
 status: open - closed

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue18306
 ___

--

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



[issue18964] test_tcl fails when _tkinter linked with Tcl 8.4

2013-10-27 Thread Ned Deily

Ned Deily added the comment:

With 3.3.3rc1 and Tcl/Tk 8.4, I'm now seeing on OS X 10.5 with ActiveTcl 8.4.20:


==
ERROR: test_merge (test.test_tcl.TclTest)
--
Traceback (most recent call last):
  File 
/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/test/test_tcl.py,
 line 280, in test_merge
((call('dict', 'create', 12, '\u20ac', b'\xe2\x82\xac', (3.4,)),),
_tkinter.TclError: invalid command name dict

--
--
Ran 25 tests in 8.921s

FAILED (errors=1, skipped=2)
test test_tcl failed

--

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



[issue19183] PEP 456 Secure and interchangeable hash algorithm

2013-10-27 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 I'm still looking for a 64bit big endian box

Have you tried the PPC64 PowerLinux box? It's in the stable buildbots for a 
reason :-)

--

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



[issue18964] test_tcl fails when _tkinter linked with Tcl 8.4

2013-10-27 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5a8aa1102f82 by Serhiy Storchaka in branch '3.3':
Fixed merge test for Tcl/Tk 8.5 (issue #18964).
http://hg.python.org/cpython/rev/5a8aa1102f82

--

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



[issue18964] test_tcl fails when _tkinter linked with Tcl 8.4

2013-10-27 Thread Georg Brandl

Georg Brandl added the comment:

Ahh, the newly committed test for merge needs the same guard as the other 
'dict' calls!  I'll fix that in the release clone for 3.3.3 final.

--

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



[issue18964] test_tcl fails when _tkinter linked with Tcl 8.4

2013-10-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I hope this will help. Thank you Georg and Ned.

--

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



[issue16809] Tk 8.6.0 introduces TypeError. (Tk 8.5.13 works)

2013-10-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Since there are no other reports about 8.6 I close this issue.

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

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



[issue10734] test_ttk test_heading_callback fails with newer Tk 8.5

2013-10-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I think this patch fixes this issue.

--
keywords: +patch
nosy: +serhiy.storchaka
stage:  - patch review
versions: +Python 3.4 -Python 3.2
Added file: http://bugs.python.org/file32387/test_heading_callback.patch

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



[issue17933] format str bug in urllib request.py

2013-10-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Giampaolo's suggestion LGTM.

--
nosy: +serhiy.storchaka

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



[issue17933] format str bug in urllib request.py

2013-10-27 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
nosy: +georg.brandl

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



[issue19183] PEP 456 Secure and interchangeable hash algorithm

2013-10-27 Thread Christian Heimes

Christian Heimes added the comment:

I can no longer find the configuration for custom path. It's still documented 
but there is no field for repo path.

http://buildbot.python.org/all/buildslaves/edelsohn-powerlinux-ppc64

--

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



[issue19183] PEP 456 Secure and interchangeable hash algorithm

2013-10-27 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 I can no longer find the configuration for custom path. It's still documented 
 but there is no field for repo path.

http://buildbot.python.org/all/builders/PPC64%20PowerLinux%20custom

(usually, just replace 3.x with custom in the URL)

--

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



[issue8372] socket: Buffer overrun while reading unterminated AF_UNIX addresses

2013-10-27 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
versions: +Python 3.4 -Python 3.1

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



[issue3367] Uninitialized value read in parsetok.c

2013-10-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I see a crash with valgring even without hitting Ctrl-D.

$ valgrind --db-attach=yes --suppressions=Misc/valgrind-python.supp ./python
==26172== Memcheck, a memory error detector
==26172== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==26172== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==26172== Command: ./python
==26172== 
==26172== Conditional jump or move depends on uninitialised value(s)
==26172==at 0x414E578: __wcslen_sse2 (wcslen-sse2.S:95)
==26172==by 0x807788D: calculate_path (getpath.c:647)
==26172==by 0x807803B: Py_GetProgramFullPath (getpath.c:875)
==26172==by 0x8070C5E: _PySys_Init (sysmodule.c:1628)
==26172==by 0x8060680: _Py_InitializeEx_Private (pythonrun.c:400)
==26172==by 0x8060939: Py_InitializeEx (pythonrun.c:467)
==26172==by 0x806094D: Py_Initialize (pythonrun.c:473)
==26172==by 0x807956A: Py_Main (main.c:683)
==26172==by 0x805CFE3: main (python.c:69)
==26172== 
==26172== 
==26172==  Attach to debugger ? --- [Return/N/n/Y/y/C/c] 

--
nosy: +serhiy.storchaka

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



[issue4331] Add functools.partialmethod

2013-10-27 Thread alon horev

alon horev added the comment:

I think the following test demonstrates the API we're looking for.
1. Am I missing any functionality?
2. How does partialmethod relate to @absolutemethod?

from functools import partial

class partialmethod(object):

def __init__(self, func, *args, **keywords):
# func could be a descriptor like classmethod which isn't callable,
# so we can't inherit from partial (it verifies func is callable)
if isinstance(func, partialmethod):
# flattening is mandatory in order to place cls/self before all 
other arguments
# it's also more efficient since only one function will be called
self.func = func.func
self.args = func.args + args
self.keywords = {}
self.keywords.update(func.keywords)
self.keywords.update(keywords)
else:
self.func = func
self.args = args
self.keywords = keywords

def _make_unbound_method(self):
def _method(*args, **keywords):
keywords.update(self.keywords)
cls_or_self, *rest = args
call_args = (cls_or_self,) + self.args + tuple(rest)
return self.func(*call_args, **keywords)
return _method

def __get__(self, obj, cls):
get = getattr(self.func, __get__, None)
if get is None:
if obj is None:
return self._make_unbound_method()
return partial(self._make_unbound_method(), obj) # returns a bound 
method
else:
callable = get(obj, cls)
if callable is self.func:
return self._make_unbound_method()
return partial(callable, *self.args, **self.keywords)

class A(object):
def add(self, x, y):
return self, x + y

add10 = partialmethod(add, 10)
add10class = partialmethod(classmethod(add), 10)
add10static = partialmethod(staticmethod(add), 'self', 10)

return15 = partialmethod(add10, 5) # nested partialmethod

add2partial = partial(add, x=2)
return12 = partialmethod(add2partial, y=10) # partialmethod over partial

def test():
cls = A
instance = cls()

assert instance.add10class(5) == (cls, 15)
assert cls.add10class(5) == (cls, 15)

assert instance.add10static(5) == ('self', 15)
assert cls.add10static(5) == ('self', 15)

assert instance.add10(5) == (instance, 15)
assert cls.add10(instance, 5) == (instance, 15)

assert instance.return15() == (instance, 15)
assert cls.return15(instance) == (instance, 15)

assert instance.return12() == (instance, 12)
assert cls.return12(instance) == (instance, 12)

test()

--

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



[issue10241] gc fixes for module m_copy attribute

2013-10-27 Thread Stefan Krah

Stefan Krah added the comment:

One example of a leaked object is hexversion, from sysmodule.c:1615.
I tried adding it to sys_deletes[] in import.c, but it did not help.

See valgrind.out for other leaks.

--

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



[issue4331] Add functools.partialmethod

2013-10-27 Thread Nick Coghlan

Nick Coghlan added the comment:

On 27 Oct 2013 22:17, alon horev rep...@bugs.python.org wrote:


 alon horev added the comment:

 I think the following test demonstrates the API we're looking for.
 1. Am I missing any functionality?

The keyword arg handling is backwards for unbound methods (the call time
kwds should override the preset ones).

Otherwise, looks good to me.

 2. How does partialmethod relate to @absolutemethod?

Do you mean @abstractmethod?

We need a __isabstractmethod__ property implementation that delegates the
question to the underlying descriptor.

See http://docs.python.org/dev/library/abc#abc.abstractmethod for details.

--

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



[issue6083] Reference counting bug in PyArg_ParseTuple and PyArg_ParseTupleAndKeywords

2013-10-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Accepting an arbitrary sequence when (...) is used in the format string was 
introduced in changeset 0ef1071cb7fe.

--
versions:  -Python 3.2

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



[issue11508] Virtual Interfaces cause uuid._find_mac to raise a ValueError under Linux

2013-10-27 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
assignee:  - serhiy.storchaka
nosy: +serhiy.storchaka
stage:  - patch review
type: crash - behavior
versions: +Python 3.4

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



[issue11508] Virtual Interfaces cause uuid._find_mac to raise a ValueError under Linux

2013-10-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Kent, can you please submit a contributor form?

http://python.org/psf/contrib/contrib-form/
http://python.org/psf/contrib/

--

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



[issue19416] NNTP page has incorrect links

2013-10-27 Thread Roy Smith

New submission from Roy Smith:

http://docs.python.org/2/library/nntplib.html contains intra-page references 
such as:

NNTP.next()
Send a NEXT command. Return as for stat().

The problem is that the link for stat points to the stat module (i.e. 
http://docs.python.org/2/library/stat.html#module-stat).  It should be pointing 
to the NNTP.stat() entry on this page.

The problem exists for :

NNTP.next()
NNTP.last()
NNTP.head(id)
NNTP.body(id[, file])
NNTP.article(id)

and maybe some others I missed.

--
assignee: docs@python
components: Documentation
messages: 201456
nosy: docs@python, roysmith
priority: normal
severity: normal
status: open
title: NNTP page has incorrect links
versions: Python 2.7

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



[issue13153] IDLE crashes when pasting non-BMP unicode char on Py3

2013-10-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Martin, could you please review this patch? This bug affects not only IDLE, but 
any Tkinter application which uses callbacks with arguments. Encoding/decoding 
error during converting arguments from Tcl to Python causes immediate finishing 
Tcl main loop (and normally closing an application).

--

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



[issue13153] IDLE crashes when pasting non-BMP unicode char on Py3

2013-10-27 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
priority: normal - high

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



[issue19183] PEP 456 Secure and interchangeable hash algorithm

2013-10-27 Thread Christian Heimes

Changes by Christian Heimes li...@cheimes.de:


Added file: http://bugs.python.org/file32388/257597d20fa8.diff

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



[issue16904] http.client.HTTPConnection.send double send data

2013-10-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Seems this bug was fixed in issue16658.

--
nosy: +serhiy.storchaka
resolution: remind - duplicate
stage:  - committed/rejected
status: open - closed
superseder:  - Missing return in HTTPConnection.send()
type: crash - behavior

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



[issue19183] PEP 456 Secure and interchangeable hash algorithm

2013-10-27 Thread Christian Heimes

Christian Heimes added the comment:

Nick, please review the latest patch. I have addressed Antoine's review in 
257597d20fa8.diff. I'll update the PEP as soon as you are happy with the patch.

--
assignee:  - ncoghlan

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



[issue18861] Problems with recursive automatic exception chaining

2013-10-27 Thread Nick Coghlan

Nick Coghlan added the comment:

Nothing is lost either way, it just isn't displayed by default.

While I can see the appeal of treating an outer context differently from an 
inner one, I don't see any way for the exception context suppression 
machinery to tell the difference.

The traceback *display* machinery might be able to figure it out by looking at 
the traceback details, but such a search could be quite expensive.

--
nosy: +ncoghlan

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



[issue19362] Documentation for len() fails to mention that it works on sets

2013-10-27 Thread Ramchandra Apte

Ramchandra Apte added the comment:

I also prefer collection.

--
nosy: +Ramchandra Apte

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



[issue19406] PEP 453: add the ensurepip module

2013-10-27 Thread Donald Stufft

Donald Stufft added the comment:

You cannot use --user in a virtual environment (well a venv, no idea about a 
pyvenv - but it should get a similar error message IMO if it doesn't).

If you use --root and --user together it will install to the --root location, 
using the user layout, so instead of installing to 
/home/dstufft/.local/lib/python3.4/site-packages/ it will install to 
/value/of/root/home/dstufft/.local/lib/python3.4/site-packages/

--

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



[issue18684] Pointers point out of array bound in _sre.c

2013-10-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Patch updated to tip (the code was changed since issue17998). It no more uses 
division.

--

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



[issue10241] gc fixes for module m_copy attribute

2013-10-27 Thread Stefan Krah

Stefan Krah added the comment:

IMO we have two references to many newly created values in _PySys_Init():

   SET_SYS_FROM_STRING(hexversion,
PyLong_FromLong(PY_VERSION_HEX));

One from PyLong_FromLong() and the other from PyDict_SetItemString() in the
macro.  So it may well be that the fix for this issue just exposes the fact
that the last reference is no longer reachable if m_copy is cleared.

--

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



[issue19183] PEP 456 Secure and interchangeable hash algorithm

2013-10-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I suggest move to Include/pyhash.h and Python/pyhash.c only _Py_HashBytes() and 
string hash algorithm related constants, and don't touch PyObject_Hash(), 
_Py_HashDouble(), etc. So if anybody want change string hashing algorithm, it 
need only replace these two minimal files.

--

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



[issue19183] PEP 456 Secure and interchangeable hash algorithm

2013-10-27 Thread Christian Heimes

Christian Heimes added the comment:

PyObject_Hash() and PyObject_HashNotImplemented() should not have been moved to 
pyhash.h. But the other internal helper methods should be kept together.

--

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



[issue18520] Fixes bugs found by pyfailmalloc during Python initialization

2013-10-27 Thread Stefan Krah

Stefan Krah added the comment:

Victor, could you look at the end of #10241?  Starting from 31796b188bec,
many values in _PySys_Init() have 2 references. Why is that required?

--
nosy: +skrah

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



[issue10241] gc fixes for module m_copy attribute

2013-10-27 Thread Stefan Krah

Stefan Krah added the comment:

See also 31796b188bec.

--

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



[issue10241] gc fixes for module m_copy attribute

2013-10-27 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Does pulling the Py_DECREF before the if fix the leaks?

--

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



[issue10241] gc fixes for module m_copy attribute

2013-10-27 Thread Stefan Krah

Stefan Krah added the comment:

Antoine Pitrou rep...@bugs.python.org wrote:
 Does pulling the Py_DECREF before the if fix the leaks?

Yes, but I get an additional failure in test_capi.  Apparently not all values
require the DECREF.  Got to look on a case by case basis.

--

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



[issue18520] Fixes bugs found by pyfailmalloc during Python initialization

2013-10-27 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5eb00460e6e8 by Victor Stinner in branch 'default':
Issue #18520: fix reference leak in _PySys_Init()
http://hg.python.org/cpython/rev/5eb00460e6e8

--

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



[issue18520] Fixes bugs found by pyfailmalloc during Python initialization

2013-10-27 Thread STINNER Victor

STINNER Victor added the comment:

 Victor, could you look at the end of #10241?  Starting from 31796b188bec,
 many values in _PySys_Init() have 2 references. Why is that required?

It was a mistake, it should now be fixed. Nice catch.

--

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



[issue15634] Add serialized decorator to the threading module

2013-10-27 Thread R. David Murray

R. David Murray added the comment:

Are you saying that because you've lost interest, or because you think we have? 
 Sometimes things get lost here for a while, but picked up again later...

--

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



[issue19412] Add a test.support decorator for tests that require C level docstrings

2013-10-27 Thread R. David Murray

R. David Murray added the comment:

Nick: I agree with your reasoning.  I don't know why I said what I did on the 
other issue.

--

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



[issue18520] Fixes bugs found by pyfailmalloc during Python initialization

2013-10-27 Thread Stefan Krah

Stefan Krah added the comment:

Ah, thanks. I was wondering if there was some obscure reason that escaped me.

--

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



[issue10241] gc fixes for module m_copy attribute

2013-10-27 Thread Stefan Krah

Stefan Krah added the comment:

Valgrind is happy after the recent 5eb00460e6e8.

--

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



[issue19411] binascii.hexlify docs say it returns a string (it returns bytes)

2013-10-27 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
nosy: +r.david.murray

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



[issue19415] test_gdb fails when using --without-doc-strings on Fedora 19

2013-10-27 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
nosy: +dmalcolm

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



[issue3367] Uninitialized value read in parsetok.c

2013-10-27 Thread Stefan Krah

Stefan Krah added the comment:

Serhiy, probably a false positive:

https://bugs.kde.org/show_bug.cgi?id=298281

--

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



[issue17668] re.split loses characters matching ungrouped parts of a pattern

2013-10-27 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
status: open - pending

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



[issue13592] repr(regex) doesn't include actual regex

2013-10-27 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
assignee:  - serhiy.storchaka
nosy: +serhiy.storchaka

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



[issue11204] re module: strange behaviour of space inside {m, n}

2013-10-27 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
status: open - pending

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



[issue18306] os.stat gives exception for Windows junctions in v3.3

2013-10-27 Thread Tim Golden

Tim Golden added the comment:

If you can put together a self-contained test case which fails on 
3.3/3.4 I'm quite happy to re-open this. Given the nature of the issue, 
you'll have to be quite precise as to Windows version, whether 32/64, 
whether running as Administrator, and exact Python version.

Feel free to call mklink or junction to create the link so that it's 
very clear what's linking to what and where.

--

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



[issue17441] Do not cache re.compile

2013-10-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

So what is a decision?

--

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



[issue14255] tempfile.gettempdir() didn't return the path with correct case.

2013-10-27 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d5a9a1ba47ee by Tim Golden in branch 'default':
Issue14255 Don't flatten case of tempdir
http://hg.python.org/cpython/rev/d5a9a1ba47ee

--
nosy: +python-dev

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



[issue19417] bdb test coverage

2013-10-27 Thread Colin Williams

New submission from Colin Williams:

This one is pretty involved.  The tests might reach into the guts of the 
modules a bit too much, I'd be open to less invasive suggestions.

--
files: bdb.patch
keywords: patch
messages: 201481
nosy: Colin.Williams
priority: normal
severity: normal
status: open
title: bdb test coverage
Added file: http://bugs.python.org/file32389/bdb.patch

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



[issue19273] Update PCbuild/readme.txt

2013-10-27 Thread Tim Golden

Changes by Tim Golden m...@timgolden.me.uk:


--
stage: patch review - committed/rejected

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



[issue18861] Problems with recursive automatic exception chaining

2013-10-27 Thread Nikolaus Rath

Nikolaus Rath added the comment:

Benjamin: I think that in most cases the intention of a .. from None is to 
disable printing of a stack trace for a specific exception when it occurs in 
the try .. except block. (In the example, that would be suppressing the 
stacktrace for the Second exception, because it is explicity converted to 
Third). I do not think that this ought to effect the printing of exceptions 
that occured previously and higher-up in the call chain.

In other words, I think it is natural to expect that

def foo():
   try:
  do_stuff
   except Something:
  raise SomethingElse from None

disables printing the stack trace for `Something` exceptions when they occur in 
the try..except block -- but not to hide the exception context for exceptions 
that occured before foo() was even called.

--

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



[issue6181] Tkinter.Listbox several minor issues

2013-10-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

LGTM.

--

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



[issue6167] Tkinter.Scrollbar: the activate method needs to return a value, and set should take only two args

2013-10-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I withdraw my comment about arbitrary number of arguments. Tk itself raises an 
exception if the number of arguments is wrong.

--

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



[issue19418] audioop.c giving signed/unsigned warnings on Windows

2013-10-27 Thread Tim Golden

New submission from Tim Golden:

Modules/audioop.c is giving compile warnings on Windows against lines 18  437.

..\Modules\audioop.c(18): warning C4146: unary minus operator applied to 
unsigned type, result still unsigned
..\Modules\audioop.c(437): warning C4146: unary minus operator applied to 
unsigned type, result still unsigned

--
components: Build
messages: 201485
nosy: serhiy.storchaka, tim.golden
priority: normal
severity: normal
status: open
title: audioop.c giving signed/unsigned warnings on Windows
type: compile error
versions: Python 3.4

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



[issue19418] audioop.c giving signed/unsigned warnings on Windows

2013-10-27 Thread Tim Golden

Tim Golden added the comment:

The attached patch appears to fix the problem.

--
keywords: +patch
Added file: http://bugs.python.org/file32390/audioop.diff

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



[issue6167] Tkinter.Scrollbar: the activate method needs to return a value, and set should take only two args

2013-10-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

The patch updated to tip and added deprecation warning for the index keyword 
argument.

--
Added file: http://bugs.python.org/file32391/Scrollbar_fixes_2.diff

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



[issue15792] Fix compiler options for x64 builds on Windows

2013-10-27 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7c46b1b239fe by Tim Golden in branch 'default':
Issue 15792 Correct build options on Win64. Patch by Jeremy Kloth.
http://hg.python.org/cpython/rev/7c46b1b239fe

--
nosy: +python-dev

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



[issue4965] Can doc index of html version be separately scrollable?

2013-10-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I don't notice any improvement. :(

--

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



[issue19418] audioop.c giving signed/unsigned warnings on Windows

2013-10-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

But it adds warnings on 32-bit platform with GCC.

/home/serhiy/py/cpython/Modules/audioop.c:18:61: warning: integer overflow in 
expression [-Woverflow]
/home/serhiy/py/cpython/Modules/audioop.c: In function ‘audioop_minmax’:
/home/serhiy/py/cpython/Modules/audioop.c:437:33: warning: integer overflow in 
expression [-Woverflow]

--

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



[issue19418] audioop.c giving signed/unsigned warnings on Windows

2013-10-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

What if use (int)-0x8000 instead of -(int)0x8000? Does it silence 
warnings on Windows?

--

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



[issue19418] audioop.c giving signed/unsigned warnings on Windows

2013-10-27 Thread Tim Golden

Tim Golden added the comment:

I don't think it will, given MS description of the compiler warning:

http://msdn.microsoft.com/en-us/library/4kh09110%28v=vs.100%29.aspx

but I'll certainly give it a go.

--

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



[issue16427] Faster hash implementation

2013-10-27 Thread Christian Heimes

Christian Heimes added the comment:

Antoine, I have addressed your concern Well, the quality of the hash function 
is clearly reduced in patch 
http://hg.python.org/features/pep-456/rev/765930d944a5

 s = set()
 for i in range(256):
... s.add(hash(abcdfeg + chr(i))  0xff)
... 
 len(s)
256
 s = set()
 for i in range(256):
... s.add(hash(abcdfeghabcdefg + chr(i))  0xff)
... 
 len(s)
256

--

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



[issue16427] Faster hash implementation

2013-10-27 Thread Christian Heimes

Changes by Christian Heimes li...@cheimes.de:


--
assignee:  - christian.heimes

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



[issue6160] Tkinter.Spinbox: fix for bbox and removed some uninteresting returns

2013-10-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I withdraw my previous comment because the bbox command newer returns empty 
result. The patch LGTM.

--
versions: +Python 3.3, Python 3.4 -Python 3.1, Python 3.2

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



[issue19418] audioop.c giving signed/unsigned warnings on Windows

2013-10-27 Thread Tim Peters

Tim Peters added the comment:

Use

-0x7FFF-1

Nobody should complain about that, because it's standard C ;-)

On Sun, Oct 27, 2013 at 3:20 PM, Tim Golden rep...@bugs.python.org wrote:

 Tim Golden added the comment:

 I don't think it will, given MS description of the compiler warning:

 http://msdn.microsoft.com/en-us/library/4kh09110%28v=vs.100%29.aspx

 but I'll certainly give it a go.

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue19418
 ___
 ___
 Python-bugs-list mailing list
 Unsubscribe: 
 https://mail.python.org/mailman/options/python-bugs-list/tim.peters%40gmail.com


--
nosy: +tim.peters

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



[issue19418] audioop.c giving signed/unsigned warnings on Windows

2013-10-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

LGTM. Do you want commit a patch?

--
stage:  - commit review
versions: +Python 2.7, Python 3.3

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



[issue6159] Tkinter.PanedWindow: docstring fixes, change in paneconfigure and removed some returns

2013-10-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

LGTM, but perhaps renaming tagOrId worth deprecation warning.

--
nosy: +serhiy.storchaka

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



[issue6159] Tkinter.PanedWindow: docstring fixes, change in paneconfigure and removed some returns

2013-10-27 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
versions: +Python 3.3, Python 3.4 -Python 3.1, Python 3.2

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



[issue6157] Tkinter.Text: changes for bbox, debug, and edit methods.

2013-10-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Guilherme, do you want commit your patches or let me do this for your?

--
versions:  -Python 3.2

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



  1   2   >