[issue21677] Exception context set to string by BufferedWriter.close()

2014-06-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset a3b7b89da34f by Serhiy Storchaka in branch '3.4': Issue #21677: Fixed chaining nonnormalized exceptions in io close() methods. http://hg.python.org/cpython/rev/a3b7b89da34f New changeset d6ac4b6020b9 by Serhiy Storchaka in branch 'default': Issue #2

[issue21600] mock.patch.stopall doesn't work with patch.dict to sys.modules

2014-06-08 Thread fumihiko kakuma
fumihiko kakuma added the comment: Thank you in advance. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue15780] IDLE (windows) with PYTHONPATH and multiple python versions

2014-06-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks for the correction. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15780] IDLE (windows) with PYTHONPATH and multiple python versions

2014-06-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pyth

[issue15780] IDLE (windows) with PYTHONPATH and multiple python versions

2014-06-08 Thread eryksun
eryksun added the comment: `idle.pyw -E` passes an invalid argument, and pythonw.exe doesn't inherit the console to print the usage text to stderr. The -E option needs to be passed to the interpreter: C:\Python34>pythonw.exe -E Lib/idlelib/idle.pyw Or run idlelib as a script: pyw -3

[issue21569] PEP 466: Python 2.7 What's New preamble changes

2014-06-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 454d4a9a3088 by Nick Coghlan in branch '3.4': Issue #21569: Fix incorrect cross reference http://hg.python.org/cpython/rev/454d4a9a3088 New changeset 524d73b8f29e by Nick Coghlan in branch 'default': Issue #21569: merge from 3.4 http://hg.python.org

[issue21569] PEP 466: Python 2.7 What's New preamble changes

2014-06-08 Thread Nick Coghlan
Nick Coghlan added the comment: Huh, I thought I fixed that before pushing. Maybe I missed a commit after editing... -- ___ Python tracker ___ ___

[issue21669] Custom error messages when print & exec are used as statements

2014-06-08 Thread Nick Coghlan
Nick Coghlan added the comment: My main aim here is to offer a custom error message that can be looked up in an internet search (likely ending up at a Stack Overflow answer - which we could create in advance of the 3.4.x release that includes this change). That answer can then explain the variou

[issue21682] Refleak in idle_test test_autocomplete

2014-06-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Checking the buildbot just now, there is some other stuff after test_tk on X86 Windows 7, but I ran the command you gave (but with python_d) and it passed ok. So I presume this is really fixed and should stay closed. -- ___

[issue17822] Save on Close windows (IDLE)

2014-06-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: It seems that I have been over-optimistic about uniformity of behavior. With the focus issue different for opening Idle and opening subwindows in htest, I added it to the issue about refining htest #21624. Given Mark's report, I must rebuild tcl/tk and make s

[issue21624] Idle: polish htests

2014-06-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Another issue for sometests, but which might be fixed in htest.run, is to force focus to the new widget window opened by the Test_xyz button. -- ___ Python tracker ___

[issue18910] IDle: test textView.py

2014-06-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yes, early skipping was the reason I put the test where I did. The simple change occurred to me today. I have not decided yet whether to also change the 3.4/5 files to match and how to edit the testing README. For one test, I would not care either way. But I e

[issue21616] argparse explodes with nargs='*' and a tuple metavar

2014-06-08 Thread Vasilis Vasaitis
Vasilis Vasaitis added the comment: Ah, I did come across that issue when I was searching for prior reports, but somehow it didn't register in my head as being the same thing. Does the fix for that address the behaviour I'm seeing too? If so, feel free to close as a duplicate. Additionally, if

[issue15780] IDLE (windows) with PYTHONPATH and multiple python versions

2014-06-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: There already is an idlelib/idle.bat that starts the corresponding python with set CURRDIR=%~dp0 start "IDLE" "%CURRDIR%..\..\pythonw.exe" "%CURRDIR%idle.pyw" %1 %2 %3 %4 %5 %6 %7 %8 %9 Arguments added to the .bat command are passed on. So the enhancement requ

[issue21692] Wrong order of expected/actual for assert_called_once_with

2014-06-08 Thread R. David Murray
R. David Murray added the comment: But the actual call that you made in your example was some_method('foo', 'bar'). Given that we conventionally write unittest assertions with the actual result first and the expected result second (assertEqual(actual, expected), it might be less confusing if t

[issue21688] Improved error msg for make.bat htmlhelp

2014-06-08 Thread R. David Murray
Changes by R. David Murray : -- nosy: +zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue17822] Save on Close windows (IDLE)

2014-06-08 Thread R. David Murray
R. David Murray added the comment: On Linux I believe that what happens to the keyboard focus depends on the window manager in use and how that window manager is configured to behave. For instance, some window managers have a 'focus follows mouse' setting, but I always hated that so I would d

[issue17822] Save on Close windows (IDLE)

2014-06-08 Thread Mark Lawrence
Mark Lawrence added the comment: My 3.4.1 is the released version, 3.5.0 built from source that was synchronised earlier today as in :- c:\cpython\PCbuild\python_d.exe Python 3.5.0a0 (default:b1e99b4ec374, Jun 8 2014, 18:29:24) [MSC v.1600 32 bit (Intel)] on win32 Running the console interpr

[issue9012] Separate compilation of time and datetime modules

2014-06-08 Thread R. David Murray
R. David Murray added the comment: No. The problem has nothing to do with the VS version. -- ___ Python tracker ___ ___ Python-bugs-li

[issue21692] Wrong order of expected/actual for assert_called_once_with

2014-06-08 Thread Fei Long Wang
Fei Long Wang added the comment: IMHO, the trace should be: AssertionError: Expected call: some_method('foo', 'bar') Actual call: some_method('foo', 'baz') instead of below: AssertionError: Expected call: some_method('foo', 'baz') Actual call: some_method('foo', 'bar'

[issue11681] -b option undocumented

2014-06-08 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue20578] BufferedIOBase.readinto1 is missing

2014-06-08 Thread Nikolaus Rath
Nikolaus Rath added the comment: I used the wrong interpreter when cutting and pasting the example above, here's the correct version to avoid confusion with the traceback: >>> import _pyio >>> from array import array >>> buf = array('b', b'x' * 10) >>> _pyio.open('/dev/zero', 'rb').readinto(buf

[issue20578] BufferedIOBase.readinto1 is missing

2014-06-08 Thread Nikolaus Rath
Nikolaus Rath added the comment: Thanks for taking the time, and apologies about the test failure. I was probably too eager and ran only the test_io suite instead of everything. I looked at the failure, and the problem is that the default Python BufferedIOBase.readinto implementation is semi-b

[issue17822] Save on Close windows (IDLE)

2014-06-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am on Windows 7 also. Did you open the shell from the console interpreter with import? Run python -m idlelib.idle_test.htest and for me the tests that open a separate editor window show the same problem of no cursor or focus in the editor. Perhaps you ran the

[issue21515] Use Linux O_TMPFILE flag in tempfile.TemporaryFile?

2014-06-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8b93cdccd872 by Victor Stinner in branch 'default': Issue #21515: Fix typo in a comment, thanks Arfrever for the report http://hg.python.org/cpython/rev/8b93cdccd872 -- ___ Python tracker

[issue7932] print statement delayed IOError when stdout has been closed

2014-06-08 Thread tholzer
tholzer added the comment: It's still a problem in Python 2.7: python -c 'import sys; print >> sys.stdout, "x"' 1>&- ; echo $? close failed in file object destructor: sys.excepthook is missing lost sys.stderr 0 But feel free to close as "won't fix", as this seems to be an edge case which might

[issue4765] IDLE fails to "Delete Custom Key Set" properly

2014-06-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Add to my list of patches to review. -- versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker ___

[issue21372] multiprocessing.util.register_after_fork inconsistency

2014-06-08 Thread Richard Oudkerk
Richard Oudkerk added the comment: register_after_fork() is intentionally undocumented and for internal use. It is only run when starting a new process using the "fork" start method whether on Windows or not -- the "fork" in its name is a hint. -- resolution: -> not a bug stage: -> r

[issue15780] IDLE (windows) with PYTHONPATH and multiple python versions

2014-06-08 Thread Mark Lawrence
Mark Lawrence added the comment: Something on Windows configuration here https://docs.python.org/3/using/windows.html#excursus-setting-environment-variables -- nosy: +BreamoreBoy ___ Python tracker ___

[issue12274] "Print window" menu on IDLE aborts whole application

2014-06-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue needs a unittest test added within the framework. I opened #21696 as a dependency. Since configx.def files can be edited, and, I believe, at least one is intended to be edited, configHandler should perhaps catch exceptions and display in a messagebo

[issue20147] multiprocessing.Queue.get() raises queue.Empty exception if even if an item is available

2014-06-08 Thread Richard Oudkerk
Changes by Richard Oudkerk : -- assignee: -> sbt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue21696] Idle: test syntax of configuration files

2014-06-08 Thread Terry J. Reedy
New submission from Terry J. Reedy: Spinoff of #12274 and a dependency thereof: new test_configurations.py should statically test that configparser, called from idlelib.configHandler, can process all the configuration.def files without error. -- assignee: terry.reedy messages: 220053 n

[issue21695] Idle 3.4.1-: closing Find in Files while in progress closes Idle

2014-06-08 Thread Terry J. Reedy
New submission from Terry J. Reedy: Reproducer: On Windows, Open Idle and editor. In editor grep (alt-f3), for instance, 'print' in /Lib/*.py. While hits are flashing by, close the output window with [x] 2.7.6 or .7: Output window closes, Idle continues as desired. 3.3.5 or 3.4.1: All Idle win

[issue21569] PEP 466: Python 2.7 What's New preamble changes

2014-06-08 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: These changes caused this warning (at least on default branch) from Sphinx: ${cpython_working_copy}/Doc/whatsnew/2.7.rst:442: WARNING: undefined label: argparse-from-optparse (if the link has no caption the label must precede a section hea

[issue21683] Add Tix to the Windows buildbot scripts

2014-06-08 Thread Zachary Ware
Zachary Ware added the comment: Tix should be built on the 2.7 and 3.4 buildbots now; it already has been on 3.x. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker _

[issue21683] Add Tix to the Windows buildbot scripts

2014-06-08 Thread Roundup Robot
New submission from Roundup Robot: New changeset 31dbdd7596aa by Zachary Ware in branch '3.4': Issue #21683: Add Tix build to the Windows buildbot scripts. http://hg.python.org/cpython/rev/31dbdd7596aa New changeset 8bafb707d549 by Zachary Ware in branch '2.7': Issue #21683: Add Tix build to the

[issue21669] Custom error messages when print & exec are used as statements

2014-06-08 Thread Glyph Lefkowitz
Glyph Lefkowitz added the comment: Just my 2ยข here: rather than debating cases in the abstract, it would be interesting to 'pip install' a couple of popular 2.x-only packages and see if the error message is an improvement. My experience is that learners don't hit this so much by writing their

[issue21683] Add Tix to the Windows buildbot scripts

2014-06-08 Thread Zachary Ware
Changes by Zachary Ware : -- keywords: +patch Added file: http://bugs.python.org/file35538/issue21683.diff ___ Python tracker ___ ___

[issue17822] Save on Close windows (IDLE)

2014-06-08 Thread Mark Lawrence
Mark Lawrence added the comment: Using 3.4.1 and 3.5.0 on Windows 7 I always get the focus set to the edit window or shell as appropriate. -- ___ Python tracker ___

[issue21671] CVE-2014-0224: OpenSSL upgrade to 1.0.1h on Windows required

2014-06-08 Thread Zachary Ware
Zachary Ware added the comment: Good enough for me. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___ __

[issue21671] CVE-2014-0224: OpenSSL upgrade to 1.0.1h on Windows required

2014-06-08 Thread Steve Dower
Steve Dower added the comment: The only reason to do it is to help out those who build from source, which I suspect is an incredibly small group on Windows. We'd also be signing up to keep doing it, and implying that it's been tested. I say don't bother. From:

[issue21682] Refleak in idle_test test_autocomplete

2014-06-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset b8f33440cd5e by Terry Jan Reedy in branch '2.7': Issue #21682: Replace EditorWindow with mock to eliminate memory leaks. http://hg.python.org/cpython/rev/b8f33440cd5e New changeset e6cc02d32957 by Terry Jan Reedy in branch '3.4': Issue #21682: Repla

[issue21671] CVE-2014-0224: OpenSSL upgrade to 1.0.1h on Windows required

2014-06-08 Thread Zachary Ware
Zachary Ware added the comment: So installers are out for 3.1-3.3; should we still update the externals script and pyproject properties for those branches anyway? If not, this issue should be ready to close. -- stage: -> commit review status: open -> pending type: -> security _

[issue21682] Refleak in idle_test test_autocomplete

2014-06-08 Thread Zachary Ware
Zachary Ware added the comment: Terry, did you mean to push Saimadhav's patch? -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue18910] IDle: test textView.py

2014-06-08 Thread Zachary Ware
Zachary Ware added the comment: The changeset Benjamin backed out is pretty much fine, just needs the requires('gui') to be at the top of setUpModule instead of at toplevel. That does mean the whole module is constructed and then thrown away without doing anything, but it at least runs proper

[issue17822] Save on Close windows (IDLE)

2014-06-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: When writing the human-verified tests in idle_test.htest.py, we discovered that there is a different between Windows and Linux in focus shifting when opening an editor window from a visible root window. On Widows, I have to click on the editor window to enter

[issue4765] IDLE fails to "Delete Custom Key Set" properly

2014-06-08 Thread Nicholas Allevato
Changes by Nicholas Allevato : -- nosy: +nicholas.allevato ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue4765] IDLE fails to "Delete Custom Key Set" properly

2014-06-08 Thread Mark Lawrence
Mark Lawrence added the comment: This is still a problem on Windows 7 with 3.4.1 but the patch file fixes it. -- nosy: +BreamoreBoy ___ Python tracker ___

[issue21476] Inconsitent behaviour between BytesParser.parse and Parser.parse

2014-06-08 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the patch based on R. David Murray's nitpick. -- Added file: http://bugs.python.org/file35537/bytes_parser_dont_close_file_v5.patch ___ Python tracker __

[issue21515] Use Linux O_TMPFILE flag in tempfile.TemporaryFile?

2014-06-08 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Minor inconsistency in Lib/tempfile.py: # Set flag to None to not try again. _O_TMPFILE_WORKS = False s/None/False/ -- nosy: +Arfrever ___ Python tracker

[issue12274] "Print window" menu on IDLE aborts whole application

2014-06-08 Thread Mark Lawrence
Mark Lawrence added the comment: Can this be closed as a patch has been committed and the unittest framework was created on issue15392 ? -- nosy: +BreamoreBoy, terry.reedy ___ Python tracker __

[issue17822] Save on Close windows (IDLE)

2014-06-08 Thread Mark Lawrence
Mark Lawrence added the comment: Using 3.4.1 on Windows I can't reproduce the AttributErrors given in msg187674 -- nosy: +BreamoreBoy ___ Python tracker ___ _

[issue21694] IDLE - Test ParenMatch

2014-06-08 Thread Saimadhav Heblikar
New submission from Saimadhav Heblikar: Adding test for idlelib.ParenMatch for 3.4 Will backport to 2.7 when this patch is OK. 3 lines could not be tested in this patch. -- components: IDLE files: test-parenmatch.diff keywords: patch messages: 220034 nosy: jesstess, sahutd, terry.reedy p

[issue15275] isinstance is called a more times that needed in ntpath

2014-06-08 Thread Mark Lawrence
Mark Lawrence added the comment: @Manuel do you intend picking this up? -- nosy: +BreamoreBoy ___ Python tracker ___ ___ Python-bugs-l

[issue18141] tkinter.Image.__del__ can throw an exception if module globals are destroyed in the wrong order

2014-06-08 Thread Jan Kanis
Jan Kanis added the comment: I tested 2.7 tip (6dfbe504f659), which does not show the problem, as expected. I think there was a real bug in that the tkinter.TclError global was being set to None on exit, but a TclError being raised is expected if I go by the comment in tkinter. The bug was fi

[issue15286] normpath does not work with local literal paths

2014-06-08 Thread Mark Lawrence
Mark Lawrence added the comment: As Antoine's pathlib made it into 3.4 is the patch here now obsolete or what? Also note the reference to issue15275. -- nosy: +BreamoreBoy ___ Python tracker _

[issue21600] mock.patch.stopall doesn't work with patch.dict to sys.modules

2014-06-08 Thread Michael Foord
Michael Foord added the comment: That looks great - thanks! I'll get it committed shortly. -- ___ Python tracker ___ ___ Python-bugs-l

[issue21692] Wrong order of expected/actual for assert_called_once_with

2014-06-08 Thread Michael Foord
Michael Foord added the comment: What specifically are you saying is in the wrong order? -- ___ Python tracker ___ ___ Python-bugs-lis

[issue21693] Broken link to Pylons in the HOWTO TurboGears documentation

2014-06-08 Thread Yann Lebel
Yann Lebel added the comment: I just noticed that the same broken link exists in the "Other notable frameworks" as well. Here is the link to the section https://docs.python.org/3/howto/webservers.html#other-notable-frameworks -- ___ Python tracker

[issue21693] Broken link to Pylons in the HOWTO TurboGears documentation

2014-06-08 Thread Yann Lebel
New submission from Yann Lebel: The link to the Pylons framework present at the end of theHOWTO -> HOWTO Use Python in the web -> TurboGears documentation section redirect to a domain that does not exists anymore. I believe it should be replaced by http://www.pylonsproject.org/ Here is the li

[issue21685] zipfile module doesn't properly compress odt documents

2014-06-08 Thread SilentGhost
SilentGhost added the comment: Whether for reasons of slightly different setup or due to something else, I'm not able to reproduce the issue. What I do see, is that the field is not automatically updated, so on opening of the document I have to hit F9 to get the "answer" field updated. That do

[issue21692] Wrong order of expected/actual for assert_called_once_with

2014-06-08 Thread Ned Deily
Changes by Ned Deily : -- nosy: +michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue21692] Wrong order of expected/actual for assert_called_once_with

2014-06-08 Thread Fei Long Wang
New submission from Fei Long Wang: >>> m=mock.Mock() >>> m.some_method('foo', 'bar') >>> m.some_method.assert_called_once_with('foo', 'bar') >>> m.some_method.assert_called_once_with('foo', 'baz') Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/dist-pac

[issue21691] set() returns random output with Python 3.4.1, in non-interactive mode

2014-06-08 Thread Jackson Cooper
Jackson Cooper added the comment: Ah, gotcha. I was assuming the output was consistent across environments, even though ordering of set() is arbitrary. -- ___ Python tracker ___