[issue24712] Docs page's sidebar vibrates on mouse wheel scroll on Chrome.

2015-07-24 Thread Steve Dower

Changes by Steve Dower :


--
components:  -2to3 (2.x to 3.x conversion tool), Benchmarks, Build, 
Cross-Build, Demos and Tools, IO, Installation, Interpreter Core, Library 
(Lib), Tests, Unicode, Windows, XML, email
nosy:  -steve.dower

___
Python tracker 

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



[issue2263] struct.pack() + numpy int raises SystemError

2015-07-24 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
status: open -> pending

___
Python tracker 

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



[issue11872] cPickle gives strange error for large objects.

2015-07-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Is this issue still actual?

--
nosy: +serhiy.storchaka
status: open -> pending

___
Python tracker 

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



[issue24712] Docs page's sidebar vibrates on mouse wheel scroll on Chrome.

2015-07-24 Thread asal ada

Changes by asal ada :


--
components: +2to3 (2.x to 3.x conversion tool), Benchmarks, Build, Cross-Build, 
Demos and Tools, IO, Installation, Interpreter Core, Library (Lib), Tests, 
Unicode, Windows, XML, email
nosy: +barry, haypo, paul.moore, r.david.murray, steve.dower, tim.golden, 
zach.ware

___
Python tracker 

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



[issue24708] strop.replace Integer Overflow

2015-07-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7b5513e5afd2 by Benjamin Peterson in branch '2.7':
proper overflow checks for mymemreplace (closes #24708)
https://hg.python.org/cpython/rev/7b5513e5afd2

--
nosy: +python-dev
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue24708] strop.replace Integer Overflow

2015-07-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is modified patch. In new code we try to avoid integer wrap around. It is 
safer to raise MemoryError right after PyMem_MALLOC(), otherwise it would 
possible to reraise unrelated exception instead MemoryError if strop.replace() 
is called without clearing current exception (should never happen, but...). 
Error message made consistent with str.replace().

--
Added file: 
http://bugs.python.org/file40010/strop.replace_Integer_Overflow_2.patch

___
Python tracker 

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



[issue24708] strop.replace Integer Overflow

2015-07-24 Thread John Leitch

John Leitch added the comment:

Oops. Here's a corrected patch.

--
Added file: 
http://bugs.python.org/file40009/strop.replace_Integer_Overflow.patch

___
Python tracker 

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



[issue24708] strop.replace Integer Overflow

2015-07-24 Thread John Leitch

Changes by John Leitch :


Removed file: 
http://bugs.python.org/file40006/strop.replace_Integer_Overflow.patch

___
Python tracker 

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



[issue24708] strop.replace Integer Overflow

2015-07-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

The patch looks truncated at 120th column.

--
assignee:  -> serhiy.storchaka
components: +Extension Modules
nosy: +serhiy.storchaka
stage:  -> patch review
type: security -> crash

___
Python tracker 

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



[issue24712] Docs page's sidebar vibrates on mouse wheel scroll on Chrome.

2015-07-24 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +ezio.melotti

___
Python tracker 

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



[issue24613] array.fromstring Use After Free

2015-07-24 Thread Benjamin Peterson

Benjamin Peterson added the comment:

I think it should raise an exception. It's hard to feel too bad about 
preventing corruption even if only "occasional".

--

___
Python tracker 

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



[issue24647] Document argparse.REMAINDER as being equal to "..."

2015-07-24 Thread Ned Deily

Changes by Ned Deily :


--
assignee:  -> docs@python
components: +Documentation -Library (Lib)
nosy: +bethard, docs@python
versions: +Python 2.7, Python 3.6

___
Python tracker 

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



[issue24646] Python accepts SSL certificate that should be rejected on OSX

2015-07-24 Thread Ned Deily

Ned Deily added the comment:

Ronald, FWIW, your test program seems to work without crashing on both 10.6 and 
10.8; not surprisingly, it failed to compile on 10.5 (no 'errSecSuccess').

--

___
Python tracker 

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-07-24 Thread Russell Keith-Magee

Russell Keith-Magee added the comment:

Are you using the libffi sources vendored into the Python source tree, or a 
more recent version? I can verify that libffi v3.2 works on ARMv7 (on iOS, 
anyway), and there's been plenty of changes to the ARM source tree since the 
Python version was vendored in.

--

___
Python tracker 

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



[issue14373] C implementation of functools.lru_cache

2015-07-24 Thread Ned Deily

Ned Deily added the comment:

Sorry about the delay in testing the patch.  I just confirmed (1) that I am 
still able to produce a segfault on OS X as described above under the specific 
conditions with a 10.6-like installer built with the current 3.5 tip and (2) 
that, with clru_cache_new.patch applied to the same current 3.5 tip, I no 
longer see the segfault.  So it looks like a fix.

--

___
Python tracker 

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



[issue12978] Figure out extended attributes on BSDs

2015-07-24 Thread Ned Deily

Ned Deily added the comment:

There certainly is interest in supporting extended attributes on additional 
platforms.  Thanks for the patch, William, and the positive comments, Billy.  
Since this probably falls into the category of new feature, it should be 
targeted for 3.6, now that 3.5 is in feature-freeze and nearing release.  The 
gating factor is getting a core developer to review and champion it.

--
stage:  -> patch review
versions: +Python 3.6 -Python 3.3

___
Python tracker 

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



[issue24712] Docs page's sidebar vibrates on mouse wheel scroll on Chrome.

2015-07-24 Thread Carol Willing

Carol Willing added the comment:

Biwan John, thanks for the issue report.

I can confirm that there is jitter due to scroll speed lag in Chrome for Python 
2.7 docs. This behavior does not happen with Python 3.x docs. No issues with 
Firefox.

I am using Mac OS X 10.10 with up-to-date Chrome and Firefox.

I believe that this is likely a Chrome scroll issue and not a Python docs or 
Sphinx issue.

I have triaged this as "needs patch" in case someone is aware of a workaround 
to resolve. If this is still open after a month, I would recommend closing the 
issue as a "third party" issue

--
nosy: +willingc
priority: normal -> low
stage:  -> needs patch

___
Python tracker 

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



[issue24539] StreamReaderProtocol.eof_received() should return True to keep the transport open

2015-07-24 Thread STINNER Victor

STINNER Victor added the comment:

> but it still needs a unittest and merging into CPython 3.4 and up.

I did this part.

By the way, running unit tests now logs two warnings on SSL tests, because 
returning True has no effect on SSL. We may just remove the warning at runtime 
and ensure that it's well documented instead. What do you think?

--

___
Python tracker 

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



[issue24539] StreamReaderProtocol.eof_received() should return True to keep the transport open

2015-07-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset fc1d40a706e7 by Victor Stinner in branch '3.4':
asyncio: sync with github
https://hg.python.org/cpython/rev/fc1d40a706e7

--
nosy: +python-dev

___
Python tracker 

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



[issue24603] Update OpenSSL to 1.0.2d in Windows and OS X installer

2015-07-24 Thread Ned Deily

Changes by Ned Deily :


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

___
Python tracker 

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



[issue24603] Update OpenSSL to 1.0.2d in Windows and OS X installer

2015-07-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7ba239d4efbb by Ned Deily in branch '2.7':
Issue #24603: Update the OS X 32-bit installer build to use OpenSSL 1.0.2d.
https://hg.python.org/cpython/rev/7ba239d4efbb

New changeset 436b8902b305 by Ned Deily in branch '3.4':
Issue #24603: Update the OS X 32-bit installer build to use OpenSSL 1.0.2d.
https://hg.python.org/cpython/rev/436b8902b305

New changeset 78254d483573 by Ned Deily in branch '3.5':
Issue #24603: merge from 3.4
https://hg.python.org/cpython/rev/78254d483573

New changeset d205e7e5f9aa by Ned Deily in branch 'default':
Issue #24603: merge from 3.5
https://hg.python.org/cpython/rev/d205e7e5f9aa

--

___
Python tracker 

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



[issue24712] Docs page's sidebar vibrates on mouse wheel scroll on Chrome.

2015-07-24 Thread Biwin John

New submission from Biwin John:

The sidebar on the documentation pages ex. 
https://docs.python.org/2/library/collections.html vibrates/flashes on mouse 
wheel scroll. 
The sidebar with class sphinxsidebar, works okay when scrolling with the 
scrollbar, Firefox but not with mouse wheel on Chrome.


please consider fixing it.

--

___
Python tracker 

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



[issue24712] Docs page's sidebar vibrates on mouse wheel scroll on Chrome.

2015-07-24 Thread Biwin John

Changes by Biwin John :


--
assignee: docs@python
components: Documentation
nosy: Biwin John, docs@python
priority: normal
severity: normal
status: open
title: Docs page's sidebar vibrates on mouse wheel scroll on Chrome.
type: behavior
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



[issue24711] Document getpass.getpass behavior on ^C

2015-07-24 Thread Markus Unterwaditzer

New submission from Markus Unterwaditzer:

getpass.getpass doesn't enter a newline when the user aborts input with ^C, 
while input/raw_input does.

This behavior is surprising and can lead to mis-formatting of subsequent 
output. However, since this behavior exists since 2.7 and applications may have 
started to rely on it, I'd add a note to the documentation.

--
assignee: docs@python
components: Documentation
messages: 247302
nosy: docs@python, untitaker
priority: normal
severity: normal
status: open
title: Document getpass.getpass behavior on ^C
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6

___
Python tracker 

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



[issue24710] Class name hardcoded in TracebackException.from_exception()

2015-07-24 Thread Berker Peksag

New submission from Berker Peksag:

Here is a patch that changes to use cls() instead of hardcoded 
TracebackException.

Serhiy also suggested on IRC to use the from_exception() classmethod in 
TracebackException's __init__ method.

--
components: Library (Lib)
files: classmethod.diff
keywords: patch
messages: 247301
nosy: berker.peksag, rbcollins, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Class name hardcoded in TracebackException.from_exception()
type: enhancement
versions: Python 3.5, Python 3.6
Added file: http://bugs.python.org/file40008/classmethod.diff

___
Python tracker 

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



[issue24613] array.fromstring Use After Free

2015-07-24 Thread John Leitch

John Leitch added the comment:

To clarify one point, passing self to array.fromstring works as expected almost 
all the time in 2.7. My testing revealed anomalous behavior <1% of the time, 
and it was almost always non-fatal corruption of the buffer. It stands to 
reason that legacy code may exist that relies on similar operations, and such 
code would be broken by the requested change.

--

___
Python tracker 

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



[issue24709] Unix build uses '-Wno-unused-result', which icc doesn't recognize

2015-07-24 Thread Zachary Ware

New submission from Zachary Ware:

It would be nice to leave out '-Wno-unused-result' when CC=icc to prevent 
superfluous warnings like:

icc: command line warning #10006: ignoring unknown option '-Wno-unused-result'

--
components: Build
messages: 247299
nosy: zach.ware
priority: low
severity: normal
stage: needs patch
status: open
title: Unix build uses '-Wno-unused-result', which icc doesn't recognize
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6

___
Python tracker 

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



[issue24613] array.fromstring Use After Free

2015-07-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

This is not about consistency, this is about that don't encourage users to 
write new code incompatible with 3.x. For now passing self to 
array.fromstring() doesn't work in 3.x and doesn't work (sporadically crashes) 
and never worked in 2.7.

What you think about this Benjamin?

--
nosy: +benjamin.peterson

___
Python tracker 

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



[issue24613] array.fromstring Use After Free

2015-07-24 Thread John Leitch

John Leitch added the comment:

I understand the desire for consistency and I will create such a patch when I 
get some slack space (hopefully tonight), but I believe it will constitute a 
breaking change; in 2.7, passing self to array.fromstring works as expected 
most of the time.

--

___
Python tracker 

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



[issue20366] SQLite FTS (full text search)

2015-07-24 Thread Zachary Ware

Changes by Zachary Ware :


--
resolution:  -> wont fix
stage:  -> resolved

___
Python tracker 

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



[issue20366] SQLite FTS (full text search)

2015-07-24 Thread Mark Summerfield

Changes by Mark Summerfield :


--
status: open -> closed

___
Python tracker 

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



[issue24707] Assertion failed in pymonotonic_new

2015-07-24 Thread Chris Angelico

Chris Angelico added the comment:

The host is running Debian Jessie (newer than the Debian Wheezy of the VM).

Linux sikorsky 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt9-3~deb8u1 (2015-04-24) 
x86_64 GNU/Linux

What info are you after re hardware virtualization?

VirtualBox 4.3.28 r100309 manages the VM.

Any other information that would help?

--

___
Python tracker 

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



[issue24685] collections.OrderedDict collaborative subclassing

2015-07-24 Thread Eric Frederich

Eric Frederich added the comment:

Éric (Araujo),

Combinding defaultdict and OrderedDict is a little easier since one of them 
(defaultdict) has special behavior on getitem while the other (OrderedDict) has 
special behavior on setitem.

I played with mixing those two myself and saw some issues and found that I had 
to explicitly call __init__ on both base classes to get them primed properly.

--

___
Python tracker 

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



[issue24707] Assertion failed in pymonotonic_new

2015-07-24 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +Rosuav

___
Python tracker 

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



[issue24707] Assertion failed in pymonotonic_new

2015-07-24 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy:  -Chris

___
Python tracker 

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



[issue24707] Assertion failed in pymonotonic_new

2015-07-24 Thread STINNER Victor

STINNER Victor added the comment:

This buildbot runs in a VM. I need more information on the host (machine 
running the VM): OS, OS version, kernel version, hardware virtualization?, 
version of qemu/kvm?, etc.

It's probably a bug in the virtualization.

In the PEP 418, we decided to _not_ handle this error (monotonic clock running 
backward).

Maybe we should document the bug and remove the assertion (it only exists when 
Python is compiled in debug mode).

Note: I already saw this assertion error on the same buildbot.

http://buildbot.python.org/all/builders/AMD64%20Debian%20root%203.x/builds/2436/steps/test/logs/stdio

== CPython 3.6.0a0 (default:2825c87d3f72, Jul 25 2015, 01:29:19) [GCC 4.7.2]
==   Linux-3.2.0-4-amd64-x86_64-with-debian-7.7 little-endian
==   hash algorithm: siphash24 64bit
==   /root/buildarea/3.x.angelico-debian-amd64/build/build/test_python_27852

http://buildbot.python.org/all/buildslaves/angelico-debian-amd64

Slave information

* Buildbot-Slave 0.8.6p1
* Debian AMD64 running tests as root - VM with two Intel i5 cores

--
nosy: +Chris

___
Python tracker 

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



[issue24685] collections.OrderedDict collaborative subclassing

2015-07-24 Thread Éric Araujo

Éric Araujo added the comment:

FWIW I once helped a friend combine OrderedDict and defaultdict:
https://gist.github.com/merwok/11268759

The behavior can be surprising if we don’t know what Raymond said about design 
choices in OrderedDict, but it was not hard (in the default+ordered case) to 
work around.

--
nosy: +eric.araujo

___
Python tracker 

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



[issue10708] Misc/porting should be folded into the development FAQ or the devguide

2015-07-24 Thread Carol Willing

Carol Willing added the comment:

Thanks Berker for the commit review. 
Paul Anton Letnes, thanks for your contribution to the devguide. Nicely done.

--

___
Python tracker 

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



[issue24708] strop.replace Integer Overflow

2015-07-24 Thread John Leitch

New submission from John Leitch:

The Python strop.replace() method suffers from an integer overflow that can be 
exploited to write outside the bounds of the string buffer and potentially 
achieve code execution. The issue can be triggered by performing a large 
substitution that overflows the arithmetic used in mymemreplace() to calculate 
the size of the new string:

static char *
mymemreplace(const char *str, Py_ssize_t len,   /* input string */
 const char *pat, Py_ssize_t pat_len,   /* pattern string to 
find */
 const char *sub, Py_ssize_t sub_len,   /* substitution string 
*/
 Py_ssize_t count,  /* number of 
replacements */
 Py_ssize_t *out_len)
{
[...]

new_len = len + nfound*(sub_len - pat_len);  Unchecked arithmetic can 
overflow here.
if (new_len == 0) {
/* Have to allocate something for the caller to free(). */
out_s = (char *)PyMem_MALLOC(1);
if (out_s == NULL)
return NULL;
out_s[0] = '\0';
}
else {
assert(new_len > 0);
new_s = (char *)PyMem_MALLOC(new_len);  An allocation is performed 
using overflowed value.
if (new_s == NULL)
return NULL;
out_s = new_s;

for (; count > 0 && len > 0; --count) {  Memory is copied to new_s 
using len, which can be greater than the overflowed new_len value.
/* find index of next instance of pattern */
offset = mymemfind(str, len, pat, pat_len);
if (offset == -1)
break;

/* copy non matching part of input string */
memcpy(new_s, str, offset);
str += offset + pat_len;
len -= offset + pat_len;

/* copy substitute into the output string */
new_s += offset;
memcpy(new_s, sub, sub_len);
new_s += sub_len;
}
/* copy any remaining values into output string */
if (len > 0)
memcpy(new_s, str, len);
}
[...]
}

The following script demonstrates the issue:

import strop
strop.replace("\x75"*0xEAAA,"\x75","AA"*0x)

When run under a debugger, it produces the following exception:

0:000> r
eax=01e4cfd0 ebx=5708fc94 ecx=3c7a edx= esi=01e3dde8 edi=57096000
eip=7026ae7a esp=0027fc98 ebp=0027fca0 iopl=0 nv up ei pl nz ac pe nc
cs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b efl=00010216
MSVCR90!memcpy+0x5a:
7026ae7a f3a5rep movs dword ptr es:[edi],dword ptr [esi]
0:000> db edi-0x10
57095ff0  41 41 41 41 41 41 41 41-41 41 41 41 41 41 41 41  
57096000  ?? ?? ?? ?? ?? ?? ?? ??-?? ?? ?? ?? ?? ?? ?? ??  
57096010  ?? ?? ?? ?? ?? ?? ?? ??-?? ?? ?? ?? ?? ?? ?? ??  
57096020  ?? ?? ?? ?? ?? ?? ?? ??-?? ?? ?? ?? ?? ?? ?? ??  
57096030  ?? ?? ?? ?? ?? ?? ?? ??-?? ?? ?? ?? ?? ?? ?? ??  
57096040  ?? ?? ?? ?? ?? ?? ?? ??-?? ?? ?? ?? ?? ?? ?? ??  
57096050  ?? ?? ?? ?? ?? ?? ?? ??-?? ?? ?? ?? ?? ?? ?? ??  
57096060  ?? ?? ?? ?? ?? ?? ?? ??-?? ?? ?? ?? ?? ?? ?? ??  
0:000> db esi
01e3dde8  41 41 41 41 41 41 41 41-41 41 41 41 41 41 41 41  
01e3ddf8  41 41 41 41 41 41 41 41-41 41 41 41 41 41 41 41  
01e3de08  41 41 41 41 41 41 41 41-41 41 41 41 41 41 41 41  
01e3de18  41 41 41 41 41 41 41 41-41 41 41 41 41 41 41 41  
01e3de28  41 41 41 41 41 41 41 41-41 41 41 41 41 41 41 41  
01e3de38  41 41 41 41 41 41 41 41-41 41 41 41 41 41 41 41  
01e3de48  41 41 41 41 41 41 41 41-41 41 41 41 41 41 41 41  
01e3de58  41 41 41 41 41 41 41 41-41 41 41 41 41 41 41 41  
0:000> k
ChildEBP RetAddr  
0027fca0 1e056efc MSVCR90!memcpy+0x5a 
[f:\dd\vctools\crt_bld\SELF_X86\crt\src\INTEL\memcpy.asm @ 188]
0027fcd0 1e05700b python27!mymemreplace+0xfc 
[c:\build27\cpython\modules\stropmodule.c @ 1139]
0027fd18 1e0aaed7 python27!strop_replace+0xbb 
[c:\build27\cpython\modules\stropmodule.c @ 1185]
0027fd30 1e0edcc0 python27!PyCFunction_Call+0x47 
[c:\build27\cpython\objects\methodobject.c @ 81]
0027fd5c 1e0f012a python27!call_function+0x2b0 
[c:\build27\cpython\python\ceval.c @ 4035]
0027fdcc 1e0f1100 python27!PyEval_EvalFrameEx+0x239a 
[c:\build27\cpython\python\ceval.c @ 2684]
0027fe00 1e0f1162 python27!PyEval_EvalCodeEx+0x690 
[c:\build27\cpython\python\ceval.c @ 3267]
0027fe2c 1e1170ca python27!PyEval_EvalCode+0x22 
[c:\build27\cpython\python\ceval.c @ 674]
0027fe44 1e118215 python27!run_mod+0x2a [c:\build27\cpython\python\pythonrun.c 
@ 1371]
0027fe64 1e1187b0 python27!PyRun_FileExFlags+0x75 
[c:\build27\cpython\python\pythonrun.c @ 1358]
0027fea4 1e119129 python27!PyRun_SimpleFileExFlags+0x190 
[c:\build27\cpython\python\pythonrun.c @ 950]
0027fec0 1e038cb5 python27!PyRun_AnyFileExFlags+0x59 
[c:\build27\cpython\pyth

[issue24708] strop.replace Integer Overflow

2015-07-24 Thread John Leitch

John Leitch added the comment:

Attaching repro.

--
Added file: http://bugs.python.org/file40007/strop.replace_Integer_Overflow.py

___
Python tracker 

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



[issue23906] poplib maxline behaviour may be wrong

2015-07-24 Thread R. David Murray

R. David Murray added the comment:

Sorry, I was unclear.  In order to implement maximum message size we have to do 
a bit more to the logic than just use the max message size as the readline 
limit.  But it does seem like the right approach to me.

--

___
Python tracker 

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



[issue24707] Assertion failed in pymonotonic_new

2015-07-24 Thread Berker Peksag

New submission from Berker Peksag:

>From 
>http://buildbot.python.org/all/builders/AMD64%20Debian%20root%203.x/builds/2436:

python: Python/pytime.c:633: pymonotonic_new: Assertion `!last_set || last <= 
*tp' failed.
Fatal Python error: Aborted

Full log is here: 
http://buildbot.python.org/all/builders/AMD64%20Debian%20root%203.x/builds/2436/steps/test/logs/stdio

--
components: Interpreter Core
messages: 247288
nosy: berker.peksag, haypo
priority: normal
severity: normal
status: open
title: Assertion failed in pymonotonic_new
type: behavior
versions: Python 3.6

___
Python tracker 

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



[issue24699] TemporaryDirectory is cleaned up twice

2015-07-24 Thread Robert Collins

Robert Collins added the comment:

I think you may need to instrument TemporaryDirectory._cleanup to be sure, but 
it sounds like its being run twice.

now, you're not using it like a context manager (at least as far as your code 
shows), so it must be happening from the weakref.

https://docs.python.org/3/library/weakref.html#weakref.finalize is the relevant 
docs for that.

The code looks ok as long as finalize triggers once and only once. Perhaps it 
should call the finalize() rather than manually calling _cleanup, in cleanup, 
but I don't see that that should make much difference. I would have thought it 
a deliberate attempt to avoid some bit of code (e.g. the resource warning), but 
since its a shared helper, thats not it.

And finalize._exitfunc looks entirely sane to me.

So - I suggest adding a call to print_stack in TemporaryDirectory._cleanup, to 
see the entire stack, and then hopefully we'll see two such printouts when this 
error happens, and be able to pinpoint how it's being called twice.

--
nosy: +rbcollins

___
Python tracker 

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



[issue24379] operator.subscript

2015-07-24 Thread Joe Jevnik

Joe Jevnik added the comment:

Any more comments?

--

___
Python tracker 

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



[issue15657] Error in Python 3 docs for PyMethodDef

2015-07-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

In 3.5 it would be better to make METH_KEYWORDS == METH_VARARGS | METH_KEYWORDS.

Current definition:

#define METH_VARARGS  0x0001
#define METH_KEYWORDS 0x0002

Should be:

#define METH_VARARGS  0x0001
#define METH_KEYWORDS 0x0003

But it can't be applied in maintained releases. In 3.4 and 2.7 we should add 
explicit test as in the patch or change the documentation.

If fix the code rather than documentation in 3.4 and 2.7, then the 
versionchanged directive in 3.5 shouldn't be added.

--

___
Python tracker 

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



[issue23906] poplib maxline behaviour may be wrong

2015-07-24 Thread Chris Smowton

Chris Smowton added the comment:

Created #24706 to describe the unflushed connection problem.

--

___
Python tracker 

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



[issue10708] Misc/porting should be folded into the development FAQ or the devguide

2015-07-24 Thread Berker Peksag

Berker Peksag added the comment:

Applied it with minor changes. Thanks for the great patch, Paul Anton Letnes.

--
resolution:  -> fixed
stage: commit review -> resolved
status: open -> closed

___
Python tracker 

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



[issue24706] poplib: Line too long error causes knock-on failure to retrieve all subsequent messages

2015-07-24 Thread Chris Smowton

New submission from Chris Smowton:

As mentioned in #23906, when poplib bails from receiving a message with a 'line 
too long' error it neither flushes nor re-establishes the TCP connection. This 
means that subsequent commands fail because instead of the expected response we 
receive part of the unflushed data from the message that triggered the original 
error.

--
components: Library (Lib)
messages: 247283
nosy: Chris Smowton
priority: normal
severity: normal
status: open
title: poplib: Line too long error causes knock-on failure to retrieve all 
subsequent messages
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



[issue23906] poplib maxline behaviour may be wrong

2015-07-24 Thread Chris Smowton

Chris Smowton added the comment:

Why wouldn't that fix the problem? The issue is poplib not tolerating server 
behaviour seen in the wild, and if you limit by message size not line length 
you shouldn't see this problem?

(Side note, I'm surprised not to have been emailed when you replied, any idea 
what I'm missing?)

--

___
Python tracker 

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



[issue10708] Misc/porting should be folded into the development FAQ or the devguide

2015-07-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d6e10dfbeab1 by Berker Peksag in branch 'default':
Issue #10708: Add a FAQ entry about porting Python to a new platform.
https://hg.python.org/devguide/rev/d6e10dfbeab1

--
nosy: +python-dev

___
Python tracker 

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



[issue24695] Don't print traceback header if traceback is None in TracebackException

2015-07-24 Thread Adam Bartoš

Adam Bartoš added the comment:

Thank you all for a quick reaction.

--

___
Python tracker 

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



[issue24695] Don't print traceback header if traceback is None in TracebackException

2015-07-24 Thread Berker Peksag

Berker Peksag added the comment:

Fixed in 3.5 and default branches. Thank you for your review, Raymond.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue24695] Don't print traceback header if traceback is None in TracebackException

2015-07-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b45077269aaa by Berker Peksag in branch '3.5':
Issue #24695: Fix a regression in traceback.print_exception()
https://hg.python.org/cpython/rev/b45077269aaa

New changeset 2825c87d3f72 by Berker Peksag in branch 'default':
Issue #24695: Fix a regression in traceback.print_exception()
https://hg.python.org/cpython/rev/2825c87d3f72

--
nosy: +python-dev

___
Python tracker 

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



[issue24685] collections.OrderedDict collaborative subclassing

2015-07-24 Thread Eric Frederich

Eric Frederich added the comment:

I understand that in the general case you cannot just swap the order around and 
get the same behaviour.

This LoggingDict just prints some stuff to the screen and delegates to super 
and so I believe it should work wherever it is placed in a cooperative 
hierarchy.  Do you agree?

Now, I understand that OrderedDict is not cooperative.  You stated that this is 
a design decision and I respect that choice, but you also stated that classes 
can be made to be cooperative by creating a wrapper.

The reason I re-opened this bug is because I fail to see a way in which to 
create such a wrapper for Python3.  Do you believe that it should be possible 
to create a cooperative wrapper?

If it is possible (and its just my inability to create one) then I have no 
issue and the bug should be closed.
If it is not possible, then perhaps it could be noted somewhere that its not 
cooperative and impossible to make it cooperative and it should be listed last 
when using multiple inheritance.

--

___
Python tracker 

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



[issue24705] sysconfig._parse_makefile doesn't expand ${} vars appearing before $() vars

2015-07-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Sorry, I don't understand your example. Could you please provide reproducible 
Python code? Or better a patch for Lib/test/test_sysconfig.py?

--

___
Python tracker 

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



[issue24705] sysconfig._parse_makefile doesn't expand ${} vars appearing before $() vars

2015-07-24 Thread Matthias Klose

Matthias Klose added the comment:

On 07/24/2015 03:14 PM, Serhiy Storchaka wrote:
>
> Serhiy Storchaka added the comment:
>
> Could you please provide an example where unpatched code fails but patched 
> code work?

yes, see the substitution for the LIBPL macro, which leaves ${prefix} 
unexpanded.

--

___
Python tracker 

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



[issue24705] sysconfig._parse_makefile doesn't expand ${} vars appearing before $() vars

2015-07-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Could you please provide an example where unpatched code fails but patched code 
work?

--
nosy: +serhiy.storchaka, tarek
stage:  -> test needed
type:  -> behavior

___
Python tracker 

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



[issue22737] Provide a rejected execution model and implementations for futures.

2015-07-24 Thread Mehdi ABAAKOUK

Changes by Mehdi ABAAKOUK :


--
nosy: +sileht

___
Python tracker 

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



[issue24705] sysconfig._parse_makefile doesn't expand ${} vars appearing before $() vars

2015-07-24 Thread Matthias Klose

New submission from Matthias Klose:

LIPL has the value

  ${prefix}/lib/python3.5/config-$(VERSION)$(ABIFLAGS)-x86_64-linux-gnu

and the code relies to substitute parameters from the left to the right, but it 
prefers $() variables. the attached patch substitutes all variables from the 
left to the right.

diff -r d8229c26dd92 Lib/sysconfig.py
--- a/Lib/sysconfig.py  Fri Jul 24 09:05:59 2015 +0300
+++ b/Lib/sysconfig.py  Fri Jul 24 14:04:57 2015 +0200
@@ -260,7 +260,12 @@
 while len(variables) > 0:
 for name in tuple(variables):
 value = notdone[name]
-m = _findvar1_rx.search(value) or _findvar2_rx.search(value)
+m1 = _findvar1_rx.search(value)
+m2 = _findvar2_rx.search(value)
+if m1 and m2:
+m = m1 if m1.start() < m2.start() else m2
+   else:
+m = m1 if m1 else m2
 if m is not None:
 n = m.group(1)
 found = True

--
assignee: doko
components: Library (Lib)
messages: 247272
nosy: doko
priority: normal
severity: normal
status: open
title: sysconfig._parse_makefile doesn't expand ${} vars appearing before $() 
vars
versions: Python 3.5, Python 3.6

___
Python tracker 

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



[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-07-24 Thread Yury Selivanov

Yury Selivanov added the comment:

> Any counterarguments?

There are no counterarguments. There is no obvious way to support 
concurrent.futures transparently, though:

   await conc_fut

requires conc_fut to implement __await__.

So we either have to implement __await__ for concurrent futures and provide 
some kind of registry for frameworks, or we can implement a wrapper function:

await asyncio_compat(conc_fut)

Anyways, concrete ideas and API suggestions are welcome.

--
nosy: +Yury.Selivanov

___
Python tracker 

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



[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-07-24 Thread Alex Grönholm

Alex Grönholm added the comment:

Yes, Yury's approach is wrong here -- Futures should not know about asyncio, 
but asyncio should be able to handle Futures natively. This seems like the 
obvious solution to me. Any counterarguments?

--
nosy: +alex.gronholm

___
Python tracker 

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-07-24 Thread Cyd Haselton

Cyd Haselton added the comment:

I'm compiling for ARM, not ARM64, on an armv7 device.

On July 23, 2015 7:10:35 PM CDT, Russell Keith-Magee  
wrote:
>
>Russell Keith-Magee added the comment:
>
>What hardware architecture are you compiling for? If it's ARM64, and
>you're not using a trunk version of libffi, that segfault in
>test_ctypes is to be expected.
>
>--
>
>___
>Python tracker 
>
>___

--

___
Python tracker 

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



[issue24704] Dereferencing a Null Pointer

2015-07-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you for your contribution Pankaj.

--
resolution:  -> fixed
stage: commit review -> resolved
status: open -> closed

___
Python tracker 

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



[issue24704] Dereferencing a Null Pointer

2015-07-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a1a1e3fe837a by Serhiy Storchaka in branch '2.7':
Issue #24704: Fixed possible NULL pointer dereferencing in the _json module
https://hg.python.org/cpython/rev/a1a1e3fe837a

--
nosy: +python-dev

___
Python tracker 

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



[issue24704] Dereferencing a Null Pointer

2015-07-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

LGTM.

--
assignee:  -> serhiy.storchaka
nosy: +serhiy.storchaka
stage:  -> commit review

___
Python tracker 

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



[issue19475] Add timespec optional flag to datetime isoformat() to choose the precision

2015-07-24 Thread STINNER Victor

Changes by STINNER Victor :


--
title: Add microsecond flag to datetime isoformat() -> Add timespec optional 
flag to datetime isoformat() to choose the precision

___
Python tracker 

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



[issue19475] Add microsecond flag to datetime isoformat()

2015-07-24 Thread STINNER Victor

STINNER Victor added the comment:

> 'seconds' - %H:%M:%S
> 'us' - %H:%M:%S.%f

'us' is not consistent with the datetime module: it should be 'microseconds.

>>> datetime.datetime.now().second
50
>>> datetime.timedelta(seconds=1)
datetime.timedelta(0, 1)

>>> datetime.datetime.now().microsecond
123710
>>> datetime.timedelta(microseconds=1)
datetime.timedelta(0, 0, 1)

--

___
Python tracker 

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



[issue19475] Add microsecond flag to datetime isoformat()

2015-07-24 Thread Berker Peksag

Changes by Berker Peksag :


--
stage: resolved -> needs patch
superseder: datetime: add ability to parse RFC 3339 dates and times -> 
versions: +Python 3.6 -Python 3.5

___
Python tracker 

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



[issue24302] Dead Code of Handler check in function faulthandler_fatal_error()

2015-07-24 Thread STINNER Victor

STINNER Victor added the comment:

The check is required to fix a compiler warning. Please keep it, it doesn't
bite.

Maybe add a comment to explain it.

--

___
Python tracker 

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



[issue24697] Add CoroutineReturn and CoroutineExit builtin exceptions for coroutines

2015-07-24 Thread Nick Coghlan

Nick Coghlan added the comment:

My initial inclination is to agree with Stefan. At the moment, we have a
slightly leaky abstraction where the exceptions used mean that coroutines
still expose the fact that under the covers they're defined in terms of
generator semantics.

However, that leak in the abstraction reveals an underlying truth -
coroutine semantics *are* derived from generator semantics, and they *do*
share common underlying infrastructure.

We may eventually find pragmatic reasons for wanting to plug that leak and
use separately named exceptions, but unlike the situation with coroutines
themselves, I'm not currently seeing a clear gain in either usability or
comprehensibility as a payoff for the extra complexity.

--

___
Python tracker 

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



[issue24704] Dereferencing a Null Pointer

2015-07-24 Thread Pankaj Sharma

New submission from Pankaj Sharma:

Hi,
Reporting bugs for dereferencing a pointer "m"  might be NULL.
the respective patch have been attached ,please check and review it.

thanks!

--
components: Extension Modules, Library (Lib)
files: Python-2.7.10-json.patch
keywords: patch
messages: 247262
nosy: benjamin.peterson, pankaj.s01
priority: normal
severity: normal
status: open
title: Dereferencing  a Null Pointer
type: crash
versions: Python 2.7
Added file: http://bugs.python.org/file40005/Python-2.7.10-json.patch

___
Python tracker 

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