[issue27042] Incorrect grammar for function definitions

2016-05-16 Thread Senthil Kumaran

Changes by Senthil Kumaran :


--
nosy: +benjamin.peterson

___
Python tracker 

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



[issue26991] Possible reference leak in MAKE_FUNCTION

2016-05-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset eaa3a71a6f62 by Benjamin Peterson in branch '3.5':
fix possible refleak in MAKE_FUNCTION (closes #26991)
https://hg.python.org/cpython/rev/eaa3a71a6f62

New changeset 7270701cf5bc by Benjamin Peterson in branch 'default':
merge 3.5 (#26991)
https://hg.python.org/cpython/rev/7270701cf5bc

--
nosy: +python-dev
resolution:  -> fixed
stage: test needed -> 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



[issue27041] asyncio: Add loop.create_future method

2016-05-16 Thread STINNER Victor

STINNER Victor added the comment:

Thanks.

--

___
Python tracker 

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



[issue27042] Incorrect grammar for function definitions

2016-05-16 Thread Eric Wieser

Eric Wieser added the comment:

The parent commit is also bad:

https://hg.python.org/cpython/rev/b65007ef59c0

--

___
Python tracker 

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



[issue21703] IDLE: Test UndoDelegator

2016-05-16 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Solved 'theme' problem by adding to end of tearDownClass
del cls.percolator, cls.text, cls.root

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



[issue21703] IDLE: Test UndoDelegator

2016-05-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ce1b14ed5445 by Terry Jan Reedy in branch '3.5':
Issue #21703: Add test for undo delegator.  Patch most by Saimadhav Heblikar .
https://hg.python.org/cpython/rev/ce1b14ed5445

--
nosy: +python-dev

___
Python tracker 

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



[issue27042] Incorrect grammar for function definitions

2016-05-16 Thread Eric Wieser

Eric Wieser added the comment:

The offending patch can be found at 
https://hg.python.org/cpython/rev/71ff2235bb4c

--

___
Python tracker 

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



[issue27041] asyncio: Add loop.create_future method

2016-05-16 Thread Yury Selivanov

Yury Selivanov added the comment:

Victor, the docs are now online. 
https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.BaseEventLoop.create_future

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



[issue26823] Shrink recursive tracebacks

2016-05-16 Thread Emanuel Barry

Emanuel Barry added the comment:

I realize that I haven't given any update on this since my last patch. I 
figured that trying to detect when an arbitrary number of functions call each 
other in a convoluted call chain isn't a very good idea.

Not only is it way beyond my abilities, but I think it'll overcomplicate the 
code too much. Furthermore, the way Python/traceback.c (and, coincidentally, 
Lib/traceback.py) is done - print each frame as they come and then throw it 
away - means that remembering more than the last frame needs a refactor of both 
files. This is way out of the scope of this issue, which aims to solve the 
common cases (a typo when messing around in the REPL, __getattribute__ and 
__getattr__ are what get me the most).

I think that if the idea of keeping a track of multiple frames still flies, it 
should be a separate issue - probably after yet another issue proposing to 
refactor the files for that, but I'm dropping the idea.

Except for the ambigous message, I haven't seen any comments on any of my 
patches, which I take as a very good thing. Is there anything else preventing 
this from being merged?

TL;DR - Ping

--

___
Python tracker 

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



[issue21703] IDLE: Test UndoDelegator

2016-05-16 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Before looking at this, I ran the leak tests and found a worse problem in the 
test suite.  I opened #27044 and fixed the problem.

I did not get the 'theme changed' message (msg220243) when running the leak 
test in the console, but did when running it either the file or test_file as 
__main__.  In the former case, the process is started by test.regrtest, which 
ends up calling unittest.  This is how buildbots run.  In the latter case, the 
process is started by the idlelib file, which calls unittest.

--
assignee:  -> terry.reedy
stage:  -> commit review
type:  -> enhancement
versions: +Python 3.6 -Python 2.7, Python 3.4

___
Python tracker 

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



[issue27044] Stop test_idle memory leaks

2016-05-16 Thread Terry J. Reedy

Changes by Terry J. Reedy :


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



[issue27044] Stop test_idle memory leaks

2016-05-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9e1c859562bb by Terry Jan Reedy in branch '2.7':
Backports: #25747: remove bad test.  #27044: stop test_idle from leaking.
https://hg.python.org/cpython/rev/9e1c859562bb

New changeset 6a33d8d5d208 by Terry Jan Reedy in branch '3.5':
Issue #27044: stop test_idle from leaking by deleting callbacks.
https://hg.python.org/cpython/rev/6a33d8d5d208

--
nosy: +python-dev

___
Python tracker 

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



[issue25747] test_idle failure in leaks searching mode

2016-05-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9e1c859562bb by Terry Jan Reedy in branch '2.7':
Backports: #25747: remove bad test.  #27044: stop test_idle from leaking.
https://hg.python.org/cpython/rev/9e1c859562bb

--

___
Python tracker 

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



[issue27036] Mark up of references in different form

2016-05-16 Thread Martin Panter

Martin Panter added the comment:

It _would_ be nice to sort out the SyntaxErrors problem as well, but don’t let 
that stop fixing the easier problems. I would be interested in other people’s 
thoughts.

My problem with things like :func:`evaluated ` is that the meaning is 
less clear, and it is not obvious what the hyperlink is for. If you print the 
sentence out, or casually look in a browser, there is not much indication that 
the function eval() is specified. Ugly as it is, “eval()uated” is more obvious.

Other options that I would be happier with, if you want to avoid the repeated 
“evaluated with eval()”, etc:

Level values are passed through :func:`eval`
list of channels waited with select() or poll()
The ``args`` entry, after passing through :func:`eval`
and :meth:`~Thread.join` cannot be called on them [dummy threads]
Module objects now support :mod:`weakref`.

--

___
Python tracker 

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



[issue27045] Forward slashes in Windows paths

2016-05-16 Thread Emanuel Barry

Emanuel Barry added the comment:

Forward slashes work fine in Windows, for both the command line and PowerShell. 
Windows always displays backslahes, but accepts either (as well as any 
combination of both) in paths.

--
assignee: docs@python -> 
nosy: +ebarry
resolution:  -> not a bug
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



[issue27045] Forward slashes in Windows paths

2016-05-16 Thread Ed Doxtator

New submission from Ed Doxtator:

In the documentation for pyvenv 
(https://docs.python.org/dev/library/venv.html), there is a table that shows by 
platform the command required to activate a virtual environment by OS.  For 
Windows, the values are:

PlatformShell   Command to activate virtual environment
---
Windows cmd.exe C:> /Scripts/activate.bat
PowerShell  PS C:> /Scripts/Activate.ps1

The commands are incorrect-- they contain forward slashes and should be back 
slashes.

--
assignee: docs@python
components: Documentation
messages: 265744
nosy: doc, docs@python
priority: normal
severity: normal
status: open
title: Forward slashes in Windows paths
type: enhancement
versions: Python 3.5

___
Python tracker 

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



[issue27044] Stop test_idle memory leaks

2016-05-16 Thread Terry J. Reedy

New submission from Terry J. Reedy:

test_idle leaked [2648, 2648, 2648] references, sum=7944
test_idle leaked [938, 940, 940] memory blocks, sum=2818

I traced this to test_configdialog and then to ConfigDialog.AttachVarCallbacks, 
which has 18 call like
self.fontSize.trace_variable('w', self.VarChanged_font)
Currently, root.destroy does not destroy associated callbacks.  Serhiy has a 
patch to change this, but will do explicit cleanup for the test anyway.

--
assignee: terry.reedy
messages: 265743
nosy: terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: Stop test_idle memory leaks
type: behavior
versions: Python 2.7, 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



[issue22377] %Z in strptime doesn't match EST and others

2016-05-16 Thread Peter Inglesby

Peter Inglesby added the comment:

Given the difference between the documented and the actual behaviours, and 
given that it's apparently not obvious what the correct fix should be, would a 
patch that updates the docs (to say that %Z only matched GMT and UTC) be 
welcome?

--
nosy: +inglesp

___
Python tracker 

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



[issue27043] Describe what ‘inspect.cleandoc’ does to synopsis line.

2016-05-16 Thread Ben Finney

New submission from Ben Finney:

The library documentation for ‘inspect.cleandoc’ describes the transformation 
that occurs to “the second line onwards”, but makes no mention of what 
processing occurs to the synopsis (first) line.

Please update the library documentation for this function, to explicitly 
describe how it processes each of the different parts of a docstring.

If possible, this should be guided by PEP 257's discussion of how indentation 
is transformed: 
https://www.python.org/dev/peps/pep-0257/#handling-docstring-indentation

--
assignee: docs@python
components: Documentation
messages: 265741
nosy: bignose, docs@python
priority: normal
severity: normal
status: open
title: Describe what ‘inspect.cleandoc’ does to synopsis line.
type: enhancement
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



[issue10496] Python startup should not require passwd entry

2016-05-16 Thread Melissa Chang

Changes by Melissa Chang :


--
nosy: +Melissa Chang

___
Python tracker 

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



[issue27041] asyncio: Add loop.create_future method

2016-05-16 Thread Yury Selivanov

Yury Selivanov added the comment:

here -> https://hg.python.org/cpython/rev/83450939b106

--

___
Python tracker 

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



[issue27041] asyncio: Add loop.create_future method

2016-05-16 Thread Yury Selivanov

Yury Selivanov added the comment:

https://hg.python.org/cpython/rev/9ea64c74a1fd

--

___
Python tracker 

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



[issue27041] asyncio: Add loop.create_future method

2016-05-16 Thread STINNER Victor

Changes by STINNER Victor :


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

___
Python tracker 

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



[issue27040] asyncio: Add loop.get_exception_handler method

2016-05-16 Thread Yury Selivanov

Yury Selivanov added the comment:

Give it some time ;)
https://hg.python.org/cpython/rev/83450939b106

--

___
Python tracker 

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



[issue27040] asyncio: Add loop.get_exception_handler method

2016-05-16 Thread STINNER Victor

STINNER Victor added the comment:

> resolution:  -> fixed

Hum, it looks like the new method is not documented :-(

https://docs.python.org/dev/library/asyncio-eventloop.html#error-handling-api

--

___
Python tracker 

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



[issue27041] asyncio: Add loop.create_future method

2016-05-16 Thread STINNER Victor

STINNER Victor added the comment:

> resolution:  -> fixed

Hum, it looks like the change is now documented in asyncio doc :-(

https://docs.python.org/dev/library/asyncio-eventloop.html#tasks

--

___
Python tracker 

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



[issue27042] Incorrect grammar for function definitions

2016-05-16 Thread Eric Wieser

New submission from Eric Wieser:

https://docs.python.org/3.2/reference/compound_stmts.html#function-definitions 

and onwards say the following

decorator  ::=  "@" dotted_name ["(" [parameter_list [","]] ")"] NEWLINE

This is a regression from the 2.7 docs, which correctly said

decorator  ::=  "@" dotted_name ["(" [argument_list [","]] ")"] NEWLINE

The implication is that the following is supposedly valid in python 3:

@deco(what : "is this" = "supposed to mean")
def foo(annotations: "are only for here" = "right?"):
pass

The interpreter disagrees with the docs, and correctly rejects this syntax as 
garbage

--
assignee: docs@python
components: Documentation
messages: 265735
nosy: Eric.Wieser, docs@python
priority: normal
severity: normal
status: open
title: Incorrect grammar for function definitions
versions: 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



[issue11588] Add "necessarily inclusive" groups to argparse

2016-05-16 Thread paul j3

paul j3 added the comment:

So far I've proposed adding a 'hook' at the end of '_parse_known_args', that 
would give the user access to the 'seen_non_default_actions' variable.  This 
function could perform an almost arbitrarily complex set of logical 
co-occurrence tests on this set (or list) of Actions.

The rest of my proposed patches (nested groups, etc) are user interface 
components that attempt make this testing more user-friendly, both in 
specification and usage display.

It just occurred to me that an alternate stop-gap fix is to make 
'seen_non_default_actions' available to the user for his own testing after 
parsing.  Adding it to the method return is not backward compatible.  But it 
could be added as an attribute to parser.

 self._seen_actions = seen_non_default_actions

It would be the first case of giving the parser a memory of past parsing 
actions, but I don't think that's a problem.

Another possibility is to conditionally add it to the 'namespace'. 

 if hasattr(namespace, 'seen_actions'):
setattr(namespace, 'seen_actions', seen_non_default_actions)

The user could initial this attribute with a custom 'Namespace' object or with 
a 'set_defaults' call.

(I'm  proposing to save 'seen_non_default_actions' because in my earlier tests 
that seemed to be more useful than 'seen_actions'.  It's the one used by 
mutually_exclusive_group testing.)

--

___
Python tracker 

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



[issue27022] expose sendmmsg() syscall in sockets API

2016-05-16 Thread Марк Коренберг

Марк Коренберг added the comment:

This helps improve performance of asyncio datagram stream

--

___
Python tracker 

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



[issue26909] Asyncio: Pipes and socket IO is very slow

2016-05-16 Thread Марк Коренберг

Changes by Марк Коренберг :


--
title: Serious performance loss (10 times) when NOT using .drain() -> Asyncio: 
Pipes and socket IO is very slow

___
Python tracker 

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



[issue25453] Arithmetics with complex infinities is inconsistent with C/C++

2016-05-16 Thread Aaron Meurer

Changes by Aaron Meurer :


--
nosy: +Aaron.Meurer

___
Python tracker 

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



[issue25910] Fixing links in documentation

2016-05-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

> zope should be http://www.zope.org/

Isn't this is a different legal entity?

--

___
Python tracker 

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



[issue27036] Mark up of references in different form

2016-05-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you for your review Martin! Absolutely agreed with you about references 
to classes and exceptions. I have removed this from the next version of the 
patch. I left your idea about ":exc:`SyntaxError` exceptions" for other patch.

“evaluated with :func:`eval` ” looks tautologically to me. In hypertext we can 
avoid the repetition.

--
Added file: http://bugs.python.org/file42877/refs_forms2.patch

___
Python tracker 

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



[issue27041] asyncio: Add loop.create_future method

2016-05-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 32ceaad6243d by Yury Selivanov in branch '3.5':
Issue #27041: asyncio: Add loop.create_future method
https://hg.python.org/cpython/rev/32ceaad6243d

New changeset fc7b366c4c8a by Yury Selivanov in branch 'default':
Merge 3.5 (Issue #27041)
https://hg.python.org/cpython/rev/fc7b366c4c8a

--
nosy: +python-dev

___
Python tracker 

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



[issue27031] Remove interface to obsolete Tk commands

2016-05-16 Thread Serhiy Storchaka

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



[issue27031] Remove interface to obsolete Tk commands

2016-05-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 774367d21bf3 by Serhiy Storchaka in branch 'default':
Issue #27031: Removed dummy methods in Tkinter widget classes: tk_menuBar()
https://hg.python.org/cpython/rev/774367d21bf3

--
nosy: +python-dev

___
Python tracker 

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



[issue27040] asyncio: Add loop.get_exception_handler method

2016-05-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f51ecf47d416 by Yury Selivanov in branch '3.5':
Issue #27040: Add loop.get_exception_handler method
https://hg.python.org/cpython/rev/f51ecf47d416

New changeset a3db6aee74f3 by Yury Selivanov in branch 'default':
Merge 3.5 (issue #27040)
https://hg.python.org/cpython/rev/a3db6aee74f3

--
nosy: +python-dev

___
Python tracker 

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



[issue22955] Pickling of methodcaller, attrgetter, and itemgetter

2016-05-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

This is new feature in 3.5.

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



[issue27039] bytearray.remove cannot remove bytes with value greater than 127

2016-05-16 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


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



[issue27039] bytearray.remove cannot remove bytes with value greater than 127

2016-05-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 10444778d41c by Serhiy Storchaka in branch '3.5':
Issue #27039: Fixed bytearray.remove() for values greater than 127.
https://hg.python.org/cpython/rev/10444778d41c

New changeset 9acf44b7ff7b by Serhiy Storchaka in branch '2.7':
Issue #27039: Fixed bytearray.remove() for values greater than 127.
https://hg.python.org/cpython/rev/9acf44b7ff7b

New changeset 3eb502d43616 by Serhiy Storchaka in branch 'default':
Issue #27039: Fixed bytearray.remove() for values greater than 127.
https://hg.python.org/cpython/rev/3eb502d43616

--
nosy: +python-dev

___
Python tracker 

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



[issue27041] asyncio: Add loop.create_future method

2016-05-16 Thread Yury Selivanov

Changes by Yury Selivanov :


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

___
Python tracker 

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



[issue27041] asyncio: Add loop.create_future method

2016-05-16 Thread Yury Selivanov

New submission from Yury Selivanov:

This is a proxy issue for https://github.com/python/asyncio/pull/290

--
assignee: yselivanov
components: asyncio
messages: 265724
nosy: gvanrossum, haypo, yselivanov
priority: normal
severity: normal
stage: resolved
status: open
title: asyncio: Add loop.create_future method
type: enhancement
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



[issue27033] Change the decode_data default in smtpd to False

2016-05-16 Thread R. David Murray

R. David Murray added the comment:

No problem.  I use 'commit review' as an indication that a committer should do 
a final review...before that, triage or general community people can be doing 
the reviews, then triage can move it to commit review to request the final 
review before commit.  What this means in practical terms is that if I do a 
search for 'email' issues in 'commit review' stage, I find all the issues I 
should be reviewing.

I'll try to do the review soon.

--

___
Python tracker 

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



[issue27040] asyncio: Add loop.get_exception_handler method

2016-05-16 Thread Yury Selivanov

Changes by Yury Selivanov :


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

___
Python tracker 

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



[issue27040] asyncio: Add loop.get_exception_handler method

2016-05-16 Thread Yury Selivanov

New submission from Yury Selivanov:

This is a proxy issue for https://github.com/python/asyncio/pull/345

--
assignee: yselivanov
components: asyncio
messages: 265723
nosy: gvanrossum, haypo, yselivanov
priority: normal
severity: normal
stage: resolved
status: open
title: asyncio: Add loop.get_exception_handler method
type: enhancement
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



[issue27039] bytearray.remove cannot remove bytes with value greater than 127

2016-05-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Ah, this is already checked in the converter.

--

___
Python tracker 

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



[issue26939] android: test_functools hangs on armv7

2016-05-16 Thread Xavier de Gaye

Xavier de Gaye added the comment:

> I don't know if it can fix the issue, but you may see my issue #23428: "Use 
> the monotonic clock for thread conditions on POSIX platforms".

pthread_condattr_setclock() is declared in the Android API 21 headers.

When a monotonic clock is set for pthread_cond_timedwait(), one could measure 
the monotonic time elapsed to execute the instructions from _PyTime_monotonic() 
to the setting of the ts fields in PyCOND_TIMEDWAIT(), i.e the time to execute 
those statements taken from your patch:

#ifdef MONOTONIC
_PyTime_monotonic();
#else
_PyTime_gettimeofday();
#endif

/* TODO: add overflow and truncation checks */
assert(us <= LONG_MAX);
deadline.tv_usec += (long)us;
deadline.tv_sec += deadline.tv_usec / 100;
deadline.tv_usec %= 100;


and prevent gil_interval to be set below that measured value. This would solve 
the problem for this s slow emulator. _PyTime_monotonic() does not exist, 
is this _PyTime_GetMonotonicClock() ? So I did not try to test it, not knowing 
the status of your patch.

IMHO PyCOND_TIMEDWAIT() should use a monotonic clock when available.

--

___
Python tracker 

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



[issue27039] bytearray.remove cannot remove bytes with value greater than 127

2016-05-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

But we first need to test that value is in the range from 0 to 255.

--

___
Python tracker 

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



[issue27039] bytearray.remove cannot remove bytes with value greater than 127

2016-05-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

But we first need to test that value is in the range from 0 to 255.

--

___
Python tracker 

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



[issue22955] Pickling of methodcaller, attrgetter, and itemgetter

2016-05-16 Thread Jason Curtis

Jason Curtis added the comment:

This is still an issue with operator.attrgetter in 3.4.3, even after clearing 
sys.modules['_operator']:

$ python3
Python 3.4.3 (default, Oct 14 2015, 20:28:29) 
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.modules['_operator'] = None
>>> import operator
>>> import pickle
>>> pickle.loads(pickle.dumps(operator.attrgetter("foo")))
Traceback (most recent call last):
  File "", line 1, in 
_pickle.PicklingError: Can't pickle .func 
at 0x7f25728d5bf8>: attribute lookup func on operator failed

--
nosy: +Jason Curtis
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



[issue27039] bytearray.remove cannot remove bytes with value greater than 127

2016-05-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

LGTM.

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



[issue27033] Change the decode_data default in smtpd to False

2016-05-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Oh, sorry, I understood this as a sign that you already made a review and don't 
have comments. I was surprised that you made this silently.

Here is a patch that adds an entry in the porting section of What's New. Please 
also check changes in the smtpd documentation. I reformulated some sentences.

--
Added file: http://bugs.python.org/file42876/smtpd_decode_data_false_doc.patch

___
Python tracker 

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



[issue19524] ResourceWarning when urlopen() forgets the HTTPConnection object

2016-05-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Interesting. I didn't know that "hg graft" keeps the author and data of the 
original commit. Maybe this is a Mercurial bug.

--

___
Python tracker 

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



[issue27039] bytearray.remove cannot remove bytes with value greater than 127

2016-05-16 Thread Joe Jevnik

Joe Jevnik added the comment:

This seems to just be a bug in the implementation of remove. I have a patch to 
fix this and a test case.

--
keywords: +patch
nosy: +ll
Added file: http://bugs.python.org/file42875/bytearray-remove.patch

___
Python tracker 

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



[issue27031] Remove interface to obsolete Tk commands

2016-05-16 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Since the deprecation notice said 'will be removed in 3.6', go ahead ;-).

--
nosy: +terry.reedy

___
Python tracker 

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



[issue25650] Mismatching documentation <=> behaviour for typing.Any

2016-05-16 Thread Berker Peksag

Berker Peksag added the comment:

This is basically a duplicate of issue 25830. We can update the docstring of 
Any once https://github.com/python/typing/issues/136 is solved.

--
nosy: +berker.peksag
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> _TypeAlias: Discrepancy between docstring and behavior
type:  -> behavior

___
Python tracker 

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



[issue27039] bytearray.remove cannot remove bytes with value greater than 127

2016-05-16 Thread SilentGhost

SilentGhost added the comment:

Test is not catching it, because it only deals with ascii part.

--
nosy: +SilentGhost

___
Python tracker 

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



[issue26141] typing module documentation incomplete

2016-05-16 Thread Berker Peksag

Changes by Berker Peksag :


--
nosy: +berker.peksag
stage:  -> needs patch
type:  -> enhancement
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



[issue27039] bytearray.remove cannot remove bytes with value greater than 127

2016-05-16 Thread SilentGhost

Changes by SilentGhost :


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



[issue26073] Update the list of magic numbers in launcher

2016-05-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d921932fe02f by Steve Dower in branch '3.5':
Issue #26073: Updates magic number comment in _bootstrap_external.py and 
changes numbers in launcher.py to decimal to match official table.
https://hg.python.org/cpython/rev/d921932fe02f

New changeset 0fe913de4702 by Steve Dower in branch 'default':
Issue #26073: Updates magic number comment in _bootstrap_external.py and 
changes numbers in launcher.py to decimal to match official table.
https://hg.python.org/cpython/rev/0fe913de4702

--

___
Python tracker 

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



[issue27039] bytearray.remove cannot remove bytes with value greater than 127

2016-05-16 Thread Damien George

New submission from Damien George:

The following code fails with a ValueError (but I expect it to succeed):

>>> bytearray([128]).remove(128)

Tested with Python 2.7.11 and 3.5.1.  Probably it's a case of comparing a char 
(signed byte) with an unsigned value.

--
components: Interpreter Core
messages: 265709
nosy: Damien George
priority: normal
severity: normal
status: open
title: bytearray.remove cannot remove bytes with value greater than 127
type: behavior
versions: Python 2.7, Python 3.5

___
Python tracker 

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



[issue26549] co_stacksize is calculated from unoptimized code

2016-05-16 Thread Meador Inge

Meador Inge added the comment:

See also issue24340

--

___
Python tracker 

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



[issue22970] asyncio: Cancelling wait() after notification leaves Condition in an inconsistent state

2016-05-16 Thread David Coles

David Coles added the comment:

Please find the PR including a test to reproduce the issue here: 
https://github.com/python/asyncio/pull/346

--

___
Python tracker 

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



[issue25910] Fixing links in documentation

2016-05-16 Thread SilentGhost

SilentGhost added the comment:

Does it not matter that the link to pythonlabs is a part of the official 
license text? Besides, it's not an actual html a tag, but rather a verbatim 
text, surely the only correction here is to make sure that the linkcheck 
doesn't check links within pre, code and similar tags.

--

___
Python tracker 

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



[issue27037] Universal newline support for zipFile.ZipExtFile.read() is not working (deprecated?), and the missing functionality not documented

2016-05-16 Thread R. David Murray

Changes by R. David Murray :


--
Removed message: http://bugs.python.org/msg265705

___
Python tracker 

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



[issue27037] Universal newline support for zipFile.ZipExtFile.read() is not working (deprecated?), and the missing functionality not documented

2016-05-16 Thread R. David Murray

R. David Murray added the comment:

The decision was to deprecate 'U' *everywhere* in python3.

Yes, the 2.7 method you are concerned about is broken with respect to its 
documentation, which is what #6759 was about originally.  That issue was deemed 
too disruptive to the codebase to address effectively, but in fixing things 
properly for python3 we apparently lost track of the 2.7 bug.

You can fix the problem (in a forward compatible way) by wrapping the 
ZipExtFile in an io.TextIOWrapper.

The 2.7 documentation should be changed to address this issue and the solution.

--

___
Python tracker 

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



[issue26939] android: test_functools hangs on armv7

2016-05-16 Thread Xavier de Gaye

Xavier de Gaye added the comment:

On a heavily loaded system, there is no guarantee that the date obtained from a 
call to gettimeofday() in PyCOND_TIMEDWAIT(), is not in the past when 
pthread_cond_timedwait() is called, as there may be a context switch in 
between. When this happens, a Python thread cannot take the gil even if it is 
available.

This tentative patch monitors the load of the system and dynamically increases 
the value used for the switch interval when needed. With this patch on the 
android-21-armv7 emulator:

python -m test -m test_lru_cache_threaded -v test_functools
Ok
python -m test -m test_deadlock -v test_importlib
Ok
python -m test -m test_is_alive_after_fork -v test_threading
Ok

The measured elapsed time is not correct in this patch when it is above 1 
second.

--
Added file: http://bugs.python.org/file42874/pycond_timedwait.patch

___
Python tracker 

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



[issue27037] Universal newline support for zipFile.ZipExtFile.read() is not working (deprecated?), and the missing functionality not documented

2016-05-16 Thread R. David Murray

R. David Murray added the comment:

The decision was to deprecate 'U' *everywhere* in python3.

Yes, the 2.7 method you are concerned about is broken with respect to its 
documentation, which is what #6759 was about originally.  That issue was deemed 
too disruptive to the codebase to address effectively, but in fixing things 
propery for python3 we apparently lost track of the 2.7 bug.

You can fix the problem (in a forward compatible way) by wrapping the 
ZipExtFile in an io.TextIOWrapper.

The 2.7 documentation should be changed to address this issue and the solution.

--
assignee:  -> docs@python
components: +Documentation -Library (Lib)
nosy: +docs@python, r.david.murray

___
Python tracker 

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



[issue26939] android: test_functools hangs on armv7

2016-05-16 Thread STINNER Victor

STINNER Victor added the comment:

I don't know if it can fix the issue, but you may see my issue #23428: "Use the 
monotonic clock for thread conditions on POSIX platforms".

--
nosy: +haypo

___
Python tracker 

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



[issue26939] android: test_functools hangs on armv7

2016-05-16 Thread Xavier de Gaye

Xavier de Gaye added the comment:

Got now a full fledged gdb. Thread #1 loops infinitely in the "while 
(_Py_atomic_load_relaxed(_locked))" loop in take_gil(). Thread #2 is stuck 
in the MUTEX_LOCK(gil_mutex) statement in drop_gil() as can be seen by setting 
a breakpoint at the following line and seeing that this breakpoint is never hit.

Setting gil_interval to 10 (from the initial value of 1) from gdb, allows the 
test to pass.

With this patch of PyCOND_TIMEDWAIT():

  diff -r eee959fee5f5 Python/condvar.h
  --- a/Python/condvar.hSat May 07 21:13:50 2016 +0300
  +++ b/Python/condvar.hMon May 16 15:52:49 2016 +0200
  @@ -99,6 +99,7 @@
   PyCOND_ADD_MICROSECONDS(deadline, us);
   ts.tv_sec = deadline.tv_sec;
   ts.tv_nsec = deadline.tv_usec * 1000;
  +PyCOND_GETTIMEOFDAY();

and a breakpoint set on pthread_cond_timedwait(). When this breakpoint is hit, 
there is 20 usec  elapsed time instead of the value of 1 (as requested by 'us') 
between ts and deadline as shown here:

  (gdb) p ts
  $1 = {tv_sec = 1463407197, tv_nsec = 468546000}
  (gdb) p deadline
  $2 = {tv_sec = 1463407197, tv_usec = 468566}

And when iterating the loop, the measured elapsed times are: 20, 12, 12, 11, 
11, 11.

Clearly, the ts date is in the past when pthread_cond_timedwait() is called, 
and the function returns immediately without releasing the mutex. This is the 
expected behavior[1].

[1] http://linux.die.net/man/3/pthread_cond_wait

--

___
Python tracker 

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



[issue27038] Make os.DirEntry exist

2016-05-16 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +haypo

___
Python tracker 

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



[issue27038] Make os.DirEntry exist

2016-05-16 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +benhoyt

___
Python tracker 

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



[issue27038] Make os.DirEntry exist

2016-05-16 Thread Brett Cannon

New submission from Brett Cannon:

The docs claim that os.DirEntry exists 
(https://docs.python.org/3/library/os.html#os.DirEntry) but it actually does 
not (it is internal to the posix module). Should probably actually make 
os.DirEntry exist (but continue to not document the constructor).

--
components: Library (Lib)
messages: 265700
nosy: brett.cannon
priority: normal
severity: normal
status: open
title: Make os.DirEntry exist
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



[issue26359] CPython build options for out-of-the box performance

2016-05-16 Thread Brett Cannon

Brett Cannon added the comment:

Just leave a comment next week in the issue if no one else beats me to the 
issue (I'm at OSCON so I don't have time to commit until May 24 at the 
earliest).

--

___
Python tracker 

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



[issue26938] android: test_concurrent_futures hangs on armv7

2016-05-16 Thread Xavier de Gaye

Xavier de Gaye added the comment:

test_concurrent_futures is not run on Android because "This platform lacks a 
functioning sem_open implementation", see issue #26924.

Closing as won't fix.

--
resolution:  -> wont fix
status: open -> closed

___
Python tracker 

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



[issue27037] Universal newline support for zipFile.ZipExtFile.read() is not working (deprecated?), and the missing functionality not documented

2016-05-16 Thread David Pitchford

New submission from David Pitchford:

Universal newline support for the read method of ZipFileExt objects created by 
calling the ZipFile.open method is not working. The attached archive contains a 
test script for demonstrating the behavior; unzip the files into the same 
directory and run the script. It tests opening a text file with all three types 
of line endings in five different ways: with the file.read method in modes 
'rU', 'r', and 'rb', and with the zipfile.ZipFileExt.read and readlines methods 
in mode 'rU'.

The first two and last methods both read the file with the expected universal 
newline support; the '\r' and '\r\n' endings are translated to '\n'. But 
zipfile.ZipFileExt.read, even with universal newline support, leaves these 
endings untouched, just like the 'rb' mode.

This issue seems to have been raised in the past 
(http://bugs.python.org/issue6759) for Python 3.3, with the decision apparently 
made to deprecate universal newline support for this method. Is this also the 
case for Python 2.7, and if so, why does the zipfile documentation for both 
versions not mention this missing functionality? As a user, I can say that this 
deprecation is certainly disrupting my workflow; it is not at all the behavior 
I expected.

I am running Python 2.7.11 on a 64-bit copy of Windows 7 Professional SP1.

--
components: Library (Lib)
files: TestNewlines.zip
messages: 265697
nosy: David Pitchford
priority: normal
severity: normal
status: open
title: Universal newline support for zipFile.ZipExtFile.read() is not working 
(deprecated?), and the missing functionality not documented
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file42873/TestNewlines.zip

___
Python tracker 

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



[issue27033] Change the decode_data default in smtpd to False

2016-05-16 Thread R. David Murray

R. David Murray added the comment:

Um, I changed to to commit review because I was planning to review it.  I don't 
expect to find any problems, but I'm surprised you committed it.

There does need to be a whatsnew entry, and specifically something in the 
porting section, since this is a behavior change.

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

___
Python tracker 

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



[issue27033] Change the decode_data default in smtpd to False

2016-05-16 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

aiosmtpd already defaults decode_data to False.  We should consider pulling 
this into 3.6 (not just for this reason of course).

http://aiosmtpd.readthedocs.io/en/latest/

--

___
Python tracker 

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



[issue27035] Cannot set exit code in atexit callback

2016-05-16 Thread R. David Murray

R. David Murray added the comment:

Calling sys.exit in an atexit function strikes me as a really bad idea.  It 
feels to me like it breaks the contract of what atexit is designed for, which 
is to run multiple handlers at exit.  If you call sys.exit you are in some 
sense restarting the exit processing, which feels broken to me.  It would feel 
equally broken, however, to call _exit, since that would mean the rest of the 
handlers in the chain would not be run.

In any case, I personally would *expect* an exit called in an atexit handler to 
have no effect, since an exit is already in progress and we've just taken a 
detour to run the handlers.  I can see the argument for the reverse, however, 
so it isn't obvious to me what the correct answer is.

I do note that the OP in #1257 prefers to use the sys.exit return code if an 
atexit handler raises an error, which argues for not replacing it if the atexit 
handler raises SystemExit with a different RC.  It would be more consistent 
with the proposed handling of atexit errors.

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



[issue26359] CPython build options for out-of-the box performance

2016-05-16 Thread Alecsandru Patrascu

Alecsandru Patrascu added the comment:

Brett, I tried to add you in the "assigned to", but I do not have any rights to 
update those :(

--

___
Python tracker 

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



[issue26359] CPython build options for out-of-the box performance

2016-05-16 Thread Alecsandru Patrascu

Alecsandru Patrascu added the comment:

I've attached a cleaner version for CPython 3 and one for CPython 2. The 
problem with CPython 2 is that Gregory did not yet merged the LTO on this 
branch (#25702), but as soon as he does it, I'll post updated patches.

Regards,
Alecsandru

--

___
Python tracker 

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



[issue26359] CPython build options for out-of-the box performance

2016-05-16 Thread Alecsandru Patrascu

Changes by Alecsandru Patrascu :


Added file: 
http://bugs.python.org/file42872/cpython3_with_optimizations_v02.patch

___
Python tracker 

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



[issue26359] CPython build options for out-of-the box performance

2016-05-16 Thread Alecsandru Patrascu

Changes by Alecsandru Patrascu :


Added file: 
http://bugs.python.org/file42871/cpython2_with_optimizations_v01.patch

___
Python tracker 

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



[issue24291] Many servers (wsgiref, http.server, etc) can truncate large output blobs

2016-05-16 Thread Martin Panter

Martin Panter added the comment:

Thanks for your comments Serhiy. The main change in v3 is that I added a 
socketserver._write_exactly() function instead of the 
_BaseHTTPRequestHandler__write_exactly() method.

--
Added file: http://bugs.python.org/file42870/wfile-partial.v3.patch

___
Python tracker 

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



[issue14132] Redirect is not working correctly in urllib2

2016-05-16 Thread Martin Panter

Changes by Martin Panter :


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



[issue17214] http.client.HTTPConnection.putrequest encode error

2016-05-16 Thread Martin Panter

Martin Panter added the comment:

I restored the “redundant” encoding of space, in case someone’s code was 
relying on this behaviour, and because redirect_request() is a publicly 
documented method.

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



[issue19524] ResourceWarning when urlopen() forgets the HTTPConnection object

2016-05-16 Thread Martin Panter

Martin Panter added the comment:

Sorry that was actually made by me earlier today. I grafted it from your 
commit, but I always forget to reset the author and date.

--

___
Python tracker 

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




[issue27036] Mark up of references in different form

2016-05-16 Thread Martin Panter

Martin Panter added the comment:

These bug me too. For the changes like the bytes-like objects example, you have 
my full support.

But for the changes that modify identifier names, I think the both the old and 
the new versions are pretty bad. Example:

- . . . for some :exc:`SyntaxError`\ s.
+ . . . for some :exc:`SyntaxErrors `.

In Firefox, the new version renders as if it is talking about something 
literally called SyntaxErrors. It is only obvious that the exception is called 
SyntaxError when you hover the mouse, follow the link, etc.

I wonder if it would be better to find another way to write these kind of 
cases. E.g.:

* . . . for some syntax errors. [Just drop the link and markup.]
* . . . for some :exc:`SyntaxError` exceptions.

For cases like “eval()uated”, would it be acceptable changing to “evaluated 
with :func:`eval` ”?

--
nosy: +martin.panter

___
Python tracker 

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



[issue19524] ResourceWarning when urlopen() forgets the HTTPConnection object

2016-05-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Oh, Roundup Robot reports about a commit made almost 2 years ago!

--

___
Python tracker 

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



[issue27036] Mark up of references in different form

2016-05-16 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

When there is a reference from the term in different form (e.g. in plural), the 
modified part can be appended outside of the reference: ":term:`bytes-like 
object`\ s". But this looks not very nice in rendered document, since only a 
part of the word is undescored. Proposed patch expands similar references to 
full words: ":term:`bytes-like objects `".

--
assignee: docs@python
components: Documentation
files: refs_forms.patch
keywords: patch
messages: 265686
nosy: docs@python, georg.brandl, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Mark up of references in different form
type: enhancement
versions: Python 2.7, Python 3.5, Python 3.6
Added file: http://bugs.python.org/file42869/refs_forms.patch

___
Python tracker 

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



[issue25910] Fixing links in documentation

2016-05-16 Thread Senthil Kumaran

Senthil Kumaran added the comment:

zope should be http://www.zope.org/
The pythonlabs link could be removed.
The logos at pythonlabs link does not exist. Reference for pythonlab exists in 
a humorous form  here: http://www.pythonlabs.com/

--
nosy: +orsenthil

___
Python tracker 

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



[issue26168] Py_BuildValue may leak 'N' arguments on PyTuple_New failure

2016-05-16 Thread Martin Panter

Martin Panter added the comment:

Yeah okay, I agree that the code was already saving the references in a 
container, so it makes sense to keep doing that.

--

___
Python tracker 

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



[issue14132] Redirect is not working correctly in urllib2

2016-05-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 52a7f580580c by Martin Panter in branch '3.5':
Issue #14132: Fix redirect handling when target is just a query string
https://hg.python.org/cpython/rev/52a7f580580c

New changeset 789a3f87bde1 by Martin Panter in branch '2.7':
Issue #14132: Fix redirect handling when target is just a query string
https://hg.python.org/cpython/rev/789a3f87bde1

New changeset 841a9a3f3cf6 by Martin Panter in branch 'default':
Issue #14132, Issue #17214: Merge two redirect handling fixes from 3.5
https://hg.python.org/cpython/rev/841a9a3f3cf6

--
nosy: +python-dev

___
Python tracker 

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



[issue19524] ResourceWarning when urlopen() forgets the HTTPConnection object

2016-05-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 19e4e0b7f1bd by Serhiy Storchaka in branch '2.7':
Issue #19524: Port fakehttp() from Py3 c1fb19907cc4 for use in test_urllib2
https://hg.python.org/cpython/rev/19e4e0b7f1bd

--

___
Python tracker 

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



[issue17214] http.client.HTTPConnection.putrequest encode error

2016-05-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset cb09fdef19f5 by Martin Panter in branch '3.5':
Issue #17214: Percent-encode non-ASCII bytes in redirect targets
https://hg.python.org/cpython/rev/cb09fdef19f5

New changeset 841a9a3f3cf6 by Martin Panter in branch 'default':
Issue #14132, Issue #17214: Merge two redirect handling fixes from 3.5
https://hg.python.org/cpython/rev/841a9a3f3cf6

--
nosy: +python-dev

___
Python tracker 

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



[issue19253] PyArg_ParseTuple: wrong use of seterror() clips helpful type error annotation

2016-05-16 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



[issue26991] Possible reference leak in MAKE_FUNCTION

2016-05-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I don't know what is the best place for this function. You can just break 
compiling functions with annotations, run tests, found tests that use functions 
with annotations, and add new test near one of them.

You can test your test by removing the fix and running the test with the "-R :" 
option.

--

___
Python tracker 

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



[issue26168] Py_BuildValue may leak 'N' arguments on PyTuple_New failure

2016-05-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Currently do_mktuple(), do_mklist() and do_mkdict() save references in a 
collection. I think that there are reasons to do this, and third-party code can 
be broken if just deallocate references. pybuildvalue_leak4.patch just 
implements this strategy more reliably. It guaranties (unless tuple allocation 
fails) that borrowed references in the same container or upper levels are kept 
until all content of the container is proceeded.

The more perfect solution is to allocate one list on error, save all references 
to it and deallocate it at the end of PyBuildValue(). But this leads to more 
complicated code.

--

___
Python tracker 

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



[issue27035] Cannot set exit code in atexit callback

2016-05-16 Thread Miroslav Matějů

New submission from Miroslav Matějů:

I want to set exit code of my script in a function registered in the atexit 
module. (See https://stackoverflow.com/q/37178636/711006.) Calling sys.exit() 
in that function results in the following error:

Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "atexit_test.py", line 3, in myexit
sys.exit(2)
SystemExit: 2

Despite the printed error, the exit code is set to 0. (This might be related 
with #1257.)

This problem seems to affect Python 3.x. I experienced it with Python 3.5.1 on 
Windows 7 x64 and I am able to reproduce it with Python 3.4.3 on Linux (x64). 
Python 2.7.6 on the same Linux machine works as expected: Exits without 
additional messages and the desired exit code is set.

A simple test case:

def myexit():
  import sys
  sys.exit(2)

import atexit
atexit.register(myexit)

--
components: Extension Modules
messages: 265678
nosy: Melebius
priority: normal
severity: normal
status: open
title: Cannot set exit code in atexit callback
type: behavior
versions: Python 3.5

___
Python tracker 

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



[issue25910] Fixing links in documentation

2016-05-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

XML-RPC link was fixed in issue26889 (using the a web archive).

Left links are http://www.zope.com/, http://www.pythonlabs.com/logos.html, and 
links to dead projects. What can we do with Zope and PythonLabs links?

--

___
Python tracker 

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



  1   2   >