[issue24790] Idle: improve stack viewer

2015-08-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 14ac7deba91f by Terry Jan Reedy in branch '2.7': Issue #24790: Restore unused function. https://hg.python.org/cpython/rev/14ac7deba91f New changeset eec5e81b38d1 by Terry Jan Reedy in branch '3.4': Issue #24790: Restore unused function. https://hg.p

[issue3548] subprocess.pipe function

2015-08-26 Thread Matheus Vieira Portela
Matheus Vieira Portela added the comment: Let me check whether I understood you suggestion... What you are saying is that it is already possible to pipeline shell commands through subprocess, such as in the following line? subprocess.call('ls -l | grep Music', shell=True) However, this requir

[issue24782] Merge 'configure extensions' into main IDLE config dialog

2015-08-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 919cee158a89 by Terry Jan Reedy in branch '2.7': Issue #24782: In Idle extension config dialog, replace tabs with sorted list. https://hg.python.org/cpython/rev/919cee158a89 New changeset ce13593e378c by Terry Jan Reedy in branch '3.4': Issue #24782

[issue23630] support multiple hosts in create_server/start_server

2015-08-26 Thread Yury Selivanov
Yury Selivanov added the comment: Left some feedback in the code review. I have a question about the api: so we allow to pass a set of hosts to create_server, but why do we have only a single port? -- ___ Python tracker

[issue24788] HTTPException is derived from Exception instead of IOError

2015-08-26 Thread Pastafarianist
Pastafarianist added the comment: My bad then. How do we proceed with introducing a change to the standard library? -- ___ Python tracker ___ ___

[issue23630] support multiple hosts in create_server/start_server

2015-08-26 Thread Yann Sionneau
Yann Sionneau added the comment: Ah yes, sorry about that. Here is a new patch. However, I worked on these sources: https://github.com/python/asyncio which now I understand was not the correct repository, but I added a tests_require="netifaces" in the setup.py, where can I add this dependency i

[issue23630] support multiple hosts in create_server/start_server

2015-08-26 Thread Yann Sionneau
Changes by Yann Sionneau : Removed file: http://bugs.python.org/file40270/multibind2.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue24942] Remove domain from ipaddress.reverse_pointer property and add method

2015-08-26 Thread Lee Clemens
Changes by Lee Clemens : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue24942] Remove domain from ipaddress.reverse_pointer property and add method

2015-08-26 Thread Lee Clemens
New submission from Lee Clemens: To lookup info from Cymru (https://www.team-cymru.org/IP-ASN-mapping.html#dns) the domain needs to be changed. Although I have not personally seen any, there may also be cases where dropping the domain altogether would be helpful. So I am wondering if the @prop

[issue23630] support multiple hosts in create_server/start_server

2015-08-26 Thread Yury Selivanov
Yury Selivanov added the comment: > Here is a new patch, with modifications according to your review Victor. Could you please generate the patch with 'hg diff', so that code review works with it. -- ___ Python tracker

[issue23630] support multiple hosts in create_server/start_server

2015-08-26 Thread Yann Sionneau
Yann Sionneau added the comment: Here is a new patch, with modifications according to your review Victor. Thanks! -- Added file: http://bugs.python.org/file40270/multibind2.patch ___ Python tracker

[issue24933] socket.recv(size, MSG_TRUNC) returns more than size bytes

2015-08-26 Thread Andrey Wagin
Changes by Andrey Wagin : -- type: -> security ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue24933] socket.recv(size, MSG_TRUNC) returns more than size bytes

2015-08-26 Thread Andrey Wagin
Andrey Wagin added the comment: There is the same behavior for python 3.4 >>> sks[1].send(b"asdfasdfsadfasdfsdfsadfsdfasdfsdfasdfsadfa") 42 >>> sks[0].recv(1, socket.MSG_PEEK | socket.MSG_TRUNC) b'a\x00Nx\x94\x7f\x00\x00sadfasdfsdfsadfsdfasdfsdfasdfsadfa' >>> -- versions: +Python 3.4 __

[issue24938] Measure if _warnings.c is still worth having

2015-08-26 Thread Brett Cannon
Brett Cannon added the comment: Here are the benchmark results of freezing warnings.py as _frozen_warnings (very quick hack which doesn't use _frozen_warnings is attached). Basically -S slows down by about 3% and normal startup has no measurable impact. Not sure if that's worth it to simplify

[issue24939] Remove unicode_format.h from stringlib

2015-08-26 Thread Eric V. Smith
Eric V. Smith added the comment: Actually, int.__format__, etc. are not in this file. So that's good. The things that are in this file but are unrelated to unicodeobject.c are the support routines for implementing string.Formatter. I think I'll move those elsewhere, as a first step. -

[issue22241] strftime/strptime round trip fails even for UTC datetime object

2015-08-26 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: -> belopolsky stage: -> needs patch type: enhancement -> behavior versions: +Python 3.6 -Python 3.5 ___ Python tracker ___ __

[issue22241] strftime/strptime round trip fails even for UTC datetime object

2015-08-26 Thread Guido van Rossum
Guido van Rossum added the comment: OK, I guess we can change stdlib datetime.timezone.utc's str() to 'UTC'. Make sure to update both the C and the Python version, and the tests, and the docs. It's going to have to go into 3.6. -- nosy: +gvanrossum

[issue24941] Add classproperty as builtin class

2015-08-26 Thread Erik Bray
Erik Bray added the comment: A read-only classproperty is fairly trivial to implement in pure Python and has been done. A good reason to have a classproperty implementation in CPython would be to support settable/deleteable classproperties. The problem is that can't be done with the descript

[issue24934] django_v2 benchmark not working in Python 3.6

2015-08-26 Thread Brett Cannon
Brett Cannon added the comment: LGTM on a cursory glance. Hopefully someone will have time to try the patch out and then commit it if everything works out. -- stage: -> commit review ___ Python tracker __

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-08-26 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu : Added file: http://bugs.python.org/file40267/python2.7-pgo-v04.patch ___ Python tracker ___ ___ Python-bugs-l

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-08-26 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu : Added file: http://bugs.python.org/file40268/python3.6-pgo-v04.patch ___ Python tracker ___ ___ Python-bugs-l

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-08-26 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu : Removed file: http://bugs.python.org/file40263/python3.6-pgo-v04.patch ___ Python tracker ___ ___ Python-bugs

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-08-26 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu : Removed file: http://bugs.python.org/file40262/python2.7-pgo-v04.patch ___ Python tracker ___ ___ Python-bugs

[issue17942] IDLE Debugger: Improve GUI

2015-08-26 Thread Mark Roseman
Mark Roseman added the comment: Have attached debugpanel.py, implementing a ttk-based mockup of one possible redesign of the debugger UI, as seen in http://bugs.python.org/file40234/newtabs.png -- Added file: http://bugs.python.org/file40266/debugpanel.py _

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-26 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: I don't think so. I believe that switch is just to enable writing gdb extensions in Python. On August 26, 2015 9:34:29 AM CDT, Cyd Haselton wrote: > >Cyd Haselton added the comment: > >UPDATE: >Still working on the test_hash issue; not making much progress > >Q

[issue4735] An error occurred during the installation of assembly

2015-08-26 Thread Jakub Czaplicki
Jakub Czaplicki added the comment: Such issues are most likely caused by pending windows update that requires machine reboot. This would explain Shereef's comment in msg133158. -- nosy: +Jakub Czaplicki ___ Python tracker

[issue9262] IDLE: Use tabbed shell and edit windows

2015-08-26 Thread Mark Roseman
Mark Roseman added the comment: Have attached newTabExtension.py, which is Roger's tab extension, hacked to use uitabs.py instead of the UI previously built into that extension. -- Added file: http://bugs.python.org/file40265/newTabExtension.py ___ P

[issue9262] IDLE: Use tabbed shell and edit windows

2015-08-26 Thread Mark Roseman
Mark Roseman added the comment: Have attached uitabs.py. From the header comments: Standalone 'tabs' widget to switch between multiple different views. Unlike the Tkinter ttk.Notebook widget, this widget is suitable for displaying a potentially large number of tabs, as might be found in a tabb

[issue24941] Add classproperty as builtin class

2015-08-26 Thread Ryan Hiebert
Changes by Ryan Hiebert : -- nosy: +ryanhiebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue24941] Add classproperty as builtin class

2015-08-26 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: needs patch -> test needed title: classproperty -> Add classproperty as builtin class ___ Python tracker ___ ___

[issue24913] deque.index() overruns deque boundary

2015-08-26 Thread Larry Hastings
Larry Hastings added the comment: https://docs.python.org/devguide/devcycle.html#release-candidate-rc https://mail.python.org/pipermail/python-dev/2015-August/141167.html -- ___ Python tracker

[issue24913] deque.index() overruns deque boundary

2015-08-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Please create a pull request at your earliest convenience. I'm not sure what that entails. Can you just apply ae8ec66adc7f and take it from here? -- ___ Python tracker

[issue24913] deque.index() overruns deque boundary

2015-08-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset ae8ec66adc7f by Raymond Hettinger in branch '3.5': Issue #24913: Fix overrun error in deque.index(). https://hg.python.org/cpython/rev/ae8ec66adc7f -- nosy: +python-dev ___ Python tracker

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-08-26 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu : Added file: http://bugs.python.org/file40263/python3.6-pgo-v04.patch ___ Python tracker ___ ___ Python-bugs-l

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-08-26 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu : Added file: http://bugs.python.org/file40262/python2.7-pgo-v04.patch ___ Python tracker ___ ___ Python-bugs-l

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-08-26 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: I modified the patches with clang support. Also, I added an important check for the architecture on which PGO is running. Our proposal targets x86 platforms, since our measurements are made only on x86 hardware. -- __

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-26 Thread Cyd Haselton
Cyd Haselton added the comment: UPDATE: Still working on the test_hash issue; not making much progress QUESTION Does gdb have to be configured with the --with-python switch in order to debug the python binary correctly? -- ___ Python tracker

[issue24912] The type of cached objects is mutable

2015-08-26 Thread Larry Hastings
Larry Hastings added the comment: This exciting new feature was added in checkin c0d25de5919e addressing issue #22986. Perhaps the core devs who added it would like to chime in. -- nosy: +benjamin.peterson, njs ___ Python tracker

[issue24941] classproperty

2015-08-26 Thread Yury Selivanov
Changes by Yury Selivanov : -- components: +Interpreter Core nosy: +yselivanov stage: -> needs patch type: -> enhancement versions: +Python 3.6 ___ Python tracker ___ _

[issue24913] deque.index() overruns deque boundary

2015-08-26 Thread Larry Hastings
Larry Hastings added the comment: Please create a pull request at your earliest convenience. -- priority: high -> release blocker ___ Python tracker ___ _

[issue24941] classproperty

2015-08-26 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue24294] DeprecationWarnings should be visible by default in the interactive REPL

2015-08-26 Thread R. David Murray
R. David Murray added the comment: Matthias: just print it and let the doctest pass. That's consistent with how unittest works (unless warnings have been turned into errors, in which case it should fail, but I don't think you have to do anything to make that happen). Nick: OK. It is true tha

[issue24940] RotatingFileHandler uses tell in non-binary mode to determine size of the file in bytes

2015-08-26 Thread R. David Murray
Changes by R. David Murray : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue24920] shutil.get_terminal_size throws AttributeError

2015-08-26 Thread R. David Murray
R. David Murray added the comment: I think checking for None would be better. Catching Exception might mask other errors that the user would want to know about. -- nosy: +r.david.murray ___ Python tracker ___

[issue2786] Names in function call exception should have class names, if they're methods

2015-08-26 Thread Nick Coghlan
Nick Coghlan added the comment: Hmm, I'd made the same mistake Martin did - I was looking at the tracebacks moreso than at the exception message itself. Looking at the argument unpacking exception message in the context of the test case above, that also uses __code__.co_name rather than the ru

[issue2786] Names in function call exception should have class names, if they're methods

2015-08-26 Thread Nick Coghlan
Nick Coghlan added the comment: With __qualname__ being mutable, I agree that adding __code__.co_qualname wouldn't be a substitute for that. Instead, similar to the relationship between __name__ and __code__.co_name, they would start out the same, but the function attribute may change later (e

[issue5319] stdout error at interpreter shutdown fails to return OS error status

2015-08-26 Thread Robert Collins
Robert Collins added the comment: Right. So I think one could also propose that the default exception handling should also change to this new number, but it is a different situation - programs don't conflict with that - they allow it to bubble up, but this situation is outside its control. CL

[issue5319] stdout error at interpreter shutdown fails to return OS error status

2015-08-26 Thread Martin Panter
Martin Panter added the comment: I guess I like setting the status to 1 because it matches the status already used by the default exception handling, the value when you raise SystemExit("error message"), and the value used for most internal errors. However I did discover that the exit status i

[issue24294] DeprecationWarnings should be visible by default in the interactive REPL

2015-08-26 Thread Nick Coghlan
Nick Coghlan added the comment: The only way for this change to *break* something is if: 1. They're turning warnings into errors, or are otherwise sensitive to a deprecation warning being emitted 2. They're running code programmatically by way of an interactive REPL path I think we're far more

[issue24913] deque.index() overruns deque boundary

2015-08-26 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file40261/fix_deque_overrun2.diff ___ Python tracker ___ ___ Python-bugs-lis

[issue24912] The type of cached objects is mutable

2015-08-26 Thread Mark Shannon
Mark Shannon added the comment: Eek! indeed :) I intend to track down the cause of this on Monday, and hopefully come up with a fix, unless anyone beats me to it. Does anyone know if there is another issue for this? -- ___ Python tracker

[issue2786] Names in function call exception should have class names, if they're methods

2015-08-26 Thread Martin Panter
Martin Panter added the comment: Note to self: this is about changing the name in an exception message, not in the back-trace of call sites that triggered an exception :) -- title: Names in traceback should have class names, if they're methods -> Names in function call exception should

[issue5319] stdout error at interpreter shutdown fails to return OS error status

2015-08-26 Thread Robert Collins
Robert Collins added the comment: def main(): try: thing() except SomethingChanged: exit(1) except BinaryDiff: exit(2) except: exit(3) This is the sort of pattern e.g. 'diff' has. Should exit(3) there become exit(1) ? exit(1) means 'succeeded and there w

[issue2786] Names in traceback should have class names, if they're methods

2015-08-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Correcting myself: > That information, up to now, belongs on the module. on the function, of course. -- ___ Python tracker ___

[issue24934] django_v2 benchmark not working in Python 3.6

2015-08-26 Thread Florin Papa
Changes by Florin Papa : Added file: http://bugs.python.org/file40260/Django-1.8.zip ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue2786] Names in traceback should have class names, if they're methods

2015-08-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: The reason I didn't put __qualname__ on code objects is that code objects don't have a __module__ either. That information, up to now, belongs on the module. Conceptually, a code object could very well be used by multiple functions living in different modules.

[issue2786] Names in traceback should have class names, if they're methods

2015-08-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue24934] django_v2 benchmark not working in Python 3.6

2015-08-26 Thread Florin Papa
Florin Papa added the comment: I have modified the patch to introduce django_v3 to the benchmark suite and deprecate django_v2 for Python 3.6 and up. In order for django_v3 to work, the latest django release must be present in lib/Django-1.8. Django-1.8 is attached as a zip file because the pa

[issue5319] stdout error at interpreter shutdown fails to return OS error status

2015-08-26 Thread Martin Panter
Martin Panter added the comment: Thanks for the hints Robert. I will definitely add that defs entry. I’m a bit unsure about preserving an existing non-zero exit status. It seems a slightly more complicated and unexpected way of do it to me. But I cannot remember why I was originally interested

[issue24941] classproperty

2015-08-26 Thread Thomas Guettler
New submission from Thomas Guettler: Quoting Guido van Rossum Aug 20 2015. Thread "Properties for classes possible?" https://mail.python.org/pipermail/python-ideas/2015-August/035354.html {{{ think it's reasonable to propose @classproperty as a patch to CPython. It needs to be C code. Not sure