[issue21911] "IndexError: tuple index out of range" should include the requested index and tuple length

2014-07-08 Thread Ram Rachum
Ram Rachum added the comment: Thanks for the information about timing, Stefan and Josh. That is good to know regardless of this ticket :) -- ___ Python tracker ___ _

[issue6931] dreadful performance in difflib: ndiff and HtmlDiff

2014-07-08 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue21942] pydoc source not displayed in browser on Windows

2014-07-08 Thread Eric Galloway
New submission from Eric Galloway: In Python 3 on Windows, pydoc fails to display source file listings in the browser. To reproduce in Python 3.4: 1. start pydoc: python -m pydoc -p 2. Navigate to the url: http://127.0.0.1:/getfile?key=///C:/python34/lib/pydoc.py

[issue21941] Clean up turtle TPen class

2014-07-08 Thread ingrid
New submission from ingrid: There are a lot of methods in the TPen class that are defined but not used because all the child classes overwrite almost all the functions and TPen itself isn't used directly a whole lot. This patch removes the unused code so it's less confusing to read turtle.py.

[issue21911] "IndexError: tuple index out of range" should include the requested index and tuple length

2014-07-08 Thread Josh Rosenberg
Josh Rosenberg added the comment: Looking at a single lookup performed over and over isn't going to get you a very good benchmark. If your keys are constantly reused, most of the losses won't show themselves. A more fair comparison I've used before is the difference between using the bytes obj

[issue20513] Python 2.7. Script interruption on logoff from 0 session under Win2003 and earlier

2014-07-08 Thread Steve Dower
Steve Dower added the comment: Looks like a legitimate issue to me, and the patch is fine. It's probably something that ought to be fixed in default too, since I don't see how it is restricted to session 0 - any Python service will incorrectly treat these notifications as interruptions. Sent

[issue21925] ResouceWarning sometimes doesn't display

2014-07-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, it's unclear to me why we would want to remove the __main__ module first, rather than last. -- nosy: +pitrou ___ Python tracker ___ _

[issue21323] CGI HTTP server not running scripts from subdirectories

2014-07-08 Thread Zach Byrne
Zach Byrne added the comment: Hi, I'm new. I wrote a test for nested directories under cgi-bin and got that to pass without failing the test added for 19435 by undoing most of the changes to run_cgi() but building path from the values in self.cgi_info. Thoughts? -- keywords: +patch nos

[issue6931] dreadful performance in difflib: ndiff and HtmlDiff

2014-07-08 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list

[issue6931] dreadful performance in difflib: ndiff and HtmlDiff

2014-07-08 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list maili

[issue6916] Remove deprecated items from asynchat

2014-07-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 486c1a81ee32 by Berker Peksag in branch 'default': Issue #6916: Use assertWarns in test_asynchat. http://hg.python.org/cpython/rev/486c1a81ee32 -- ___ Python tracker __

[issue6916] Remove deprecated items from asynchat

2014-07-08 Thread Berker Peksag
Changes by Berker Peksag : -- stage: needs patch -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue21907] Update Windows build batch scripts

2014-07-08 Thread David Bolen
David Bolen added the comment: I'm seeing an apparent side-effect of the new clean script (or it seems to correlate). Since it started running, the Windows buildbots (both 7 and XP) seem to always perform a full clone of the master repository for each build rather than just a pull/update. Th

[issue1610654] cgi.py multipart/form-data

2014-07-08 Thread Chui Tey
Chui Tey added the comment: Hi, I'm still available. There's a test case in the patch, would you like me to separate that to another file? Would that help with assessing it? Best, On 8 July 2014 22:05, Hynek Schlawack wrote: > > Hynek Schlawack added the comment: > > I would have long ago if

[issue12815] Coverage of smtpd.py

2014-07-08 Thread Milan Oberkirch
Changes by Milan Oberkirch : -- nosy: +zvyn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue6931] dreadful performance in difflib: ndiff and HtmlDiff

2014-07-08 Thread Christopher Cabanne
Christopher Cabanne added the comment: Sorry about the typo; here is the corrected timeit command: python -m timeit -n 10 "import difflib; difflib.HtmlDiff().make_table(open('left500.txt').readlines(), open('right500.txt').readlines())" -- ___ Py

[issue6931] dreadful performance in difflib: ndiff and HtmlDiff

2014-07-08 Thread Christopher Cabanne
Christopher Cabanne added the comment: Here is a timeit command to test with the attached test files: python -m timeit -n 10 "import difflib; difflib.HtmlDiff().make_table(open('left500.txt').readlines(), open('righ500.txt').readlines())" -- ___ P

[issue6931] dreadful performance in difflib: ndiff and HtmlDiff

2014-07-08 Thread Christopher Cabanne
Christopher Cabanne added the comment: I ran into the slowness of difflib.HtmlDiff.make_table yesterday, and see this issue is three years stale now; is there any update or chance that the fix will be applied? -- nosy: +Christopher.Cabanne ___ Pytho

[issue21938] Py_XDECREF statement in gen_iternext()

2014-07-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Good point, thanks :) -- nosy: +pitrou resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue21938] Py_XDECREF statement in gen_iternext()

2014-07-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5cfa919609a0 by Antoine Pitrou in branch 'default': Issue #21938: simplify gen_iternext() http://hg.python.org/cpython/rev/5cfa919609a0 -- nosy: +python-dev ___ Python tracker

[issue21437] document that asyncio.ProactorEventLoop doesn't support SSL

2014-07-08 Thread STINNER Victor
STINNER Victor added the comment: Done in these commits: New changeset 3f1381e3a68f by Victor Stinner in branch '3.4': Issue #21680: Document asyncio event loops http://hg.python.org/cpython/rev/3f1381e3a68f New changeset 2c9d5f32f6c5 by Victor Stinner in branch 'default': (Merge 3.4) Issue #21

[issue21680] asyncio: document event loops

2014-07-08 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue21680] asyncio: document event loops

2014-07-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3f1381e3a68f by Victor Stinner in branch '3.4': Issue #21680: Document asyncio event loops http://hg.python.org/cpython/rev/3f1381e3a68f New changeset 2c9d5f32f6c5 by Victor Stinner in branch 'default': (Merge 3.4) Issue #21680: Document asyncio eve

[issue21518] Expose RegUnloadKey in winreg

2014-07-08 Thread Claudiu Popa
Claudiu Popa added the comment: Here's the patch with only the change for winreg.UnloadKey. I'll have the patch with windows_helper soon. -- Added file: http://bugs.python.org/file35907/winreg_unload_key.patch ___ Python tracker

[issue20513] Python 2.7. Script interruption on logoff from 0 session under Win2003 and earlier

2014-07-08 Thread Zachary Ware
Zachary Ware added the comment: Windows Server 2003, XP, and 2000 are all officially supported by Python 2.7, as they were all current (for certain values of "current") at the time Python 2.7 was released. That said, it's not completely clear to me what the bug is but it strikes me as being s

[issue15011] Change Scripts to bin on Windows

2014-07-08 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: +steve.dower, zach.ware versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-l

[issue21918] Convert test_tools to directory

2014-07-08 Thread Berker Peksag
Changes by Berker Peksag : -- assignee: -> zach.ware stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list m

[issue20513] Python 2.7. Script interruption on logoff from 0 session under Win2003 and earlier

2014-07-08 Thread Mark Lawrence
Mark Lawrence added the comment: Looking at PEP 11 and this http://support.microsoft.com/lifecycle/?c2=1163 it seems to depend on which service pack you've got as to whether or not Win2003 is supported by 2.7. Can one of our Windows gurus take a look please, it's as clear as mud to me. -

[issue21918] Convert test_tools to directory

2014-07-08 Thread Zachary Ware
Zachary Ware added the comment: Here's the same patch in --git format, which should make the actual changes clearer (though probably not in Rietveld). -- Added file: http://bugs.python.org/file35906/test_tools.diff--git ___ Python tracker

[issue21918] Convert test_tools to directory

2014-07-08 Thread Zachary Ware
Zachary Ware added the comment: How about this? -- keywords: +patch Added file: http://bugs.python.org/file35905/test_tools.diff ___ Python tracker ___ __

[issue18540] imaplib.IMAP4() ends with "Name or service not known" on Fedora 18

2014-07-08 Thread Milan Oberkirch
Milan Oberkirch added the comment: I'm still wondering if the test could be done better. At least it fixes the bug. -- Added file: http://bugs.python.org/file35904/imaplib_interpret_empty_string_as_NoneV2.patch ___ Python tracker

[issue18540] imaplib.IMAP4() ends with "Name or service not known" on Fedora 18

2014-07-08 Thread Milan Oberkirch
Milan Oberkirch added the comment: Ignore what I just did (the test is obviously dump; it fails if you run it on an IMAP server). I'll make a new attempt after a coffee break ;) -- ___ Python tracker _

[issue18540] imaplib.IMAP4() ends with "Name or service not known" on Fedora 18

2014-07-08 Thread Milan Oberkirch
Milan Oberkirch added the comment: I patched it as you suggested (9 lines added/changed in total). -- Added file: http://bugs.python.org/file35903/imaplib_interpret_empty_string_as_None.patch ___ Python tracker __

[issue21907] Update Windows build batch scripts

2014-07-08 Thread David Bolen
David Bolen added the comment: Ok, the last spurt of exceptions on the XP buildbot in the 3.x branch were all related to the fact that somehow the .hg folder in the 3.x branch build tree was missing. The rest of the build files seemed present. I've removed the build tree completely to let a

[issue21907] Update Windows build batch scripts

2014-07-08 Thread David Bolen
David Bolen added the comment: Interesting - it's got a "Visual Studio Just-In-Time Debugger" dialog on the screen for an unhandled win32 exception in the compiler (cl.exe). That's a dialog my pop-up AutoIt script wasn't expecting, so I've added it to the other (RTL error) checks, and it'll cl

[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2014-07-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This bug was fixed in 2.7.7. -- resolution: -> duplicate status: open -> closed superseder: -> Regression: Windows-tkinter-idle, unicode, and 0xxx filename ___ Python tracker __

[issue20104] expose posix_spawn(p)

2014-07-08 Thread Danek Duvall
Danek Duvall added the comment: Cool. We implemented our own version as a straight-up native module (https://java.net/projects/ips/sources/pkg-gate/content/src/modules/pspawn.c), and our Popen replacement is not at present a complete replacement for the one in the stdlib, but it does what we

[issue20104] expose posix_spawn(p)

2014-07-08 Thread Alex Gaynor
Alex Gaynor added the comment: Danek, you might find https://github.com/dreid/posix_spawn/ useful, it provides bindings and a public API over posix_spawn (it's not complete yet, but if there's stuff missing, feel free to file a ticket!) -- ___ Pytho

[issue20104] expose posix_spawn(p)

2014-07-08 Thread Danek Duvall
Danek Duvall added the comment: Our project (the Solaris packaging system, IPS), relies on posix_spawn() primarily for the ability to fork without making a large memory reservation (and possibly failing) because the forking process was itself very large. That's the (a?) bug benefit of posix_s

[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2014-07-08 Thread Som Veettil
Som Veettil added the comment: @Serhiy Storchaka - its Python 2.7.6 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue20981] ssl doesn't build anymore with OpenSSL 0.9.7 or older: X509_check_ca

2014-07-08 Thread Stefan Krah
Stefan Krah added the comment: FreeBSD 6.4 is EOL though, for quite some time already: http://lists.freebsd.org/pipermail/freebsd-announce/2010-September/001344.html Maybe we should ask the buildbot owner to upgrade to something newer. -- nosy: +skrah

[issue20981] ssl doesn't build anymore with OpenSSL 0.9.7 or older: X509_check_ca

2014-07-08 Thread koobs
Changes by koobs : -- nosy: +koobs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mail

[issue21704] _multiprocessing module builds incorrectly when POSIX semaphores are disabled

2014-07-08 Thread koobs
Changes by koobs : -- nosy: +koobs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mail

[issue21844] Fix HTMLParser in unicodeless build

2014-07-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- dependencies: +Fix unicodeless build of Python ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue21844] Fix HTMLParser in unicodeless build

2014-07-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- dependencies: -Fix unicodeless build of Python stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue14953] Reimplement subset of multiprocessing.sharedctypes using memoryview

2014-07-08 Thread Richard Oudkerk
Richard Oudkerk added the comment: Updated version of the patch. Still needs docs. -- Added file: http://bugs.python.org/file35902/memoryview-array-value.patch ___ Python tracker __

[issue21907] Update Windows build batch scripts

2014-07-08 Thread Zachary Ware
Zachary Ware added the comment: The XP buildbot seems to have choked on this change, I suspect because of the 'clean' script exiting with a non-zero error code. I'm not certain why it can't recover, though. David, can you tell what's going on with it? -- nosy: +db3l

[issue15759] "make suspicious" doesn't display instructions in case of failure

2014-07-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, I forgot about this patch. Here is more correct patch. It now works with non-default make command and "make suspicious" now returns success return code if no suspicious markups were found. Made similar fix for the linkcheck and doctest target. -

[issue21907] Update Windows build batch scripts

2014-07-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 06589e81fd56 by Zachary Ware in branch 'default': Issue #21907: Make the buildbot clean script always return 0. http://hg.python.org/cpython/rev/06589e81fd56 -- ___ Python tracker

[issue21940] IDLE - Test WidgetRedirector

2014-07-08 Thread Saimadhav Heblikar
New submission from Saimadhav Heblikar: Attached is unittest for idlelib.WidgetRedirector 2.7 version will be uploaded once this is OK. -- components: Extension Modules files: test-widgetredir-34.diff keywords: patch messages: 222563 nosy: jesstess, sahutd, taleinat, terry.reedy priority

[issue21270] unittest.mock.call object has inherited count method

2014-07-08 Thread Michael Foord
Michael Foord added the comment: Those are the only ones I think. Thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue21939] IDLE - Test Percolator

2014-07-08 Thread Saimadhav Heblikar
New submission from Saimadhav Heblikar: Attached is a unittest for idlelib.Percolator. 2.7 version will be added once this is OK. -- components: IDLE files: test_percolator-34.diff keywords: patch messages: 222561 nosy: jesstess, sahutd, taleinat, terry.reedy priority: normal severity: n

[issue15759] "make suspicious" doesn't display instructions in case of failure

2014-07-08 Thread Ezio Melotti
Ezio Melotti added the comment: Serhiy, your patch LGTM. Can you apply a similar fix for the linkcheck and doctest target and commit it? FWIW the patch produces a slightly different output (in addition to showing the missing message), but I don't think it's a problem: Without patch: ... bui

[issue21927] BOM appears in stdin when using Powershell

2014-07-08 Thread Ezio Melotti
Ezio Melotti added the comment: I would argue that adding the BOM is a Powershell issue, and I'm not sure Python should do anything about it. There are probably cases where people expects the BOM to be received by python, so stripping it is probably not an option. As for detecting, it should ha

[issue21772] platform.uname() not EINTR safe

2014-07-08 Thread Stefano Borini
Stefano Borini added the comment: Wouldn't it make sense to use the same strategy used in the subprocess fix (that is, retry?). See http://hg.python.org/cpython/rev/6e664bcc958d/ -- ___ Python tracker

[issue19608] devguide needs pictures

2014-07-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- resolution: -> works for me stage: -> resolved status: open -> closed type: -> enhancement ___ Python tracker ___

[issue1610654] cgi.py multipart/form-data

2014-07-08 Thread Hynek Schlawack
Hynek Schlawack added the comment: I would have long ago if I had any domain knowlege on this topic, but alas…. -- ___ Python tracker ___ __

[issue21937] IDLE interactive window doesn't display unsaved-indicator

2014-07-08 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar : -- nosy: +sahutd ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue21938] Py_XDECREF statement in gen_iternext()

2014-07-08 Thread Xavier de Gaye
New submission from Xavier de Gaye: The Py_XDECREF statement in gen_iternext() at Objects/genobject.c is not needed since val is NULL (may be optimized out by the compiler). Actually, the whole function could be written as: return gen_send_ex(gen, NULL, 0); -- components: Interpret

[issue17288] cannot jump from a return after setting f_lineno

2014-07-08 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue17288] cannot jump from a return after setting f_lineno

2014-07-08 Thread Xavier de Gaye
Xavier de Gaye added the comment: Python 3.5 is still crashing with this test: $ python jump.py > jump.py(7)() -> for i in gen(): (Pdb) break 3 Breakpoint 1 at jump.py:3 (Pdb) continue > jump.py(3)gen() -> yield i (Pdb) step --Return-- > jump.py(3)gen()->0 -> yield i (Pdb) jump 2 > jump.py(2)gen

[issue21365] asyncio.Task reference misses the most important fact about it, related info spread around intros and example commentary instead

2014-07-08 Thread STINNER Victor
STINNER Victor added the comment: Hi, I pushed my change to add a new BaseEventLoop.create_task() method. For that, I also updated the documentation: http://hg.python.org/cpython/rev/66f06fbf8a2f I rewrote the documentation of the Task method, and more generally all places describing how to c

[issue17153] tarfile extract fails when Unicode in pathname

2014-07-08 Thread Lars Gustäbel
Lars Gustäbel added the comment: IIRC, tarfile under 2.7 has never been explicitly unicode-safe, support for unicode objects is heterogeneous at best. The obvious work-around is to work exclusively with str objects. What we can't do is to decode the utf-8 pathname from the archive to a unicode

Re: [issue21772] platform.uname() not EINTR safe

2014-07-08 Thread M.-A. Lemburg
On 08.07.2014 11:40, Stefano Borini wrote: > > You can't use subprocess. platform is used during build. subprocess needs > select, but select is a compiled module and at that specific time in the > build process is not compiled yet. Good point :-) -- Marc-Andre Lemburg eGenix.com ___

[issue21772] platform.uname() not EINTR safe

2014-07-08 Thread Stefano Borini
Stefano Borini added the comment: You can't use subprocess. platform is used during build. subprocess needs select, but select is a compiled module and at that specific time in the build process is not compiled yet. -- nosy: +stefanoborini ___ Pytho

[issue21922] PyLong: use GMP

2014-07-08 Thread Mark Dickinson
Mark Dickinson added the comment: Previous python-dev discussions: https://mail.python.org/pipermail/python-dev/2008-November/083315.html https://mail.python.org/pipermail/python-3000/2007-September/010718.html [Regarding the ancient mpz module, which used to be part of Python] https://mail.py

[issue15133] tkinter.BooleanVar.get() behavior and docstring disagree

2014-07-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch. 1) getboolean() and BooleanVar.get() now always return bool. Wrapping the result of getboolean() into bool() is not more needed. 2) getboolean() and BooleanVar.get() now works with Tcl_Obj. This makes Tkinter more robust against future Tcl/

[issue21922] PyLong: use GMP

2014-07-08 Thread Mark Dickinson
Mark Dickinson added the comment: Hmm. Looking back at my previous comments, I should explain my negativity a bit better. 1. Like Victor's issue 1814 work, this is great stuff, and very impressive. 2. I'm really not convinced that it belongs in the Python core. To expand on 2: we already hav