[issue24064] Make the property doctstring writeable

2015-05-12 Thread Raymond Hettinger

Raymond Hettinger added the comment:

> If make docstrings writable, it would be good to ensure 
> that they exactly are strings.

I don't see a need for this restriction.  Even regular classes don't enforce 
this.

--
assignee:  -> rhettinger

___
Python tracker 

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



[issue24032] urlparse.urljoin does not add query part

2015-05-12 Thread Martin Panter

Martin Panter added the comment:

This is not how URL joining is meant to work. For example if the base URL “. . 
./foo.php?param=10” produces a HTML file with a relative link to “bar.php”, the 
parent path should be joined on, but not the query part.

I understand the Python implementation is meant to more or less follow the RFC. 
See the second example at 
 which is the same form 
as your case, and shows the query part being removed:

Base URI: http://a/b/c/d;p?q
Relative reference: "g"
Target URL: "http://a/b/c/g";

There are occasionally cases where keeping the base query, or even joining two 
sets of query parameters together, is desirable. But these cases are rare and 
urljoin() is not meant to handle them.

--
nosy: +vadmium

___
Python tracker 

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



[issue22486] Add math.gcd()

2015-05-12 Thread Berker Peksag

Changes by Berker Peksag :


--
stage: patch review -> resolved

___
Python tracker 

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



[issue24042] Convert os._getfullpathname() and os._isdir() to Argument Clinic

2015-05-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Committed in 4d7175af607e. Thank you Mark for the testing.

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



[issue20172] Derby #3: Convert 67 sites to Argument Clinic across 4 files (Windows)

2015-05-12 Thread Zachary Ware

Zachary Ware added the comment:

Committed, thanks for the reviews, guidance, and patience!

--
assignee:  -> zach.ware
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



[issue20172] Derby #3: Convert 67 sites to Argument Clinic across 4 files (Windows)

2015-05-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d3582826d24c by Zachary Ware in branch 'default':
Issue #20172: Convert the winsound module to Argument Clinic.
https://hg.python.org/cpython/rev/d3582826d24c

New changeset 6e613ecd70f0 by Zachary Ware in branch 'default':
Issue #20172: Convert the winreg module to Argument Clinic.
https://hg.python.org/cpython/rev/6e613ecd70f0

New changeset c190cf615eb2 by Zachary Ware in branch 'default':
Issue #20172: Convert the msvcrt module to Argument Clinic.
https://hg.python.org/cpython/rev/c190cf615eb2

New changeset 4cf37a50d91a by Zachary Ware in branch 'default':
Issue #20172: Convert the _winapi module to Argument Clinic.
https://hg.python.org/cpython/rev/4cf37a50d91a

--
nosy: +python-dev

___
Python tracker 

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



[issue24172] Errors in resource.getpagesize module documentation

2015-05-12 Thread Mahmoud Hashemi

New submission from Mahmoud Hashemi:

The resource module's description of resource.getpagesize is woefully 
misguiding. Reproduced in full for convenience:

resource.getpagesize()

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

Besides being vague by not referring to the third element as ru_maxrss, the 
peak RSS for the process (i.e., not the current memory usage), tests on Linux, 
Darwin, and FreeBSD show the following:

  * Linux: ru_maxrss is in kilobytes
  * Darwin (OS X): ru_maxrss is in bytes
  * FreeBSD: ru_maxrss is in kilobytes (same as Linux)

Knowing the page size is probably useful to someone, but the misinformation has 
definitely sent more than one person down the wrong path here. Additionally, 
the correct information should be up in the getrusage() method documentation, 
closer to relevant field descriptions.

Mahmoud

--
assignee: docs@python
components: Documentation
messages: 243043
nosy: docs@python, mahmoud
priority: normal
severity: normal
status: open
title: Errors in resource.getpagesize module documentation
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



[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-05-12 Thread Nick Coghlan

Nick Coghlan added the comment:

A bit more detail on the patch-as-merged: it has all of Yury's new tests, but 
the actual bug turned out to just be a missing INCREF/DECREF pair in 
WITH_CLEANUP_START and WITH_CLEANUP_FINISH.

In the success case the reference counting errors cancelled each other out 
without causing a problem, as there was always a second live reference to the 
exception object on the stack.

However, in the case where the awaitable threw an exception the standard 
exception handling machinery took care of removing the saved exception from the 
stack, and correctly decremented the reference count, which then caused 
problems due to the missing INCREF in WITH_CLEANUP_START.

--

___
Python tracker 

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



[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-05-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e39fd5a8501a by Nick Coghlan in branch 'default':
Issue 24017: fix for "async with" refcounting
https://hg.python.org/cpython/rev/e39fd5a8501a

--

___
Python tracker 

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



[issue23911] Move path-based bootstrap code to a separate frozen file.

2015-05-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset cc2e52878393 by Zachary Ware in branch 'default':
Issue #23911: Fix ctypes test on Windows.
https://hg.python.org/cpython/rev/cc2e52878393

--

___
Python tracker 

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



[issue23731] Implement PEP 488

2015-05-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset bbdbc4399b52 by Zachary Ware in branch 'default':
Issue #23731: Fix tracemalloc test on Windows.
https://hg.python.org/cpython/rev/bbdbc4399b52

--

___
Python tracker 

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



[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-05-12 Thread Yury Selivanov

Yury Selivanov added the comment:

I'd suggest you to look at ceval.c before PEP 492 patch then (where there is 
just one WITH_CLEANUP opcode).

--

___
Python tracker 

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



[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-05-12 Thread Nick Coghlan

Nick Coghlan added the comment:

Avoiding WITH_CLEANUP entirely in the async case also sounds like a plausible 
approach. Either way, I'm also on IRC now if you want to thrash this out there.

--

___
Python tracker 

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



[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-05-12 Thread Nick Coghlan

Nick Coghlan added the comment:

I'm going to dig into this one locally, as it sounds to me like something may 
be going wrong with the refcounts in the complex stack manipulation involved in 
WITH_CLEANUP. It seems plausible that there's a genuinely missing incref/decref 
pair somewhere in the non-exceptional path, which the proposed new opcode is 
working around.

--

___
Python tracker 

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



[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-05-12 Thread Yury Selivanov

Yury Selivanov added the comment:

> Is there are a specific reason this implicit exception handler can't be 
> decomposed and implemented using the same opcodes as are used to implement 
> explicit exception handlers?

I don't think it's possible to replace ASYNC_WITH_CLEANUP_EXCEPT opcode with 
some combination of existing opcodes.

What might be possible is to implement 'async with' without using 
WITH_CLEANUP_* opcodes at all.  Let me try that.

--

___
Python tracker 

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



[issue23193] Please support "numeric_owner" in tarfile

2015-05-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e5a53d75dc19 by Zachary Ware in branch 'default':
Issue #23193: Skip numeric_owner tests on platforms where they don't make sense
https://hg.python.org/cpython/rev/e5a53d75dc19

--

___
Python tracker 

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



[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-05-12 Thread Nick Coghlan

Nick Coghlan added the comment:

I'm bothered by the remarkable proliferation of new opcodes for the PEP 492 
handling. Is there are a specific reason this implicit exception handler can't 
be decomposed and implemented using the same opcodes as are used to implement 
explicit exception handlers?

--

___
Python tracker 

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



[issue24053] Define EXIT_SUCCESS and EXIT_FAILURE constants in sys

2015-05-12 Thread Martin Panter

Changes by Martin Panter :


--
nosy: +vadmium

___
Python tracker 

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



[issue24086] Configparser interpolation is unexpected

2015-05-12 Thread Martin Panter

Changes by Martin Panter :


--
nosy: +vadmium

___
Python tracker 

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



[issue24079] xml.etree.ElementTree.Element.text does not conform to the documentation

2015-05-12 Thread Martin Panter

Martin Panter added the comment:

Another problem with tostring() is that it seems you have to call it with 
encoding="unicode". Perhaps it would be better to suggest code like 
"".join(element.itertext())?

I would also improve on Jérôme’s version by making the None case more explicit. 
And perhaps both attributes can be defined together, rather than giving a 
half-hearted definition linking between them:

.. attribute:: text
.. attribute:: tail

   The *text* attribute holds any text between the element's begin tag and the 
next tag. The *tail* attribute holds any text between the element's end tag and 
the next tag. These attributes are set to ``None`` if there is no text. For 
example, in the XML data ``1234``, the *a* element has 
``None`` for both *text* and *tail* attributes, the *b* element has *text* 
``"1"`` and *tail* ``"4"``, the *c* element has *text* ``"2"`` and *tail* 
``None``, the *d* element has *text* ``None`` and *tail* ``"3"``.
   
   To collect the inner text of an element, use :meth:`itertext`, for example 
``"".join(element.itertext())``.
   
   Applications may store arbitrary objects in these attributes.

--
nosy: +vadmium

___
Python tracker 

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



[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-05-12 Thread Yury Selivanov

Yury Selivanov added the comment:

Nick, Guido,

Attached is a patch that fixes a refleak in 'async with' implementation.

The problem is related to WITH_CLEANUP_START/WITH_CLEANUP_FINISH opcodes.

For regular 'with' statements, these opcodes go one after another (essentially, 
it was one opcode before 'async with').

For 'async with' statements, we have a GET_AWAITABLE/YIELD_FROM pair between 
them.

Now, if an error occurred during running a GET_AWAITABLE or a YIELD_FROM 
opcode, WITH_CLEANUP_FINISH was unreachable.  All blocks were correctly unwound 
by the eval loop, but exception object got too many DECREFS.

My solution is to continue using WITH_CLEANUP_START/WITH_CLEANUP_FINISH 
opcodes, but use SETUP_EXCEPT to guard them and nested YIELD_FROM and 
GET_AWAITABLE.

In case of an exception, I propose to use another new opcode -- 
ASYNC_WITH_CLEANUP_EXCEPT.  It unwinds the block set up by SETUP_EXCEPT, 
restores exception, NULLifies a copy of exception in the stack and does 'goto 
error', letting eval loop do the rest.

"./python.exe -m test -R3:3 test_coroutines" with this patch reports no 
refleaks.  I also updates test_coroutines with a lot of new 'async with' tests, 
I think that I got all usecases covered.

Please take a look at the patch, I want to commit it as soon as possible.

--
Added file: http://bugs.python.org/file39354/with.patch

___
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-05-12 Thread Nick Coghlan

Nick Coghlan added the comment:

Sure, that would be great.

--

___
Python tracker 

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



[issue17394] Add slicing support to collections.deque

2015-05-12 Thread Larry Hastings

Larry Hastings added the comment:

For the record, Raymond asked for permission to check this in (a new feature) 
for 3.5 beta 2, as he won't have time to finish it before beta 1.  As 3.5 
release manager I've given him permission.  Go Raymond!

--

___
Python tracker 

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



[issue17394] Add slicing support to collections.deque

2015-05-12 Thread Larry Hastings

Changes by Larry Hastings :


--
nosy: +larry

___
Python tracker 

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



[issue22486] Add math.gcd()

2015-05-12 Thread Benjamin Peterson

Changes by Benjamin Peterson :


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

___
Python tracker 

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



[issue23290] Faster set copying

2015-05-12 Thread Raymond Hettinger

Changes by Raymond Hettinger :


Added file: http://bugs.python.org/file39353/set_faster_copy_6.diff

___
Python tracker 

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



[issue23290] Faster set copying

2015-05-12 Thread Raymond Hettinger

Changes by Raymond Hettinger :


Removed file: http://bugs.python.org/file39352/set_faster_copy_6.diff

___
Python tracker 

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



[issue23290] Faster set copying

2015-05-12 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Attaching a variant with several fix-ups (mostly minor):

* Changed the order of the three sections to go from 
most-restricted-most-optimized to the general-fall-through case.  The downside 
is that we test so->fill==0 twice.  The upside is that it corresponds to my way 
of thinking about the logic.

* Put the fill/used increments in the same order as the rest of the file.

* Loop over other_entry++ instead of using indexing.  This corresponds to my 
way of thinking about the entries and gives the compiler a stronger hint that 
it can avoid the indexing overhead.

* Removed the unnecessary dummy check from the direct_pointer_copy case.

* Switch the order of the same size and no dummies tests in the insert_clean 
case.

* Revise the comments to be clearer about the requirements for each case.

* Move the sometimes unnecessary hash variable assignments inside the 
conditional.

--
Added file: http://bugs.python.org/file39352/set_faster_copy_6.diff

___
Python tracker 

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



[issue24169] sockets convert out-of-range port numbers % 2**16

2015-05-12 Thread Kurt Rose

Kurt Rose added the comment:

Totally agree this needs to be managed carefully.  My goal here was just to 
raise awareness and see if there is consensus that the behavior should be 
changed.

I came across this because an upstream process had a bug which led to 
impossible TCP ports being specified.  So, for my use case it would have been 
better if create_connection() had rejected the invalid data.

If we are talking about enhancements to the socket module, it would also be 
nice if errors included the address :-)

--

___
Python tracker 

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



[issue22681] Add support of KOI8-T encoding

2015-05-12 Thread Ned Deily

Ned Deily added the comment:

All better, thanks!

--

___
Python tracker 

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



[issue24166] ArgumentParser behavior does not match generated help

2015-05-12 Thread paul j3

paul j3 added the comment:

Look at http://bugs.python.org/issue9338
argparse optionals with nargs='?', '*' or '+' can't be followed by positionals

That has a proposed patch that wraps the main argument consumption loop in 
another loop.

The current loop alternatively consumes optionals and positionals until the 
argv list is done.  The `consume_loop` method in that patch tries various 
allocations of argv strings between optionals and positionals.  It performs 
'dry' runs until it finds something that consumes most of the strings, and then 
does the actual parsing with changes to the namespace.

The idea might be adapted to work with subparsers, paying attention, as you do, 
to the 'extras' from parse_known_args.  But it might be hard to reliably 
perform a 'dry' run when subparsers are involved.

I suspect that any change along this line will be too complex to ever be the 
default behavior.  The chances of messing with backward compatibility are just 
too great.  It might pass as an alternative parsing call.

--

___
Python tracker 

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



[issue24170] IDLE crashes when I press ^ key

2015-05-12 Thread Ned Deily

Ned Deily added the comment:

Thanks!  I'm going to assume then that installing a current ActiveTcl 8.5.x 
will fix the problem for you.

--
resolution:  -> third party
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



[issue24170] IDLE crashes when I press ^ key

2015-05-12 Thread magnus.forsberg

magnus.forsberg added the comment:

Thanks for your replies! There is a warning about Tcl/Tk: 
">>> WARNING: The version of Tcl/Tk (8.5.9) in use may be unstable.
Visit http://www.python.org/download/mac/tcltk/ for current information."

--

___
Python tracker 

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



[issue24042] Convert os._getfullpathname() and os._isdir() to Argument Clinic

2015-05-12 Thread Mark Lawrence

Mark Lawrence added the comment:

I've tested the patch on Windows 8.1, 32 and 64 bit release and debug builds 
with no problems.

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue22682] Add support of KZ1048 (RK1048) encoding

2015-05-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset def3bab79c8f by Serhiy Storchaka in branch 'default':
Added forgotten new files for issues #22681 and #22682.
https://hg.python.org/cpython/rev/def3bab79c8f

--

___
Python tracker 

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



[issue22681] Add support of KOI8-T encoding

2015-05-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset def3bab79c8f by Serhiy Storchaka in branch 'default':
Added forgotten new files for issues #22681 and #22682.
https://hg.python.org/cpython/rev/def3bab79c8f

--

___
Python tracker 

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



[issue22681] Add support of KOI8-T encoding

2015-05-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thanks Ned. I just forgive to add new encoding files.

--

___
Python tracker 

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



[issue23509] Speed up Counter operators

2015-05-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Could you please look at the patch Raymond? There are only few days are left to 
the feature freeze.

--
keywords: +needs review

___
Python tracker 

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



[issue22681] Add support of KOI8-T encoding

2015-05-12 Thread Ned Deily

Ned Deily added the comment:

Also the 10.6 (Snow Leopard) buildbot:

http://buildbot.python.org/all/builders/AMD64%20Snow%20Leop%203.x/builds/3125/steps/test/logs/stdio

--

___
Python tracker 

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



[issue22681] Add support of KOI8-T encoding

2015-05-12 Thread Ned Deily

Ned Deily added the comment:

Lots of "LookupError: unknown encoding: koi8_t" test failures (on OS X 10.10) 
after this commit, for example, in test_codecs:

==
ERROR: test_basics (test.test_codecs.BasicUnicodeTest)
--
Traceback (most recent call last):
  File "/py/dev/3x/source/Lib/test/test_codecs.py", line 1869, in test_basics
name = codecs.lookup(encoding).name
LookupError: unknown encoding: koi8_t

==
ERROR: test_decoder_state (test.test_codecs.BasicUnicodeTest)
--
Traceback (most recent call last):
  File "/py/dev/3x/source/Lib/test/test_codecs.py", line 2024, in 
test_decoder_state
self.check_state_handling_decode(encoding, u, u.encode(encoding))
LookupError: unknown encoding: koi8_t

==
ERROR: test_seek (test.test_codecs.BasicUnicodeTest)
--
Traceback (most recent call last):
  File "/py/dev/3x/source/Lib/test/test_codecs.py", line 1992, in test_seek
reader = codecs.getreader(encoding)(io.BytesIO(s.encode(encoding)))
  File "/py/dev/3x/blds/uxd/../../source/Lib/codecs.py", line 998, in getreader
return lookup(encoding).streamreader
LookupError: unknown encoding: koi8_t

--
Ran 211 tests in 5.970s

FAILED (errors=5, skipped=17)

--
nosy: +ned.deily

___
Python tracker 

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



[issue22486] Add math.gcd()

2015-05-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 34648ce02bd4 by Serhiy Storchaka in branch 'default':
Issue #22486: Added the math.gcd() function.  The fractions.gcd() function now 
is
https://hg.python.org/cpython/rev/34648ce02bd4

--
nosy: +python-dev

___
Python tracker 

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



[issue24170] IDLE crashes when I press ^ key

2015-05-12 Thread Ned Deily

Ned Deily added the comment:

Unless I'm very much mistaken, this is another instance of the old Cocoa Tk 
problem documented here (http://sourceforge.net/p/tktoolkit/bugs/2722/) and 
referred to in https://www.python.org/download/mac/tcltk/.  It's not like a 
normal TclError in that it causes the embedded Tcl interpreter used by Python 
to hard crash with no chance of recovery.  This is why we strongly recommend 
people not use older versions of Cocoa Tk as, unfortunately, are still shipped 
by Apple with the latest versions of OS X.  The problem has been fixed in more 
recent versions of Cocoa Tk such as those shipped by ActiveState and which the 
python.org installer will use if installed (and will warn about if not 
installed).

--

___
Python tracker 

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



[issue24170] IDLE crashes when I press ^ key

2015-05-12 Thread Terry J. Reedy

Terry J. Reedy added the comment:

At least on Windows, tk errors usually result in TclError with a message that 
is sometimes helpful.

--

___
Python tracker 

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



[issue24170] IDLE crashes when I press ^ key

2015-05-12 Thread Ned Deily

Ned Deily added the comment:

This is undoubtedly a crash in Tk, not in Python itself, so there won't be any 
Python traceback.

--

___
Python tracker 

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



[issue24170] IDLE crashes when I press ^ key

2015-05-12 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Does not happen on Windows. Please start Idle with "python -m idlelib" in a 
console and report any error traceback you see.  Replace 'python' with 
'python3' or 'py -3' as needed to start 3.x.  (I am not familiar with osx 
incantation.)

--
components: +Macintosh
type: crash -> behavior

___
Python tracker 

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



[issue17849] Missing size argument in readline() method for httplib's class LineAndFileWrapper

2015-05-12 Thread JitterMan

JitterMan added the comment:

I ran into this problem when I gave https_proxy an invalid value:

export https_proxy=http://foo.com

No divine intervention required. I was just trying to determine what message 
was printed with the proxy environment variable was set incorrectly.

Perhaps that will help you develop a more reasonable testcase.

--

___
Python tracker 

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



[issue22682] Add support of KZ1048 (RK1048) encoding

2015-05-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you for your reviews Amaury and Marc-Andre.

--
assignee:  -> serhiy.storchaka
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



[issue22681] Add support of KOI8-T encoding

2015-05-12 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee:  -> serhiy.storchaka
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



[issue15027] Faster UTF-32 encoding

2015-05-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

And that's not all...

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



[issue22681] Add support of KOI8-T encoding

2015-05-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 78de5d040492 by Serhiy Storchaka in branch 'default':
Issue #22681: Added support for the koi8_t encoding.
https://hg.python.org/cpython/rev/78de5d040492

--
nosy: +python-dev

___
Python tracker 

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



[issue22682] Add support of KZ1048 (RK1048) encoding

2015-05-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 6e1fe5bfba48 by Serhiy Storchaka in branch 'default':
Issue #22682: Added support for the kz1048 encoding.
https://hg.python.org/cpython/rev/6e1fe5bfba48

--
nosy: +python-dev

___
Python tracker 

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



[issue15027] Faster UTF-32 encoding

2015-05-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 80cf7723c4cf by Serhiy Storchaka in branch 'default':
Issue #15027: The UTF-32 encoder is now 3x to 7x faster.
https://hg.python.org/cpython/rev/80cf7723c4cf

--

___
Python tracker 

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



[issue17849] Missing size argument in readline() method for httplib's class LineAndFileWrapper

2015-05-12 Thread Demian Brecht

Changes by Demian Brecht :


--
nosy: +demian.brecht

___
Python tracker 

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



[issue24171] httplib

2015-05-12 Thread R. David Murray

R. David Murray added the comment:

This is a duplicate of issue 17849.

--
nosy: +r.david.murray
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Missing size argument in readline() method for httplib's class 
LineAndFileWrapper
type: crash -> behavior

___
Python tracker 

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



[issue23882] unittest discovery doesn't detect namespace packages when given no parameters

2015-05-12 Thread Ned Deily

Changes by Ned Deily :


--
stage: needs patch -> patch review

___
Python tracker 

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



[issue17849] Missing size argument in readline() method for httplib's class LineAndFileWrapper

2015-05-12 Thread R. David Murray

Changes by R. David Murray :


--
nosy: +jitterman

___
Python tracker 

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



[issue24156] test.test_ssl.ThreadedTests unit test failed

2015-05-12 Thread Ned Deily

Ned Deily added the comment:

Thanks for the additional info.  I don't know what possible configuration 
options might affect this other than that I would expect to see 127.0.0.1 as 
the primary IPv4 address on the loopback interface, like:

# ifconfig
[...]
loLink encap:Local Loopback
  inet addr:127.0.0.1  Mask:255.0.0.0
  inet6 addr: ::1/128 Scope:Host
  UP LOOPBACK RUNNING  MTU:65536  Metric:1
[...]

Since this does seem to be unique to your configuration, I'm going to close 
this issue for now.  If you do discover the root cause and it appears to be 
something that might be seen by other users and, thus, should be handled in the 
test suite, please re-open.

--
resolution:  -> works for me
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



[issue24169] sockets convert out-of-range port numbers % 2**16

2015-05-12 Thread R. David Murray

R. David Murray added the comment:

You pegged it when you said the behavior is inherited from C.  Technically this 
isn't a bug in Python, since the socket module is a set of (mostly) thin 
wrappers around the C.

Enhancing CPython to do the check is not a bad suggestion, especially since it 
seems that other languages and implementations do so.  We won't fix this in a 
maintenance release, though, since it would pointlessly break working code 
(even if that code is technically buggy).

--
nosy: +r.david.murray
stage:  -> needs patch
type: behavior -> enhancement
versions:  -Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.6

___
Python tracker 

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



[issue23290] Faster set copying

2015-05-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is the patch with hoisted the conditionals out of the loop.

New microbenchmarking results:

$ ./python -m timeit -s "s = set(range(10**4))" -- "frozenset(s)"
Unpatched: 1000 loops, best of 3: 407 usec per loop
With patch #4: 1000 loops, best of 3: 325 usec per loop  (speed up 25%)
With patch #5: 1000 loops, best of 3: 272 usec per loop  (speed up 50%)

$ ./python -m timeit -s "s = {i+(j<<64) for i in range(10**4//2) for j in 
range(2)}" -- "frozenset(s)"
Unpatched: 1000 loops, best of 3: 995 usec per loop
With patch #4: 1000 loops, best of 3: 447 usec per loop  (speed up 123%)
With patch #5: 1000 loops, best of 3: 417 usec per loop  (speed up 139%)

$ ./python -m timeit -s "s = set(range(10**4)); s.add(-1); s.discard(-1)" -- 
"frozenset(s)"
Unpatched: 1000 loops, best of 3: 411 usec per loop
With patch #4: 1000 loops, best of 3: 355 usec per loop  (speed up 16%)
With patch #5: 1000 loops, best of 3: 406 usec per loop  (equal)

$ ./python -m timeit -s "s = {i+(j<<64) for i in range(10**4//2) for j in 
range(2)}; s.add(-1); s.discard(-1)" -- "frozenset(s)"
Unpatched: 1000 loops, best of 3: 1.01 msec per loop
With patch #4: 1000 loops, best of 3: 572 usec per loop  (speed up 77%)
With patch #5: 1000 loops, best of 3: 609 usec per loop  (speed up 66%)

--
Added file: http://bugs.python.org/file39351/set_faster_copy_5.patch

___
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-05-12 Thread Christie

Christie added the comment:

Cool, thanks @ncoghlan! Would you like someone to take on the work of updating 
the latest patch on issue 18576?

--

___
Python tracker 

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



[issue24169] sockets convert out-of-range port numbers % 2**16

2015-05-12 Thread Kurt Rose

Kurt Rose added the comment:

Sorry, dumb mistake on my part.  I should have been calling getpeername(), not 
getsockname()

In that case the result is 80:
>>> socket.create_connection( ('google.com', 2**16 + 80) ).getpeername()
('74.125.239.41', 80)

The "random" ports were the client-side ephemeral ports.

--

___
Python tracker 

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



[issue24171] httplib

2015-05-12 Thread JitterMan

New submission from JitterMan:

In python2.7.9, httplib.py, on line 780, makes a call to:

line = response.fp.readline(_MAXLINE + 1)

This ends up calling a function defined on line 1362 in the same file:

def readline(self):

Notice the argument mismatch. The call passes two arguments, but the function 
defines only one. This can be 'fixed' by changing the definition to:

def readline(self, size=None):

--
messages: 242998
nosy: jitterman
priority: normal
severity: normal
status: open
title: httplib
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



[issue24170] IDLE crashes when I press ^ key

2015-05-12 Thread Ned Deily

Ned Deily added the comment:

If you are using a Python 3.4.3 from a python.org installer for OS X or have 
built your own, have you installed the latest ActiveTcl 8.5.x as described 
here? 

https://www.python.org/download/mac/tcltk/

If not, you should have received a warning when you launched IDLE.

--

___
Python tracker 

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



[issue24134] assertRaises can behave differently

2015-05-12 Thread Tim Graham

Tim Graham added the comment:

I didn't find any problems while testing your proposed new patch for cpython 
and your proposed patch for Django together.

--

___
Python tracker 

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



[issue23290] Faster set copying

2015-05-12 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Le 12/05/2015 20:55, Raymond Hettinger a écrit :
> 
> Optimizations aren't new features.  We can still tweak the implementation 
> through-out the betas.

Not really. The period after the first beta is for fixing bugs, not for
risking introducing new bugs.

--

___
Python tracker 

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



[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2015-05-12 Thread Sean Wolfe

Sean Wolfe added the comment:

successfully tested on Linux in 2014

Hello folks, FYI I also installed this patch on Lubuntu linux in 2014 on a 
series of computers at a lab where I mentor. I don't have the documentation for 
those specific tests, but I did follow the outline above, and it was done.

So, IMO we can call this tested on W7, Linux and OSX 10.9.3, for Python 2.7 .

--

___
Python tracker 

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



[issue24170] IDLE crashes when I press ^ key

2015-05-12 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +kbk, ned.deily, roger.serwy, ronaldoussoren, terry.reedy

___
Python tracker 

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



[issue23290] Faster set copying

2015-05-12 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I looked at the patch again and it is in pretty good shape.

Please hoist the conditionals out of the loop (for intelligibility and to let 
the compiler in-line more effectively).  Also, let's remove the "dump" and 
"clear" variable names in favor of comments that explain the conditionals (to 
introducing new terminology to the module). 

If you want, I'll take a crack at it in the next couple of days.

--

___
Python tracker 

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



[issue24169] sockets convert out-of-range port numbers % 2**16

2015-05-12 Thread Kurt Rose

Kurt Rose added the comment:

I was incorrect -- the result of getsockname() appears to be some garbage port:

>>> socket.create_connection( ('google.com', 2**16 + 80) ).getsockname()
('10.225.89.86', 56446)
>>> socket.create_connection( ('google.com', 2**16 + 80) ).getsockname()
('10.225.89.86', 56447)
>>> socket.create_connection( ('google.com', 2**16 + 80) ).getsockname()
('10.225.89.86', 56448)
>>> socket.create_connection( ('google.com', 2**16 + 80) ).getsockname()
('10.225.89.86', 56449)
>>> socket.create_connection( ('google.com', 2**16 + 80) ).getsockname()
('10.225.89.86', 56450)
>>> socket.create_connection( ('google.com', 2**16 + 80) ).getsockname()
('10.225.89.86', 56451)
>>> socket.create_connection( ('google.com', 2**16 + 80) ).getsockname()
('10.225.89.86', 56452)

Java's stdlib gives a proper error message:

>>> java.net.Socket("google.com", 2**16 + 80)
Traceback (most recent call last):
  File "", line 1, in 
at java.net.InetSocketAddress.(Unknown Source)
at java.net.Socket.(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.python.core.PyReflectedConstructor.constructProxy(PyReflectedCons
tructor.java:210)

java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: port out
 of range:65616


The .NET runtime also rejects invalid ports:

>>> System.Net.IPEndPoint(0x7F01, 2**16 + 80)
Traceback (most recent call last):
  File "", line 1, in 
ValueError: Specified argument was out of the range of valid values.
Parameter name: port

IronPython by extension rejects the invalid port:

>>> socket.create_connection( ('google.com', 2**16 + 80) )
Traceback (most recent call last):
  File "", line 1, in 
ValueError: Specified argument was out of the range of valid values.
Parameter name: port

However, Jython recreates the behavior of CPython:

>>> socket.create_connection( ('google.com', 2**16 + 80) ).getsockname()
(u'10.225.89.86', 63071)

--

___
Python tracker 

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



[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2015-05-12 Thread Sean Wolfe

Sean Wolfe added the comment:

Windows 7 patch test successful:


https://bugs.python.org/issue2704

* install python 2.7.8 fresh on W7
* check idle terminal functionality
--> should not show terminal changes from 2704:
- up arrows move cursor
- typing out of focus has no effect
- clicking above the prompt, then typing, does not move cursor to the prompt 
and begin typing


* install Terminal.py in idlelib
* apply PyShell.py.patch

* click out of focus and type
--> cursor returns to prompt + text appears
* backspace
--> backspace deletes text on prompt line

* press up arrow
--> cursor does not move up
--> bell sounds as there are no previous commands

* enter a few commands, then use up/down keys to navigate history
--> up and down browse through history

There seems to be a bell command in the history as I cycle through commands 
when I cross from earliest to latest.

--

___
Python tracker 

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



[issue24170] IDLE crashes when I press ^ key

2015-05-12 Thread magnus.forsberg

New submission from magnus.forsberg:

Every time I press the ^ key, IDLE crashes. I've tried this with two different 
keyboards with the same result.
I use IDLE 3.4.3 with Mac OS X 10.10.3.

--
components: IDLE
messages: 242990
nosy: magnus.forsberg
priority: normal
severity: normal
status: open
title: IDLE crashes when I press ^ key
type: crash
versions: Python 3.4

___
Python tracker 

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



[issue23290] Faster set copying

2015-05-12 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Optimizations aren't new features.  We can still tweak the implementation 
through-out the betas.

--

___
Python tracker 

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



[issue22682] Add support of KZ1048 (RK1048) encoding

2015-05-12 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

Looks good. Thanks, Serhiy.

--

___
Python tracker 

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



[issue24169] sockets convert out-of-range port numbers % 2**16

2015-05-12 Thread Kurt Rose

New submission from Kurt Rose:

This appears to affect all versions of Python.  In a behavior inherited from C, 
TCP ports that are > 2 bytes are silently truncated.

Here is a simple reproduction:

>>> socket.create_connection( ('google.com', 2**16 + 80) )


Needs more investigation, but one likely place to make the fix is here:
https://hg.python.org/cpython/file/9d2c4d887c19/Modules/socketmodule.c#l1535

if (!PyArg_ParseTuple(args, "O&i:getsockaddrarg",
  idna_converter, &host, &port))

Instead of parsing port with i, use H.  This is a deep change to the behavior, 
but I think it is very unlikely that users intentionally mean to pass a TCP 
port > 2**16.  More likely, this is silently swallowing errors. 

There no indication that the passed port parameter is not being used for the 
actual TCP communication (which is physically impossible because TCP only has a 
2 byte port field).

In fact, the socket will continue to "lie" to the user and obfuscate the actual 
port being used if getsockname() is called:

>>> socket.create_connection( ('google.com', 2**16 + 80) ).getsockname()
('10.225.89.86', 54899)

--
messages: 242987
nosy: Kurt.Rose
priority: normal
severity: normal
status: open
title: sockets convert out-of-range port numbers % 2**16
type: behavior
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



[issue22682] Add support of KZ1048 (RK1048) encoding

2015-05-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

It would be nice if somebody of the encoding package maintainers (Martin, 
Marc-Andre) will approve (or reject) the patch.

--

___
Python tracker 

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



[issue23290] Faster set copying

2015-05-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Doesn't the feature freeze start from beta 1?

--

___
Python tracker 

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



[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-05-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9d2c4d887c19 by Yury Selivanov in branch 'default':
Issue #24017: Unset asyncio event loop after test.
https://hg.python.org/cpython/rev/9d2c4d887c19

--

___
Python tracker 

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



[issue23290] Faster set copying

2015-05-12 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I don't like the patch as-is (comment change is wrong, test in the inner-loop 
making the common case pay for a short-cut for the uncommon case).  As I said 
before, the basic idea is good and I will very likely include some variant of 
this for Python3.5.

I marked this as low priority so I can work on other things (such as deque 
slicing) before the feature freeze and will come back to this after beta 1.  
Please remain calm.  My development time is limited but this is something I do 
want to get done.

--

___
Python tracker 

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



[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-05-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ee7d2c9c70ab by Yury Selivanov in branch '3.4':
asyncio: Make sure sys.set_coroutine_wrapper is called *only* when loop is 
running.
https://hg.python.org/cpython/rev/ee7d2c9c70ab

New changeset 874edaa34b54 by Yury Selivanov in branch 'default':
asyncio: Make sure sys.set_coroutine_wrapper is called *only* when loop is 
running.
https://hg.python.org/cpython/rev/874edaa34b54

--

___
Python tracker 

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



[issue15027] Faster UTF-32 encoding

2015-05-12 Thread Larry Hastings

Larry Hastings added the comment:

We're still in alpha, so it's fine for 3.5 right now.  The cutoff for new 
features for 3.5 will be May 23.

--

___
Python tracker 

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



[issue24098] Multiple use after frees in obj2ast_* methods

2015-05-12 Thread paul

paul added the comment:

ping

--

___
Python tracker 

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



[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-05-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0dc3b61f1dfa by Yury Selivanov in branch 'default':
Issue #24017: Plug ref leak.
https://hg.python.org/cpython/rev/0dc3b61f1dfa

--

___
Python tracker 

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



[issue22681] Add support of KOI8-T encoding

2015-05-12 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc added the comment:

Looks good to me.

--
nosy: +amaury.forgeotdarc

___
Python tracker 

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



[issue22682] Add support of KZ1048 (RK1048) encoding

2015-05-12 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc added the comment:

Please go ahead! Or do you expect someone else to review the patch?

--

___
Python tracker 

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



[issue24156] test.test_ssl.ThreadedTests unit test failed

2015-05-12 Thread Roman Rader

Roman Rader added the comment:

You're right, it does not reproduces on any machine. I'm using Arch Linux, 
still trying to figure out the repro steps.

My hosts file doesn't contain such entries for localhost, it's pretty standard. 
If I disable my external network interface, it retrieves my second IP from 
virtual interface. And only when I disable all interfaces, I can get 127.0.0.1 
on source in IP packet.

The problem is, even if I enforce client to bind to "127.0.0.1", it substitutes 
as well (see https://gist.github.com/rrader/3e575cde56827b1f74a1).

strace is clean, Python calls all kernel functions with 127.0.0.1 IP. So, I 
suppose, the problem not in the Python code itself, but somewhere deeper 
(however it can be lack of some flags?)

--

___
Python tracker 

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



[issue23796] BufferedReader.peek() crashes if closed

2015-05-12 Thread John Hergenroeder

John Hergenroeder added the comment:

Wonderful! Thanks for your help, Berker!

--

___
Python tracker 

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



[issue19610] Give clear error messages for invalid types used for setup.py params (e.g. tuple for classifiers)

2015-05-12 Thread Berker Peksag

Berker Peksag added the comment:

Éric, could you please take a look at issue19610_v4.diff? I'd like to commit 
the patch this weekend. Thanks!

--

___
Python tracker 

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



[issue23983] Update example in the pty documentation

2015-05-12 Thread Berker Peksag

Changes by Berker Peksag :


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



[issue23983] Update example in the pty documentation

2015-05-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e656bece13fa by Berker Peksag in branch '3.4':
Issue #23983: Update the pty module example.
https://hg.python.org/cpython/rev/e656bece13fa

New changeset 0be7c8f46378 by Berker Peksag in branch 'default':
Issue #23983: Update the pty module example.
https://hg.python.org/cpython/rev/0be7c8f46378

--
nosy: +python-dev

___
Python tracker 

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



[issue23796] BufferedReader.peek() crashes if closed

2015-05-12 Thread Berker Peksag

Berker Peksag added the comment:

Fixed. Thanks for the patch, John.

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



[issue23796] BufferedReader.peek() crashes if closed

2015-05-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7d722c9049ff by Berker Peksag in branch '3.4':
Issue #23796: peak and read1 methods of BufferedReader now raise ValueError
https://hg.python.org/cpython/rev/7d722c9049ff

New changeset be7636fd6438 by Berker Peksag in branch 'default':
Issue #23796: Null merge.
https://hg.python.org/cpython/rev/be7636fd6438

--

___
Python tracker 

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



[issue23796] BufferedReader.peek() crashes if closed

2015-05-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 41e9d324f10d by Berker Peksag in branch 'default':
Issue #23796: peak and read1 methods of BufferedReader now raise ValueError
https://hg.python.org/cpython/rev/41e9d324f10d

--
nosy: +python-dev

___
Python tracker 

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



[issue23895] python socket module fails to build on Solaris when -zignore is in LDFLAGS

2015-05-12 Thread R. David Murray

Changes by R. David Murray :


--
title: PATCH: python socket module fails to build on Solaris when -zignore is 
in LDFLAGS -> python socket module fails to build on Solaris when -zignore is 
in LDFLAGS

___
Python tracker 

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



[issue23895] PATCH: python socket module fails to build on Solaris when -zignore is in LDFLAGS

2015-05-12 Thread R. David Murray

R. David Murray added the comment:

Do you know anyone else using solaris who could do a review (ie: confirm that 
your patch makes sense and works for them)?  It looks like jcea, who is our 
only current committer who uses Solaris as far as I know (well, OpenIndiana), 
hasn't had time to look at this.

On the other hand, it isn't 100% clear to me that this is appropriate.  I'm not 
(yet) experienced enough with the internals of our build system to be the one 
to make the call, but it seems to me that you can support -z ignore by 
modifying your Modules/Setup file, so it may not be appropriate to inject 
solaris specific support in setup.py for an option that isn't normally used.

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



[issue23034] Dynamically control debugging output

2015-05-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Proposed patch adds the "-X showalloccount" option, that turn on the output of 
allocated objects counts if COUNT_ALLOCS, SHOW_ALLOC_COUNT, or SHOW_TRACK_COUNT 
are defined. The output of COUNT_ALLOCS is now written to stderr.

--
keywords: +patch
stage:  -> patch review
Added file: http://bugs.python.org/file39350/show_alloc_counts.patch

___
Python tracker 

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



[issue23895] PATCH: python socket module fails to build on Solaris when -zignore is in LDFLAGS

2015-05-12 Thread R. David Murray

Changes by R. David Murray :


--
stage:  -> patch review
status: languishing -> open

___
Python tracker 

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



[issue1322] Deprecate platform.dist() and platform.linux_distribution() functions

2015-05-12 Thread Berker Peksag

Changes by Berker Peksag :


--
assignee: lemburg -> berker.peksag
stage: patch review -> commit review

___
Python tracker 

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



[issue17762] platform.linux_distribution() should honor /etc/os-release

2015-05-12 Thread Petr Viktorin

Changes by Petr Viktorin :


--
nosy: +encukou

___
Python tracker 

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



[issue1322] Deprecate platform.dist() and platform.linux_distribution() functions

2015-05-12 Thread Petr Viktorin

Changes by Petr Viktorin :


--
nosy: +encukou

___
Python tracker 

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



[issue23882] unittest discovery doesn't detect namespace packages when given no parameters

2015-05-12 Thread Alex Shkop

Alex Shkop added the comment:

Please, review the patch.

--

___
Python tracker 

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



  1   2   >