[issue27042] Incorrect grammar for function definitions

2016-05-16 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +benjamin.peterson ___ Python tracker ___ ___

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

[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

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

[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

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

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

[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

[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

[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

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

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

[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

[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

[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

[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

[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',

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

[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

[issue10496] Python startup should not require passwd entry

2016-05-16 Thread Melissa Chang
Changes by Melissa Chang : -- nosy: +Melissa Chang ___ Python tracker ___ ___

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

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

[issue27041] asyncio: Add loop.create_future method

2016-05-16 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: fixed -> status: closed -> open ___ Python tracker ___

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

[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

[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

[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

[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

[issue27022] expose sendmmsg() syscall in sockets API

2016-05-16 Thread Марк Коренберг
Марк Коренберг added the comment: This helps improve performance of asyncio datagram stream -- ___ Python tracker ___

[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

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

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

[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

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

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

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

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

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

[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

[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

[issue27041] asyncio: Add loop.create_future method

2016-05-16 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[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

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

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

[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

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

[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

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

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

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

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

[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

[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

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

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

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

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

[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

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

[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

[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

[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

[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

[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

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

[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

[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

[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

[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

[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

[issue27038] Make os.DirEntry exist

2016-05-16 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___

[issue27038] Make os.DirEntry exist

2016-05-16 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +benhoyt ___ Python tracker ___ ___

[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).

[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

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

[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

[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

[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

[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

[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

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

[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

[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

[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

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

[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

[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

[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. +

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

[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

[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

[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

[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

[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

[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

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

[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

[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

[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

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

  1   2   >