[issue24523] coroutine asyncio.wait() does not preserve order of elements

2015-06-28 Thread Guido van Rossum

Guido van Rossum added the comment:

The docs say that it returns two *sets* and Python's set datatype is unordered. 
So that's all you need to know. I don't think there's anything else needed in 
the docs.

--
resolution:  -> not a bug
status: open -> closed

___
Python tracker 

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



[issue24481] hotshot pack_string Heap Buffer Overflow

2015-06-28 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
nosy: +Arfrever

___
Python tracker 

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



[issue24521] Integer overflow in _pickle.c

2015-06-28 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
nosy: +Arfrever

___
Python tracker 

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



[issue24522] Integer overflow in _json_encode_unicode leads to crash (heap-buffer-overflow)

2015-06-28 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
nosy: +Arfrever

___
Python tracker 

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



[issue23670] Modifications to support iOS as a cross-compilation target

2015-06-28 Thread Russell Keith-Magee

Russell Keith-Magee added the comment:

Another patch update - the code now passes the full Python test suite on the 
iOS simulator. 

There are still a couple of failures on device; as before, these appear to be 
due to ctypes problems and a permissions issue with os.mkdir.

--
Added file: http://bugs.python.org/file39824/20150628.diff

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



[issue24336] Allow arbitrary keywords to @contextmanager functions

2015-06-28 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f0053d05ed6d by Serhiy Storchaka in branch '3.4':
Issue #24336: The contextmanager decorator now works with functions with
https://hg.python.org/cpython/rev/f0053d05ed6d

New changeset 20aa7083057e by Serhiy Storchaka in branch '3.5':
Issue #24336: The contextmanager decorator now works with functions with
https://hg.python.org/cpython/rev/20aa7083057e

New changeset d4e4bfabc21f by Serhiy Storchaka in branch 'default':
Issue #24336: The contextmanager decorator now works with functions with
https://hg.python.org/cpython/rev/d4e4bfabc21f

New changeset 85c78d4db242 by Serhiy Storchaka in branch '2.7':
Issue #24336: Backported test for contextmanager.  Patch by Martin Panter.
https://hg.python.org/cpython/rev/85c78d4db242

--
nosy: +python-dev

___
Python tracker 

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



[issue24336] Allow arbitrary keywords to @contextmanager functions

2015-06-28 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you Martin for your patch.

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



[issue24456] audioop.adpcm2lin Buffer Over-read

2015-06-28 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 1f6c096ee772 by Serhiy Storchaka in branch '2.7':
Issue #24456: Fixed possible buffer over-read in adpcm2lin() and lin2adpcm()
https://hg.python.org/cpython/rev/1f6c096ee772

New changeset fd17e168b59f by Serhiy Storchaka in branch '3.4':
Issue #24456: Fixed possible buffer over-read in adpcm2lin() and lin2adpcm()
https://hg.python.org/cpython/rev/fd17e168b59f

New changeset 3039cb5b673c by Serhiy Storchaka in branch '3.5':
Issue #24456: Fixed possible buffer over-read in adpcm2lin() and lin2adpcm()
https://hg.python.org/cpython/rev/3039cb5b673c

New changeset 0e1d9018e74b by Serhiy Storchaka in branch 'default':
Issue #24456: Fixed possible buffer over-read in adpcm2lin() and lin2adpcm()
https://hg.python.org/cpython/rev/0e1d9018e74b

--
nosy: +python-dev

___
Python tracker 

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



[issue24456] audioop.adpcm2lin Buffer Over-read

2015-06-28 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

The patch for 2.7 also fixed SystemError and possible memory leak.

--

___
Python tracker 

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



[issue20387] tokenize/untokenize roundtrip fails with tabs

2015-06-28 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b784c842a63c by Jason R. Coombs in branch '3.4':
Issue #20387: Add test capturing failure to roundtrip indented code in tokenize 
module.
https://hg.python.org/cpython/rev/b784c842a63c

New changeset 49323e5f6391 by Jason R. Coombs in branch '3.4':
Issue #20387: Correct test to properly capture expectation.
https://hg.python.org/cpython/rev/49323e5f6391

New changeset ff47efeeed48 by Dingyuan Wang in branch '3.4':
Issue #20387: Restore retention of indentation during untokenize.
https://hg.python.org/cpython/rev/ff47efeeed48

New changeset 4856ae883041 by Jason R. Coombs in branch '3.4':
Issue #20387: Update Misc/NEWS
https://hg.python.org/cpython/rev/4856ae883041

New changeset 330e28b28334 by Jason R. Coombs in branch '3.4':
Issue #20387: Merge patch and test
https://hg.python.org/cpython/rev/330e28b28334

New changeset 9ce5c1f371f7 by Jason R. Coombs in branch '3.4':
Issue #20387: Merge
https://hg.python.org/cpython/rev/9ce5c1f371f7

New changeset 98380a6e037c by Jason R. Coombs in branch '3.5':
Issue #20387: Merge test and patch from 3.4.4
https://hg.python.org/cpython/rev/98380a6e037c

New changeset f2f5d1c928eb by Jason R. Coombs in branch 'default':
Issue #20387: Merge with 3.5
https://hg.python.org/cpython/rev/f2f5d1c928eb

--
nosy: +python-dev

___
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-06-28 Thread R. David Murray

R. David Murray added the comment:

The RFC is in fact not clear on this point.  It is entirely possible to read it 
as saying that each line of a mulitline response is limited to 512 octets.  I 
agree, however, that that is not the most reasonable interpretation.  Instead, 
the line length of RETR message lines should be governed by RFC 5322, which 
specifies a maximum line length of 998 octets.

That, however, means that technically dovecot is still broken, since 2048 is 
quite a bit larger than 998.  In reality, it means that the *internet* is 
broken, in that I presume the root of the problem is that there are mail 
originators out there that are not obeying RFC 5322 (and its 
predecessors...this limit goes back to 821/822).

We use 8192 in smtplib, and that hasn't caused any problems...but then again 
smtplib is originating email, not receiving it.  The IMAP protocol has its own 
problems, quite aside from the length of message body lines, so we ended up 
with a very large MAXLINE there.  It may be that we have no choice except to do 
something similar in poplib.

An interesting question in this context is what smtp servers do. since if 
anyone was going to reject messages with overlong lines, it would be the smtp 
server's job to do it.

--
nosy: +r.david.murray

___
Python tracker 

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



[issue23906] poplib maxline behaviour may be wrong

2015-06-28 Thread R. David Murray

Changes by R. David Murray :


--
versions: +Python 3.4, Python 3.5, Python 3.6 -Python 3.2

___
Python tracker 

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



[issue20387] tokenize/untokenize roundtrip fails with tabs

2015-06-28 Thread Jason R. Coombs

Jason R. Coombs added the comment:

Patch and test applied to 3.4+. I'm inclined to backport this to Python 2.7, as 
that was where I encountered it originally.

--
versions: +Python 3.5 -Python 3.3

___
Python tracker 

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



[issue20387] tokenize/untokenize roundtrip fails with tabs

2015-06-28 Thread Jason R. Coombs

Jason R. Coombs added the comment:

Benjamin, any objections to a backport of this patch?

--
nosy: +benjamin.peterson

___
Python tracker 

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



[issue18578] Rename and document test.bytecode_helper as test.support.bytecode_helper

2015-06-28 Thread Berker Peksag

Changes by Berker Peksag :


--
nosy: +berker.peksag

___
Python tracker 

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



[issue24456] audioop.adpcm2lin Buffer Over-read

2015-06-28 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


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



[issue20387] tokenize/untokenize roundtrip fails with tabs

2015-06-28 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 524a0e755797 by Jason R. Coombs in branch '2.7':
Issue #20387: Backport test from Python 3.4
https://hg.python.org/cpython/rev/524a0e755797

New changeset cb9df1ae287b by Jason R. Coombs in branch '2.7':
Issue #20387: Backport fix from Python 3.4
https://hg.python.org/cpython/rev/cb9df1ae287b

--

___
Python tracker 

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



[issue24467] bytearray pop and remove Buffer Over-read

2015-06-28 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee:  -> serhiy.storchaka
stage:  -> patch review
versions: +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



[issue20387] tokenize/untokenize roundtrip fails with tabs

2015-06-28 Thread Jason R. Coombs

Jason R. Coombs added the comment:

For the sake of expediency, I've gone ahead and backported and pushed the fix 
to 2.7. Please back out the changes if appropriate.

--
resolution:  -> fixed

___
Python tracker 

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



[issue24462] bytearray.find Buffer Over-read

2015-06-28 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee:  -> serhiy.storchaka
stage:  -> patch review

___
Python tracker 

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



[issue24485] Function source inspection fails on closures

2015-06-28 Thread Meador Inge

Meador Inge added the comment:

Here is a first cut patch that moves things back to using a syntax-level
analysis instead of a bytecode-level one.  I extended `BlockFinder`
to skip decorators.

--
keywords: +patch
nosy: +meador.inge
stage: test needed -> patch review
Added file: http://bugs.python.org/file39825/issue24485-v0.patch

___
Python tracker 

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



[issue21217] inspect.getsourcelines finds wrong lines when lambda used argument to decorator

2015-06-28 Thread Meador Inge

Meador Inge added the comment:

FYI, I posted a patch to handle this case and the regression
noted in issue24485 on issue24485.

--

___
Python tracker 

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



[issue24467] bytearray pop and remove Buffer Over-read

2015-06-28 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

The bytearray object allocates one byte more for trailing null byte. ob_size 
always should be less than ob_alloc if ob_alloc != 0. But in rare cases when 
the bytearray is initialized with an iterator, this rule can be violated. 
Following patch restores this property. PyByteArray_AS_STRING() now always 
returns null-terminated string.

--
Added file: http://bugs.python.org/file39826/bytearray_init_trailing_null.patch

___
Python tracker 

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



[issue24524] python crash using Tkinter

2015-06-28 Thread Tomas Nordin

New submission from Tomas Nordin:

$ python
Python 2.7.9 (default, Mar  1 2015, 18:22:53) 
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
The readline tab completion thing should be loaded. (pythonstartup.py @home)
>>> import Tkinter as tk
>>> import tkFileDialog as tfd
>>> tk.Tk()

>>> tk.Tk()

>>> tfd.askopenfilename()
u'/home/tomas/.emacs'
>>> # closing the root window
... 
>>> alloc: invalid block: 0x99ddcd8: 88 9
Aborted
$

$ uname -a
Linux debian 3.2.0-4-686-pae #1 SMP Debian 3.2.68-1+deb7u1 i686 GNU/Linux

See also #22810

--
components: Tkinter
messages: 245917
nosy: tomnor
priority: normal
severity: normal
status: open
title: python crash using Tkinter
type: crash
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



[issue24467] bytearray pop and remove Buffer Over-read

2015-06-28 Thread DmitryJ

DmitryJ added the comment:

If this is the case, then issue24462 should be fixed by this patch as well.

I'm sorry about missing the root cause here.

--

___
Python tracker 

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



[issue24033] Update _test_multiprocessing.py to use script helpers

2015-06-28 Thread Christie

Christie added the comment:

If #18576 gets merged before this does, I have some updated docs for the new 
helper functions.

--

___
Python tracker 

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



[issue9517] Make test.script_helper more comprehensive, and use it in the test suite

2015-06-28 Thread Christie

Christie added the comment:

Hello all!

So the following are waiting for review:
* #24033
* #23981
* #24279

I'm going to hold off on continuing to refactor any other modules for the 
moment, would be great to get the above wrapped up and eventually merged when 
possible.

Thanks!
- Christie

--

___
Python tracker 

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



[issue18576] Document test.support.script_helper

2015-06-28 Thread Christie

Christie added the comment:

Hey @vadmium!

I've finally responded to your review feedback. I've attached a new patch, 
hopefully this time actually review-able. I've removed the docs for methods I 
added in @24033 so that this could be merged without it.

Let me know if you have any more feedback, or if this could be merged.

Thanks!

--
Added file: http://bugs.python.org/file39827/issue18576.patch

___
Python tracker 

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



[issue17546] Document the circumstances where the locals() dict get updated

2015-06-28 Thread Martin Panter

Martin Panter added the comment:

Here is another attempt with different words:

'''
.. note::
   The dictionary returned by :func:`locals` is an accurate snapshot of the 
local namespace at the time it is called.  If the namespace changes after the 
call, the dictionary may become out of date, but it may also automatically 
update at any time.  The contents of the dictionary should not be modified by 
the user; it is undefined whether such changes affect the namespace or not.
'''

--

___
Python tracker 

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