[issue17413] format_exception() breaks on exception tuples from trace function

2013-04-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset d18df4c90515 by R David Murray in branch '3.3': #17413: make sure settrace funcs get passed exception instances for 'value'. http://hg.python.org/cpython/rev/d18df4c90515 New changeset 6297fcddf912 by R David Murray in branch 'default': Merge

[issue17413] format_exception() breaks on exception tuples from trace function

2013-04-19 Thread R. David Murray
R. David Murray added the comment: Benjamin reviewed the patch and pointed out that the settrace state needed to be restored in the test, so I fixed that when I committed it. Thanks Ingrid and Brendan. -- resolution: - fixed stage: commit review - committed/rejected status: open -

[issue17778] Fix test discovery for test_multiprocessing.py

2013-04-19 Thread Zachary Ware
Zachary Ware added the comment: Hmmm, it looks a couple of things have gone wrong. First, I didn't try the patch on 3.3, whose test_multiprocessing is significantly different than default's. This appears to be due largely to dd5e98ddcd39, but there have been other changes to only default

[issue17468] Generator memory leak

2013-04-19 Thread Martin Morrison
Changes by Martin Morrison m...@ensoft.co.uk: -- nosy: +pconnell ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17468 ___ ___ Python-bugs-list

[issue15721] PEP 3121, 384 Refactoring applied to tkinter module

2013-04-19 Thread Andrew Svetlov
Andrew Svetlov added the comment: No, PEP3121 patch is not ready yet but PEP384 has been applied. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15721 ___

[issue17785] Use faster URL shortener for perf.py

2013-04-19 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17785 ___ ___

[issue17780] the test suite should use a TEMPDIR in the build directory, not the source directory

2013-04-19 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17780 ___ ___

[issue17758] test_site fails when the user does not have a home directory

2013-04-19 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17758 ___ ___

[issue17729] advocacy howto improvements

2013-04-19 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17729 ___ ___

[issue17729] advocacy howto improvements

2013-04-19 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe added the comment: I would rather the page be removed, at least from the official docs. I wonder how useful it actually is, and as already pointed, it really feels outdated (and Apache is not kool no more). -- ___ Python

[issue17123] Add OCSP support to ssl module

2013-04-19 Thread Phil Connell
Changes by Phil Connell pconn...@gmail.com: -- nosy: +pconnell ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17123 ___ ___ Python-bugs-list

[issue15992] Strict aliasing violations in Objects/unicodeobject.c

2013-04-19 Thread Phil Connell
Changes by Phil Connell pconn...@gmail.com: -- nosy: +pconnell ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15992 ___ ___ Python-bugs-list

[issue12489] email.errors.HeaderParseError if base64url is used

2013-04-19 Thread Phil Connell
Changes by Phil Connell pconn...@gmail.com: -- nosy: +pconnell ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12489 ___ ___ Python-bugs-list

[issue16394] Reducing tee() memory footprint

2013-04-19 Thread Phil Connell
Changes by Phil Connell pconn...@gmail.com: -- nosy: +pconnell ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16394 ___ ___ Python-bugs-list

[issue17729] advocacy howto improvements

2013-04-19 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17729 ___ ___

[issue17792] Unhelpful UnboundLocalError due to del'ing of exception target

2013-04-19 Thread Eric Snow
Eric Snow added the comment: FWIW this has come up before: http://mail.python.org/pipermail/python-dev/2012-October/122504.html and relatedly: issue16429 -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org

[issue17705] Fill Character cannot be \0

2013-04-19 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17705 ___ ___ Python-bugs-list

[issue17714] str.encode('base64') add trailing new line character. It is not documented.

2013-04-19 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- assignee: - docs@python components: +Documentation nosy: +docs@python stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17714

[issue17718] boolop constant checking for if/while

2013-04-19 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +benjamin.peterson, brett.cannon, georg.brandl, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17718 ___

[issue17718] boolop constant checking for if/while

2013-04-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: Thank you for the patch. However, I don't think such optimizations are particularly useful. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17718 ___

[issue11549] Build-out an AST optimizer, moving some functionality out of the peephole optimizer

2013-04-19 Thread Phil Connell
Changes by Phil Connell pconn...@gmail.com: -- nosy: +pconnell ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11549 ___ ___ Python-bugs-list

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2013-04-19 Thread Phil Connell
Changes by Phil Connell pconn...@gmail.com: -- nosy: +pconnell ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11698 ___ ___ Python-bugs-list

[issue17306] Improve the way abstract base classes are shown in help()

2013-04-19 Thread Phil Connell
Changes by Phil Connell pconn...@gmail.com: -- nosy: +pconnell ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17306 ___ ___ Python-bugs-list

[issue16863] Python 2 error in Argparse tutorial

2013-04-19 Thread Phil Connell
Changes by Phil Connell pconn...@gmail.com: -- nosy: +pconnell ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16863 ___ ___ Python-bugs-list

[issue16394] Reducing tee() memory footprint

2013-04-19 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: docs@python - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16394 ___

[issue17742] Add _PyBytesWriter API

2013-04-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: _PyBytesWriter and _PyUnicodeWriter have differen use cases. While _PyUnicodeWriter used primary in formatter where resulting size is rarely known and reallocation in decoders usually caused by widening result, _PyBytesWriter is used only in decoders where

[issue17618] base85 encoding

2013-04-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file29942/issue17618-5.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17618 ___

[issue17646] traceback.py has a lot of code duplication

2013-04-19 Thread Martin Morrison
Martin Morrison added the comment: How embarrassing - I guess that'll teach me to try to doctor the diff file. :-) I've now regenerated the diff, and re-run all the testing, etc. Apologies for the churn. -- Added file: http://bugs.python.org/file29943/issue17646-3.diff

[issue11549] Build-out an AST optimizer, moving some functionality out of the peephole optimizer

2013-04-19 Thread Martin Morrison
Changes by Martin Morrison m...@ensoft.co.uk: -- nosy: +isoschiz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11549 ___ ___ Python-bugs-list

[issue16741] `int()`, `float()`, etc think python strings are null-terminated

2013-04-19 Thread Martin Morrison
Changes by Martin Morrison m...@ensoft.co.uk: -- nosy: +isoschiz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16741 ___ ___ Python-bugs-list

[issue17732] distutils.cfg Can Break venv

2013-04-19 Thread Éric Araujo
Éric Araujo added the comment: Looks good, thanks! I assume you also tested it manually? I’ll take care of this for the next release. -- nosy: +georg.brandl, larry priority: normal - release blocker ___ Python tracker rep...@bugs.python.org

[issue17735] inspect.findsource raises IndexError

2013-04-19 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- title: inspect.findsource throws IndexError - inspect.findsource raises IndexError ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17735 ___

[issue17745] packaging no longer planned to be included

2013-04-19 Thread Éric Araujo
Éric Araujo added the comment: The role of the PEP was to announce changes; I don’t know if changing it now is useful, as the release is done and its release notes are accurate. -- assignee: docs@python - georg.brandl components: -Distutils, Distutils2, Documentation nosy:

[issue17761] platform._parse_release_file doesn't close the /etc/lsb-release file, doesn't know about 'Ubuntu'

2013-04-19 Thread Éric Araujo
Éric Araujo added the comment: +1 to with. The patch also includes an unrelated change. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17761 ___

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

2013-04-19 Thread Éric Araujo
Éric Araujo added the comment: os-release finally provides a cross-OS release file with a specification. I think it should be authoritative, then the lsb-release system (it’s officially a script but many OSes just parse a static file), then OS-specific files. -- assignee: - lemburg

[issue12535] Chained tracebacks are confusing because the first traceback is minimal

2013-04-19 Thread Martin Morrison
Changes by Martin Morrison m...@ensoft.co.uk: -- nosy: +isoschiz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12535 ___ ___ Python-bugs-list

[issue14805] Support display of both __cause__ and __context__

2013-04-19 Thread Martin Morrison
Changes by Martin Morrison m...@ensoft.co.uk: -- nosy: +isoschiz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14805 ___ ___ Python-bugs-list

[issue12535] Chained tracebacks are confusing because the first traceback is minimal

2013-04-19 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- type: behavior - enhancement versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12535 ___

[issue17642] IDLE add font resizing hot keys

2013-04-19 Thread Todd Rovito
Changes by Todd Rovito rovit...@gmail.com: -- nosy: +Todd.Rovito ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17642 ___ ___ Python-bugs-list

[issue17646] traceback.py has a lot of code duplication

2013-04-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: Also, this patch seems to break test_zipimport. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17646 ___

[issue17646] traceback.py has a lot of code duplication

2013-04-19 Thread Martin Morrison
Martin Morrison added the comment: print_tb() wasn't passing the file argument through to print_list() - now fixed. I also verified none of the other functions had a similar bug. -- Added file: http://bugs.python.org/file29944/issue17646-4.diff ___

[issue17745] packaging no longer planned to be included

2013-04-19 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe added the comment: There should at least be a mention that 'packaging' is no longer planned to be included, to avoid any confusion/misinformation. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17745

[issue15392] Create a unittest framework for IDLE

2013-04-19 Thread Tomoki Imai
Tomoki Imai added the comment: I'm a student thinking of participating in Google Summer of Code. And want to work to create a unittest for IDLE. Using unittest.mock seemed to be good way to test GUI. But there is a problem. There is no unittest.mock in Python2.

[issue5492] Error on leaving IDLE with quit() or exit() under Linux

2013-04-19 Thread Roger Serwy
Roger Serwy added the comment: Good catch Terry! I've been testing using python -m idlelib.idle instead of importing it from an interactive prompt. I'll need to remember to consider that test vector in the future. I figured out why those messages are popping up. The Tk event loop remains

[issue9607] Test file 'test_keyword.py' submission for use with keyword.py

2013-04-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0ad18bb85371 by R David Murray in branch 'default': #9607: Add tests for the keyword module. http://hg.python.org/cpython/rev/0ad18bb85371 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org

[issue9607] Test file 'test_keyword.py' submission for use with keyword.py

2013-04-19 Thread R. David Murray
R. David Murray added the comment: Wow, it sure took me a long time to get back to this. Greg, the test ideas in your patch were great, and I used them all, but I wound up rewriting the actual code to better match the style of our other unit tests, and also to take advantage of some of our

[issue13495] IDLE: Regressions - Two ColorDelegator instances loaded

2013-04-19 Thread Roger Serwy
Roger Serwy added the comment: I will split the good_load flag bug into its own issue. While addressing a bug in #5492, another doubled-up ColorDelegator problem appeared, tracing back to #1586. The dual_delagators patch removes the code which loads the extra color delegators as well as

[issue9607] Test file 'test_keyword.py' submission for use with keyword.py

2013-04-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset d499189e7758 by R David Murray in branch 'default': #9607: restore keywords.kwlist after testing it. http://hg.python.org/cpython/rev/d499189e7758 -- ___ Python tracker rep...@bugs.python.org

[issue17798] IDLE: can not edit new file names when using -e

2013-04-19 Thread Roger Serwy
New submission from Roger Serwy: This is a split from #13495 as it is truly a separate issue. Here's a partial quote from msg151278: IDLE 3 no longer allows for editing of new files from the command line. For example: idle -e /tmp/newfile.py will momentarily flash an editor window

[issue13262] IDLE opens partially hidden

2013-04-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: For me, this is currently about the most annoying behavior of IDLE. -- nosy: +roger.serwy versions: +Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13262

[issue13262] IDLE opens partially hidden

2013-04-19 Thread Roger Serwy
Roger Serwy added the comment: Why not change the initial window size from 80x40 to 80x38? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13262 ___

[issue17646] traceback.py has a lot of code duplication

2013-04-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: It would be great to have a test for that. :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17646 ___ ___

[issue17468] Generator memory leak

2013-04-19 Thread Guido van Rossum
Guido van Rossum added the comment: Unless I'm the only person on earth who can understand this I beg to be left out of this bug. I just don't have the bandwidth right now to look into it. If it's really about GC and __del__ and generators, maybe Tim Peters would be willing to look into it?

[issue7951] Should str.format allow negative indexes when used for __getitem__ access?

2013-04-19 Thread Todd Rovito
Todd Rovito added the comment: Here is a simple patch that simply explains negative indexes and negative slices are not supported for the string format documentation. Perhaps more documentation needs to be created else where to help explain why all collections do not need to support negative

[issue13262] IDLE opens partially hidden

2013-04-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: That does not work because Idle just moves the window down to compensate. (It seems to take two openings to have that happen.) Even if that worked, I would still ask why I should have to make the window smaller, when I want it larger (44 lines), located

[issue17468] Generator memory leak

2013-04-19 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- nosy: -gvanrossum ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17468 ___ ___

[issue17799] settrace docs are wrong about c_call events

2013-04-19 Thread Ned Batchelder
New submission from Ned Batchelder: Looking into this Stack Overflow question: http://stackoverflow.com/questions/16115027/pythons-sys-settrace-wont-create-c-call-events Reading the code in c_eval.c and friends, it looks like c_call events are never passed to the trace function, only to the

<    1   2