[issue24813] Idle Help dialogs shouldn't be modal

2015-09-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Or we can broaden this in the other direction, to redesign AboutDialog. -- ___ Python tracker ___ __

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-06 Thread Larry Hastings
Larry Hastings added the comment: Is it appropriate to make this change as a "bug fix", in already-released versions of Python? Would you be happy or sad if you updated your Python from 3.x.y to 3.x.y+1 and the rounding method used when converting floats to datetime stamps changed? -

[issue24748] Change of behavior for importlib between 3.4 and 3.5 with DLL loading

2015-09-06 Thread Nick Coghlan
Nick Coghlan added the comment: Just noting explicitly that this has been forward merged to the default branch by Steve Dower after Larry merged in the latest 3.5.0 rc changes. -- ___ Python tracker __

[issue25016] defaultdict's pop gives a KeyError

2015-09-06 Thread Martin Panter
Martin Panter added the comment: I think this is by design. Under it says “__missing__() is _not_ called for any operations besides __getitem__().” What gave you the impression that pop() should return a d

[issue25016] defaultdict's pop gives a KeyError

2015-09-06 Thread Chase Albert
New submission from Chase Albert: `defaultdict(list).pop(1)` raises a KeyError, this is not what I expected (I expected an empty list). -- components: Library (Lib) messages: 250080 nosy: rob.anyone priority: normal severity: normal status: open title: defaultdict's pop gives a KeyError

[issue25015] Idle: scroll Text faster with mouse wheel

2015-09-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Or with following Python script. -- Added file: http://bugs.python.org/file40386/MouseWheelTrace.py ___ Python tracker ___ ___

[issue25015] Idle: scroll Text faster with mouse wheel

2015-09-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You can measure your mouse speed with following pure Tcl/Tk script. -- Added file: http://bugs.python.org/file40385/MouseWheelTrace.tcl ___ Python tracker ___

[issue24889] Idle: always start with focus

2015-09-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks for the research and verification that this is harmless. It has been a daily annoyance. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue24889] Idle: always start with focus

2015-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 741b033c5290 by Terry Jan Reedy in branch '2.7': Issue #24889: When starting Idle, force focus onto Idle window if not already https://hg.python.org/cpython/rev/741b033c5290 New changeset d7449bac2c6d by Terry Jan Reedy in branch '3.4': Issue #24889

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-06 Thread STINNER Victor
STINNER Victor added the comment: I understand that I have to implement a new rounding mode. The code will be new, I'm not condifent enough to push it immedialty into python 3.5. IMHO a buggy rounding mode is worse than keeping the current rounding mode. The rounding mode changed in python 3.3. T

[issue8232] webbrowser.open incomplete on Windows

2015-09-06 Thread Steve Dower
Steve Dower added the comment: Here's an alternate patch I proposed on #25005 before we decided to back out the change. The problem is that subprocess.call() with shell=True is unsafe because we don't escape shell operators (such as &, <, >, |). The fix in this patch is to allow passing argum

[issue25015] Idle: scroll Text faster with mouse wheel

2015-09-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: The SO OP reported Idle Shell and Editor behavior. I retested minimal tk.Text(root).pack(), eliminating Idle as a factor, before and after changing system lines setting from 3 to 9, and got the constant same behavior. The now too small 50 pixels seems about

[issue25005] webbrowser breaks on query strings with multiple fields on Windows

2015-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset aa60b34d5200 by Steve Dower in branch '3.5': Issue #25005: Backout fix for #8232 because of use of unsafe subprocess.call(shell=True) https://hg.python.org/cpython/rev/aa60b34d5200 New changeset 7d320c3bf9c6 by Larry Hastings in branch '3.5': Merge

[issue24917] time_strftime() Buffer Over-read

2015-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset c31dad22c80d by Steve Dower in branch '3.5': Issue #24917: time_strftime() buffer over-read. https://hg.python.org/cpython/rev/c31dad22c80d New changeset f185917498ca by Steve Dower in branch '3.4': Issue #24917: time_strftime() buffer over-read. ht

[issue8232] webbrowser.open incomplete on Windows

2015-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset aa60b34d5200 by Steve Dower in branch '3.5': Issue #25005: Backout fix for #8232 because of use of unsafe subprocess.call(shell=True) https://hg.python.org/cpython/rev/aa60b34d5200 New changeset 7d320c3bf9c6 by Larry Hastings in branch '3.5': Merge

[issue24748] Change of behavior for importlib between 3.4 and 3.5 with DLL loading

2015-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 087464c9f982 by Nick Coghlan in branch '3.5': Close #24748: Restore imp.load_dynamic compatibility https://hg.python.org/cpython/rev/087464c9f982 -- nosy: +python-dev ___ Python tracker

[issue24305] The new import system makes it inconvenient to correctly issue a deprecation warning for a module

2015-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 94966dfd3bd3 by Larry Hastings in branch '3.5': Issue #24305: Prevent import subsystem stack frames from being counted https://hg.python.org/cpython/rev/94966dfd3bd3 -- nosy: +python-dev ___ Python tracke

[issue8232] webbrowser.open incomplete on Windows

2015-09-06 Thread Larry Hastings
Larry Hastings added the comment: This was backed out of 3.5, as we discovered it introduced a security hole just before 3.5.0 shipped. (See issue 25005 for more.) Since it's been backed out, I've reopened the issue. However I've moved it forward to 3.6, as it's no longer viable to accept fo

[issue8232] webbrowser.open incomplete on Windows

2015-09-06 Thread Larry Hastings
Changes by Larry Hastings : -- nosy: -larry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue25005] webbrowser breaks on query strings with multiple fields on Windows

2015-09-06 Thread Larry Hastings
Changes by Larry Hastings : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-06 Thread Larry Hastings
Larry Hastings added the comment: Okay, this is literally the only thing rc3 is waiting on now. -- ___ Python tracker ___ ___ Python-b

[issue24917] time_strftime() Buffer Over-read

2015-09-06 Thread Larry Hastings
Changes by Larry Hastings : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___ __

[issue25013] run_pdb() in test_pdb.py always returns stderr as None

2015-09-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Xavier, thanks for the idea. It seems sensible and I considered applying this, but since this is an internal pdb test design change rather than a pdb bug fix, and two other tests seem candidates for the same change, I am going to leave it to Gerog or someone

[issue24917] time_strftime() Buffer Over-read

2015-09-06 Thread Larry Hastings
Larry Hastings added the comment: (I meant, just normal pull request. I did your two pull requests right in a row and got my wires crossed.) -- ___ Python tracker ___ _

[issue25005] webbrowser breaks on query strings with multiple fields on Windows

2015-09-06 Thread Larry Hastings
Larry Hastings added the comment: Backout pull request merged, please forward-merge, thanks! -- ___ Python tracker ___ ___ Python-bugs

[issue24917] time_strftime() Buffer Over-read

2015-09-06 Thread Larry Hastings
Larry Hastings added the comment: Backout pull request merged, please forward-merge, thanks! -- ___ Python tracker ___ ___ Python-bugs

[issue25005] webbrowser breaks on query strings with multiple fields on Windows

2015-09-06 Thread Steve Dower
Steve Dower added the comment: PR is: https://bitbucket.org/larry/cpython350/pull-requests/20/issue-25005-backout-fix-for-8232-because/diff -- ___ Python tracker ___ ___

[issue25005] webbrowser breaks on query strings with multiple fields on Windows

2015-09-06 Thread Steve Dower
Steve Dower added the comment: I guess now I've been that definitive I'll go make you a PR :) If someone (perhaps Brandon?) is willing to thoroughly validate patch 1 we might be able to consider it for 3.5.1 (the only API change is to startfile() - the webbrowser API is already there, it just

[issue25005] webbrowser breaks on query strings with multiple fields on Windows

2015-09-06 Thread Steve Dower
Steve Dower added the comment: Rollback. I'm not 100% confident in patch 1 (too many things I can't predict) and with only a week it probably won't get enough testing to flush out other surprises. -- ___ Python tracker

[issue25005] webbrowser breaks on query strings with multiple fields on Windows

2015-09-06 Thread Larry Hastings
Larry Hastings added the comment: Well, so, what do you recommend I do here? -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue25005] webbrowser breaks on query strings with multiple fields on Windows

2015-09-06 Thread Steve Dower
Steve Dower added the comment: Correct. os.startfile uses ShellExecute (https://msdn.microsoft.com/en-us/library/windows/desktop/bb762153.aspx), which is the same API that the shell uses for the 'start' command. So by using os.startfile we get the same behaviour, but we're calling in after th

[issue25004] test_mmap should catch f.close() failure in LargeMmapTests._make_test_file()

2015-09-06 Thread Martin Panter
Martin Panter added the comment: Okay I was able to force the error by using all my disk space up, and confirmed the change works. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue25005] webbrowser breaks on query strings with multiple fields on Windows

2015-09-06 Thread Larry Hastings
Larry Hastings added the comment: So, whatever the security hole is that subprocess.call(shell=True) leaves open, os.startfile() doesn't have? os.startfile() doesn't use a shell? (How does it find the full path to the executable?) -- ___ Python tr

[issue25005] webbrowser breaks on query strings with multiple fields on Windows

2015-09-06 Thread Steve Dower
Steve Dower added the comment: Oh, and the "start" is necessary because, while the Windows kernel can only resolve "chrome.exe" if it appears on PATH, the Windows shell has some other ways to resolve it. By using ShellExecute (via 'start' or startfile), we can let the OS find it rather than h

[issue25005] webbrowser breaks on query strings with multiple fields on Windows

2015-09-06 Thread Steve Dower
Steve Dower added the comment: To be more specific, with patch 1 applied: subprocess.call("start file a&b>x", shell=True) is equivalent to typing the following at a command prompt: start file a & b > x That is, "start file a" and then do "b", redirecting the output from "b" to a file named "

[issue23406] interning and list comprehension leads to unexpected behavior

2015-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2640a4630e9e by Martin Panter in branch '3.5': Issue #23406: Remove specific line number from susp-ignored.csv https://hg.python.org/cpython/rev/2640a4630e9e New changeset 48f1e9a47301 by Martin Panter in branch 'default': Issue #23406: Merge 3.5

[issue25004] test_mmap should catch f.close() failure in LargeMmapTests._make_test_file()

2015-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7a9dddc11f2e by Martin Panter in branch '3.4': Issue #25004: Handle out-of-disk-space error in LargeMmapTests https://hg.python.org/cpython/rev/7a9dddc11f2e New changeset fd4bf05b32ba by Martin Panter in branch '3.5': Issue #25004: Merge 3.4 into

[issue25005] webbrowser breaks on query strings with multiple fields on Windows

2015-09-06 Thread Steve Dower
Steve Dower added the comment: subprocess with shell=True turns it into a "cmd.exe /C "start chrome.exe ..."" type command, which means the arguments will use shell parsing (e.g. > for redirection, & for multiple commands, etc.) "start" in cmd.exe behaves the same as os.startfile, but can also

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-06 Thread Larry Hastings
Larry Hastings added the comment: I suspect we're not fixing this in 3.4, so I'm removing 3.4 from the version list. -- versions: -Python 3.4 ___ Python tracker ___ ___

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-06 Thread Larry Hastings
Larry Hastings added the comment: Well, I'm already holding up rc3 on one other issue, might as well fix this too. Can somebody make me a pull request? -- ___ Python tracker __

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-06 Thread Tim Peters
Tim Peters added the comment: Universal consensus on ROUND_HALF_EVEN, yes. I would like to see it repaired for 3.5.0, but that's just me saying so without offering to do a single damned thing to make it happen ;-) -- ___ Python tracker

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

2015-09-06 Thread Guido van Rossum
Guido van Rossum added the comment: (It could be fixed in 3.5.1, since asyncio is still provisional in 3.5.) -- ___ Python tracker ___ ___

[issue22980] C extension naming doesn't take bitness into account

2015-09-06 Thread Larry Hastings
Larry Hastings added the comment: I'm leaving this open just because we're apparently waiting on some "What's New" docs. -- ___ Python tracker ___ __

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

2015-09-06 Thread Larry Hastings
Larry Hastings added the comment: Reassigning to 3.6. -- priority: deferred blocker -> release blocker versions: +Python 3.6 -Python 3.4, Python 3.5 ___ Python tracker ___ __

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-06 Thread Larry Hastings
Larry Hastings added the comment: So is this considered broken enough that I need to accept a fix for 3.5.0? And has a consensus been reached about exactly what that fix would be? -- ___ Python tracker __

[issue24917] time_strftime() Buffer Over-read

2015-09-06 Thread Steve Dower
Steve Dower added the comment: Good enough for me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue24917] time_strftime() Buffer Over-read

2015-09-06 Thread Larry Hastings
Larry Hastings added the comment: Okay, I think *I* reproduced it. 1) I pulled your cpython350 fork down locally. 2) I updated to your checkin that fixed the bug. (c31dad22c80d) 3) I reverted the change to Modules/timemodule.c to put the bug back: % hg cat -r 97393 Modules/timemodule.c > Mo

[issue24917] time_strftime() Buffer Over-read

2015-09-06 Thread Steve Dower
Steve Dower added the comment: I wasn't able to repro the crash at all, even with the debugging flags that make this sort of issue more prominent. It relies on a very precise layout of multiple objects in memory, or possibly a specific sequence of allocations/deallocations, as well as a format

[issue24917] time_strftime() Buffer Over-read

2015-09-06 Thread Larry Hastings
Larry Hastings added the comment: Steve, did you confirm that the test triggers the array bounds bug when the patch *isn't* applied? I want to confirm both that a) the test exercises the bug, and b) the fix fixes the bug. I assume you ran the test suite with the patch applied, so that covers

[issue25004] test_mmap should catch f.close() failure in LargeMmapTests._make_test_file()

2015-09-06 Thread Martin Panter
Martin Panter added the comment: Patch looks good to me. Anything that fails flush() is likely to also fail close(). But I cannot reproduce the actual failure. Perhaps it requires a file system like FAT that doesn’t support “holes” in files. -- nosy: +berker.peksag, martin.panter stage

[issue25014] Add contextlib.itercm()

2015-09-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I don't think I like this idea. It's not really a common use > case (I've never wished I had itercm()) and it will make it > possible to write slightly obscure code. Of course you can > already write obscure code using itertools :-) I concur with Antoine

[issue25005] webbrowser breaks on query strings with multiple fields on Windows

2015-09-06 Thread Larry Hastings
Larry Hastings added the comment: I want to ship something, but I don't think it'll be either of those patches in their current form. Maybe I'm dense, but I don't feel like I understand these patches. They have very different approaches. The first one attempts to rehabilitate the patch by ru

[issue24917] time_strftime() Buffer Over-read

2015-09-06 Thread Steve Dower
Steve Dower added the comment: New PR: https://bitbucket.org/larry/cpython350/pull-requests/19/issue-24917-time_strftime-buffer-over-read -- ___ Python tracker ___ _

[issue23406] interning and list comprehension leads to unexpected behavior

2015-09-06 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue23406] interning and list comprehension leads to unexpected behavior

2015-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6c222848badd by Martin Panter in branch '2.7': Issue #23406: Clarify documentation on multiplying a sequence https://hg.python.org/cpython/rev/6c222848badd New changeset 57f8c7ad7782 by Martin Panter in branch '3.4': Issue #23406: Clarify document

[issue17849] Missing size argument in readline() method for httplib's class LineAndFileWrapper

2015-09-06 Thread Martin Panter
Martin Panter added the comment: Thanks Cory. Error now looks like this: $ https_proxy=http://223.19.230.181:80 ./python -c 'from urllib2 import *; urlopen("https://bugs.python.org/issue17849";)' [. . .] urllib2.URLError: -- resolution: -> fixed stage: patch review -> resolved status

[issue17849] Missing size argument in readline() method for httplib's class LineAndFileWrapper

2015-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3510e5d435db by Martin Panter in branch '2.7': Issue #17849: Raise sensible exception for invalid HTTP tunnel response https://hg.python.org/cpython/rev/3510e5d435db -- nosy: +python-dev ___ Python track

[issue24917] time_strftime() Buffer Over-read

2015-09-06 Thread Steve Dower
Steve Dower added the comment: How's this for the test (I added an explanatory comment, since it may look like it isn't testing anything to someone who isn't familiar with the issue): def test_strftime_format_check(self): # Test that strftime does not crash on invalid format strings

[issue24917] time_strftime() Buffer Over-read

2015-09-06 Thread eryksun
eryksun added the comment: With MSVC, if errno is cleared before calling strftime, then when buflen == 0 you know whether it's an invalid format string (EINVAL) or maxsize is too small (ERANGE). There's no need to guess. Oddly, only EINVAL is documented, even though setting ERANGE has been in

[issue25014] Add contextlib.itercm()

2015-09-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't think I like this idea. It's not really a common use case (I've never wished I had itercm()) and it will make it possible to write slightly obscure code. Of course you can already write obscure code using itertools :-) -- _

[issue25014] Add contextlib.itercm()

2015-09-06 Thread Nick Coghlan
Nick Coghlan added the comment: __exit__ will still get invoked even if the generator is never exhausted: >>> def itercm(cm): ... with cm: ... yield from cm ... >>> class TestCM: ... def __iter__(self): ... yield 6 ... yield 9 ... yield 42 ... def __e

[issue15873] datetime: add ability to parse RFC 3339 dates and times

2015-09-06 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- versions: +Python 3.6 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue25014] Add contextlib.itercm()

2015-09-06 Thread Martin Panter
Martin Panter added the comment: I had also thought of this kind of function, but I dismissed it because it would either have to rely on garbage collection or an explicit close() call to close the generator in case the iteration is aborted. I think it might need some kind of “with-for” combine

[issue25015] Idle: scroll Text faster with mouse wheel

2015-09-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: On X Window the scroll step in text widget is constant (50 pixels). On Windows and Mac OS it should depend on mouse settings. Run with, execute bind . {puts %D} and try to roll mouse wheel on Tk window with different speed and settings. -- nos

[issue15873] datetime: add ability to parse RFC 3339 dates and times

2015-09-06 Thread Jakub Wilk
Changes by Jakub Wilk : -- nosy: +jwilk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue25011] Smarter rl complete: hide private and special names

2015-09-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: I like the idea, though some people may object to breaking their worflow (tm). Nosy'ing David just in case ;-) -- nosy: +r.david.murray ___ Python tracker

[issue24917] time_strftime() Buffer Over-read

2015-09-06 Thread Larry Hastings
Larry Hastings added the comment: Having slept on it, I agree with Steve. We should make the minimal change necessary in order to not crash. However, it still needs a regression test. The test can use JohnLeitch's proposed test as a good starting point, but it must accept either success or

[issue24917] time_strftime() Buffer Over-read

2015-09-06 Thread Steve Dower
Steve Dower added the comment: FWIW, those macros prevent a certain class of "undefined behavior," which in this case is to terminate the process rather than return an error code. They don't do anything to prevent crashes due to exploitation or malicious code. The place for more robust formatt

[issue24917] time_strftime() Buffer Over-read

2015-09-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Historically, time and os modules have been considered low level, thin wrappers over system libc functions. Users of these modules are the proverbial "consenting adults" who should understand their power and the associated risks. The place to provide a

[issue24982] shutil.make_archive doesn't archive empty directories

2015-09-06 Thread R. David Murray
R. David Murray added the comment: I think it could be considered a bug fix, given that other archive programs, including zipfile itself, act in this way, and it is relatively unlikely that anyone is *depending* on make_archive not including empty directories (ie: that it would break their cod

[issue24917] time_strftime() Buffer Over-read

2015-09-06 Thread John Leitch
John Leitch added the comment: First, let me begin by saying I believe this patch will fix the buffer over-read, which is a good step forward. However, after giving the matter more thought, and at the risk of wearing out my welcome, I am of the belief that relying on the CRT to handle malforme

[issue25008] Deprecate smtpd

2015-09-06 Thread R. David Murray
R. David Murray added the comment: I believe that smtpd is used for a *lot* of testing code (anyone who is writing smtp clients in python, pretty much, and probably some writing in other languages). I really don't see the rationale for removing it, assuming we can rewrite it "in time". On th

[issue15989] Possible integer overflow of PyLong_AsLong() results

2015-09-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Isn't Python-ast.c a generated file? Good catch Eric. -- ___ Python tracker ___ ___ Python-bugs

[issue15989] Possible integer overflow of PyLong_AsLong() results

2015-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset e53df7955192 by Serhiy Storchaka in branch 'default': Make asdl_c.py to generate Python-ast.c changed in issue #15989. https://hg.python.org/cpython/rev/e53df7955192 -- ___ Python tracker

[issue23406] interning and list comprehension leads to unexpected behavior

2015-09-06 Thread R. David Murray
R. David Murray added the comment: Looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue25005] webbrowser breaks on query strings with multiple fields on Windows

2015-09-06 Thread R. David Murray
R. David Murray added the comment: You have to ship one of them by ("one of them" being either the fix or the backout) in 3.5.0, Larry, otherwise you are introducing a security vulnerability into 3.5 that doesn't exist in 3.4. If you don't ship it in rc3, then there's no chance that 3.5.0 wil

[issue24917] time_strftime() Buffer Over-read

2015-09-06 Thread Steve Dower
Steve Dower added the comment: New patch attached that just breaks out of the scanning loop and lets the system CRT handle invalid format strings. Fixes the condition that was suppressing some errors on Windows. Also fixed the PEP 7 issues around the changed code (I believe). No new test beca

[issue25015] Idle: scroll Text faster with mouse wheel

2015-09-06 Thread Terry J. Reedy
New submission from Terry J. Reedy: https://stackoverflow.com/questions/32414942/python-scroll-speed At least on Win7, tk.Texts scroll, by default, at an anemic 2-3 lines per wheel click, ignoring the system wheel setting. What happens on other systems? I consider this a probable tk bug, at le

[issue25014] Add contextlib.itercm()

2015-09-06 Thread Ezio Melotti
Ezio Melotti added the comment: If you are talking about generators that never get exhausted, the fact that the __exit__ is never invoked is expected and something that developers should take into account while using itercm(). I'm not aware of other generators-related issues that might cause le

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

2015-09-06 Thread Brett Cannon
Brett Cannon added the comment: I guess the test output -- both stdout and stderr -- could be redirected to /dev/null as simply using -q with regrtest will still lead to failures being emitted and random output which no one cares about except people inspecting the test output. Just need to mak

[issue15989] Possible integer overflow of PyLong_AsLong() results

2015-09-06 Thread Eric V. Smith
Eric V. Smith added the comment: Isn't Python-ast.c a generated file? -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list

[issue24858] python3 -m test -ugui -v test_tk gives 3 failures under Debian unstable (sid)

2015-09-06 Thread Laura Creighton
Laura Creighton added the comment: I could. Have you heard from doko? If python3 on debian unstable is about to become python3.5 and things work fine on 3.5 I wonder if it is worth the effort. -- ___ Python tracker

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

2015-09-06 Thread Stefan Behnel
Stefan Behnel added the comment: > The only thing that was a bit mystifying were the errors during the > initial profile run. There is so much that floats by in the terminal > window that I completely missed the warnings about errors during the > test run not being anything to worry about. Then

[issue23144] html.parser.HTMLParser: setting 'convert_charrefs = True' leads to dropped text

2015-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset ef82131d0c93 by Ezio Melotti in branch '3.4': #23144: Make sure that HTMLParser.feed() returns all the data, even when convert_charrefs is True. https://hg.python.org/cpython/rev/ef82131d0c93 New changeset 1f6155ffcaf6 by Ezio Melotti in branch '3.

[issue23144] html.parser.HTMLParser: setting 'convert_charrefs = True' leads to dropped text

2015-09-06 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report! -- resolution: -> fixed stage: commit review -> resolved status: open -> closed versions: +Python 3.6 -Python 2.7 ___ Python tracker __

[issue17582] xml.etree.ElementTree does not preserve whitespaces in attributes

2015-09-06 Thread Stefan Behnel
Stefan Behnel added the comment: Patch and test look correct. They fix a bug that produces incorrect output, so I vote for backporting them. Most code won't see the difference as whitespace control characters are rare in attribute values. And code that uses them will benefit from correctness.

[issue24779] Python/ast.c: decode_unicode is never called with rawmode=True

2015-09-06 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

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

2015-09-06 Thread Brett Cannon
Brett Cannon added the comment: After thinking about it and with _warnings.c not exactly changing very much I think I'm going to call YAGNI on ripping out _warnings.c. -- resolution: -> works for me status: open -> closed ___ Python tracker

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

2015-09-06 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue15989] Possible integer overflow of PyLong_AsLong() results

2015-09-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: One of changes to Modules/_io/_iomodule.c is no longer actual since issue21679. Change to Modules/selectmodule.c is no longer actual since issue23485 (f54bc2c52dfd). The rest changes were committed to 3.6 only. -- resolution: -> fixed stage: commit

[issue15989] Possible integer overflow of PyLong_AsLong() results

2015-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset d51a82f68a70 by Serhiy Storchaka in branch 'default': Issue #15989: Fixed some scarcely probable integer overflows. https://hg.python.org/cpython/rev/d51a82f68a70 -- ___ Python tracker

[issue24858] python3 -m test -ugui -v test_tk gives 3 failures under Debian unstable (sid)

2015-09-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Laura, could you please report a bug to Debian? -- ___ Python tracker ___ ___ Python-bugs-list mai

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

2015-09-06 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

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

2015-09-06 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- resolution: -> fixed stage: commit review -> resolved ___ Python tracker ___ ___ Python-bugs-lis

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

2015-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset f904b7eb3981 by Alexander Belopolsky in branch 'default': Closes Issue#22241: timezone.utc name is now plain 'UTC', not 'UTC-00:00'. https://hg.python.org/cpython/rev/f904b7eb3981 -- nosy: +python-dev ___

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

2015-09-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Addressed review comments. -- Added file: http://bugs.python.org/file40382/issue22241-2.diff ___ Python tracker ___ __

[issue25014] Add contextlib.itercm()

2015-09-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What if the last line will be never read? We had bugs with resource leaks in generators, and I'm not sure that all such bugs were fixed. -- nosy: +pitrou, serhiy.storchaka ___ Python tracker

[issue24982] shutil.make_archive doesn't archive empty directories

2015-09-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch. Should this be considered as a bug fix rather than new feature? -- keywords: +patch nosy: +eric.araujo, tarek stage: needs patch -> patch review Added file: http://bugs.python.org/file40381/make_archive_zip_dirs.patch

[issue24964] Add tunnel CONNECT response headers to httplib / http.client

2015-09-06 Thread Thomas Belhalfaoui
Thomas Belhalfaoui added the comment: Martin, I went through your patch and made some simple tests, and I have a couple of questions. 1) When I run the following code, I get a "Bad file descriptor" : conn = httplib.HTTPConnection("uk.proxymesh.com", 31280) conn.set_tunnel("www.google.com", 80)

[issue24982] shutil.make_archive doesn't archive empty directories

2015-09-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   >