[issue20580] IDLE should support platform-specific default config defaults

2015-09-18 Thread Mark Roseman
Changes by Mark Roseman : -- nosy: +markroseman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue5594] IDLE startup configuration

2015-09-18 Thread Mark Roseman
Changes by Mark Roseman : -- nosy: +markroseman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2015-09-18 Thread Mark Roseman
Changes by Mark Roseman : -- nosy: +markroseman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue22354] Idle: highlite tabs

2015-09-18 Thread Mark Roseman
Changes by Mark Roseman : -- nosy: +markroseman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue25083] Python can sometimes create incorrect .pyc files

2015-09-18 Thread tzickel
tzickel added the comment: Not sure why nobody has responded yet, but I have gone up and made a patch for the problem for 2.7 HEAD. Would be great if someone with more understanding of python's source could say if this is the optimal place to do the ferror test. I am able to see that this patc

[issue25169] multiprocess documentation

2015-09-18 Thread Bar Harel
Bar Harel added the comment: Here's a quick minor patch to fix, works on a re-compiled doc. -- keywords: +patch nosy: +bar.harel Added file: http://bugs.python.org/file40506/multiprocessing_patch.patch ___ Python tracker

[issue16322] time.tzname on Python 3.3.0 for Windows is decoded by wrong encoding

2015-09-18 Thread Petr Prikryl
Petr Prikryl added the comment: I have just observed behaviour for the Czech locale. I tried to avoid collisions with stdout encoding, writing the strings into a file using UTF-8 encoding: tzname_bug.py -- #!python3 import time import sys with op

[issue25145] urllib how-to should be updated to remove PyGoogle

2015-09-18 Thread Bar Harel
Bar Harel added the comment: A quick patch updating the mime and removing the mentioning of PyGoogle. We can add a different example in the future if we wish. -- keywords: +patch nosy: +bar.harel Added file: http://bugs.python.org/file40508/urllib_howto.patch __

[issue25145] urllib how-to should be updated to remove PyGoogle

2015-09-18 Thread Bar Harel
Bar Harel added the comment: Added a similar patch to 2.7 -- Added file: http://bugs.python.org/file40509/urllib_howto27.patch ___ Python tracker ___

[issue16701] Docs missing the behavior of += (in-place add) for lists.

2015-09-18 Thread Brendan Barnwell
Brendan Barnwell added the comment: This needs to be fixed. The documentation for the behavior of += on lists needs to be with the documentation on lists. The existing, vague documentation that += works in-place "when possible" is insufficient. A central feature of Python is that the behavi

[issue24324] Remove -Wunreachable-code flag

2015-09-18 Thread Skip Montanaro
Skip Montanaro added the comment: This seems to work for me. Diff against default. I have no idea how old the autoconf setup is here at work. I imagine you'll want to only apply the configure.ac patch and regenerate configure. -- keywords: +patch Added file: http://bugs.python.org/file

[issue1103213] Adding a recvexactly() to socket.socket: receive exactly n bytes

2015-09-18 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue25021] product_setstate() Out-of-bounds Read

2015-09-18 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue25170] 3.5.0 documentation archives missing

2015-09-18 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis: Documentation archives for final 3.5.0 release are missing in https://www.python.org/ftp/python/doc/3.5.0/ (Compare it with e.g. https://www.python.org/ftp/python/doc/3.4.0/ and https://www.python.org/ftp/python/doc/3.4.3/) -- a

[issue25170] 3.5.0 documentation archives missing

2015-09-18 Thread Larry Hastings
Larry Hastings added the comment: They don't go there, they go in https://docs.python.org/3.5/archives/ Where is the documentation that this "https://www.python.org/ftp/python/doc/3.5.0/"; directory is an officially supported directory? -- ___ Pyth

[issue25083] Python can sometimes create incorrect .pyc files

2015-09-18 Thread Brett Cannon
Brett Cannon added the comment: I have not looked at your patch, tzickel, but I just wanted to let you know a lack of reply just means lack of time on the part of the core developers. We are all volunteers and essentially don't get paid to spend our time to work on Python. Add in the fact that

[issue25154] Drop the pyvenv script

2015-09-18 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I have a patch which will at least improve the error message when `python3 -m venv` fails because python3-venv isn't installed on Debian/Ubuntu. I will work with Doko on this. -- ___ Python tracker

[issue25170] 3.5.0 documentation archives missing

2015-09-18 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: https://www.python.org/ftp/python/doc/ contains documentation for all previous versions since Python 1.1, so https://www.python.org/ftp/python/doc/${Version} can be considered official. https://docs.python.org/${Version}/archives URL schem

[issue25085] Windows x86-64 embeddable zip file contains test directorys

2015-09-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: tkinter\test and idlelib\idle_test are others. I presume all these directories are installed in a normal install even when "[] include tests" is left unchecked. There is one non-unittest file in idle_help, htest.py, that I would not want omitted, as I believe

[issue25103] 3.5.0 installed standard library on Windows has LF line endings

2015-09-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: AFAIK, Wordpad is also always available (has been at least up to Win 7), and it works with \n file and font resizing is obvious, but it is paper-oriented and for me, defaults to 8-1/2 x 11 with 1-1/4 side margins, leaving 6", too small for 80 char lines. The

[issue25109] test_code_module tests fail when run from the installed location

2015-09-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is 3.5+ only as 2.7 does not have the module and 3.4 does not have the 2 test_xyz_tb functions that failed. This works OK on Win7. C:\Users\Terry>python -m test -v test_code_module == CPython 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:27:37) [MSC v.1900 6

[issue17756] test_syntax_error fails when run in the installed location

2015-09-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: In the absence of any further issue in over a year, can this be closed? -- nosy: +terry.reedy ___ Python tracker ___ ___

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

2015-09-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: Unfixed for 2 years. How about skipping the test if os.makedirs(site.USER_SITE) fails? -- nosy: +terry.reedy ___ Python tracker ___ ___

[issue25170] 3.5.0 documentation archives missing

2015-09-18 Thread Larry Hastings
Larry Hastings added the comment: The official way to download the documentation is from this page: https://docs.python.org/3.5/download.html which links to the "archives" directory. When python.org changed to the new site, some things moved around. I guess this was one of those things. Any

[issue17773] test_pydoc fails with the installed testsuite (2.7)

2015-09-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: Tests all pass on win7 with installed 2.7.10 (and 3.4.3 and 3.5.0). Is there a current failure on something else? -- nosy: +terry.reedy type: -> behavior ___ Python tracker

[issue25103] 3.5.0 installed standard library on Windows has LF line endings

2015-09-18 Thread Mark Lawrence
Mark Lawrence added the comment: Windows 10 has Wordpad, I've never liked 'nice', as far as I'm concerned it's completely meaningless, and right now we've more important things to think about on Windows. Hence all in all to me this is a nothing issue. -- nosy: +BreamoreBoy __

[issue21264] test_compileall fails to build in the installed location

2015-09-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: Verified failure on installed 3.4.3, Win 7, with 3 rather than 1 error (all similar). test_no_args_compiles_path (test.test_compileall.CommandLineTests) ... FAIL test_no_args_respects_force_flag (test.test_compileall.CommandLineTests) ... FAIL test_no_args_resp

[issue25159] Import time regression

2015-09-18 Thread Brett Cannon
Brett Cannon added the comment: It should also be mentioned that startup time from 3.4 to default has not been affected according to Intel's daily benchmark run which is usually the most obvious place you see import performance issues: normal_startup0.63661% 0.39540% 0.45

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

2015-09-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0f4e6c303531 by Brett Cannon in branch '2.7': Issue #24915: Make PGO builds support Clang and use the test suite for https://hg.python.org/cpython/rev/0f4e6c303531 New changeset f211c8f554f9 by Brett Cannon in branch '2.7': Give proper credit for is

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

2015-09-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7fcff838d09e by Brett Cannon in branch '3.5': Issue #24915: Add Clang support to PGO builds and use the test suite https://hg.python.org/cpython/rev/7fcff838d09e New changeset 7749fc0a5ea6 by Brett Cannon in branch 'default': Merge for issue #24915

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

2015-09-18 Thread Brett Cannon
Brett Cannon added the comment: Thanks to Alecsandru and Intel for the patches! -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker __

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

2015-09-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you Brett for committing this. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue25133] Clarify that the constants in selectors are module-level

2015-09-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset f03c074b6242 by Brett Cannon in branch 'default': Merge for issue #25133 https://hg.python.org/cpython/rev/f03c074b6242 -- nosy: +python-dev ___ Python tracker ___

[issue25133] Clarify that the constants in selectors are module-level

2015-09-18 Thread Brett Cannon
Brett Cannon added the comment: Changeset 8054a9f788e7 has the 3.5 change. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ _

[issue21264] test_compileall fails to build in the installed location

2015-09-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: David, I am nosying you because this issue proposes to modify two test functions you added to test_compileall. See my prior message. -- For me, the test failed at every first occurrence of 'PYTHONPATH=' in the 3 functions. With one occurrence removed, the next

[issue25171] does not build on OpenBSD with no value defined for PY_GETENTROPY

2015-09-18 Thread Remi Pointel
New submission from Remi Pointel: Hi, I'm trying to build Python on OpenBSD-current, but it does not build because it seems that PY_GETENTROPY does not have a value. $ make ... gcc -pthread -c -fno-strict-aliasing -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-protot

[issue25131] The AST for dict and set displays has the lineno of the first value

2015-09-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: A fix should include a new ast test, such as self.assertEqual(parse("{\n1:2}").body[0].value.lineno, 1) I verified that the equivalent assert passes on 3.4.3, fails on 3.5.0. -- nosy: +terry.reedy stage: -> test needed ___

[issue25139] Just a little refactoring

2015-09-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe this is equivalent. In general, bare excepts should be either made more specific or commented as intentional. Since derived classes can override finish_request, and fail any which way, the latter is probably appropriate here: # derived classes m

[issue25157] Installing Python 3.5.0 32bit on Windows 8.1 64bit system gives Error 0x80240017

2015-09-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: Uploads are not limited to patches. Please attach such long text files instead of pasting. -- nosy: +terry.reedy ___ Python tracker ___ ___

[issue25158] Python 3.2.2 and 3.5.0 Do not seem compatible with OpenSSL 1.0.2d on Solaris 10

2015-09-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: If you are concerned about security and compiling 3.2.2, I would expect you should use the latest release, 3.2.6, with several fixes including security fixes. There should be one more security release in early 2016. I believe 3.5.0 has 1.0.2c. I don't know ou

[issue25159] Regression in time to import a module

2015-09-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: Clarify title; regression is not in 'import time'. I am working on timing the import of Lib/*.py on windows. I already discovered that unix-only crypt is present on windows (but should not be). -- nosy: +terry.reedy title: Import time regression -> Re

[issue25172] Unix-only crypt should not be present on Windows.

2015-09-18 Thread Terry J. Reedy
New submission from Terry J. Reedy: Except for crypt, all the modules labeled 'Unix' or 'Linux' on the module index https://docs.python.org/3/py-modindex.html are absent from /Lib on Windows. 'import xyz' fails with "ImportError: no module named 'zyz'". (I presume the same is true on unix fo

[issue19003] email.generator.BytesGenerator corrupts data by changing line endings

2015-09-18 Thread John Mark Vandenberg
Changes by John Mark Vandenberg : -- nosy: +John.Mark.Vandenberg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25161] Missing periods at the end of sentences

2015-09-18 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue25169] multiprocess documentation

2015-09-18 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue24199] Idle: remove idlelib.idlever.py and its use in About dialog

2015-09-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: I get it now: the last line should be 'import idlelib.idlever' instead of the redundant line from idlever itself. Will change, and thanks for correcting this before I so the same in multiple other modules. -- ___ P

[issue25173] IDLE - several common dialogs don't have correct parent set

2015-09-18 Thread Mark Roseman
New submission from Mark Roseman: The confirmation, file, etc. common dialogs in tkinter accept both a 'master' and a 'parent' argument. Master is not required (it will use parent if not provided). Parent is used to associate the dialog with a given window. On Mac OS X, using parent further tu

[issue25174] Backspace Escape Character at End of String

2015-09-18 Thread Jared Bevis
New submission from Jared Bevis: I'm a new python learner but I noticed inconsistent behavior of the backspace character when used in strings. I'm running 2.7.10. Whenever the backspace character '\b' is at the very end of a string, nothing happens, but if it is in the middle of string it be

[issue25084] remove semi-busy loop in py2.7 threading.Condition.wait(timeout=x)

2015-09-18 Thread Nick Coghlan
Nick Coghlan added the comment: The consistency issue I was referring to related to the "timeout" argument - we currently have a patch applied to Fedora (and derivatives) that instead adds a "balanced=True" flag argument so you can pass "polling=False" to turn off the busy loop (at the risk of

[issue25174] Backspace Escape Character at End of String

2015-09-18 Thread Martin Panter
Martin Panter added the comment: Python itself doesn’t treat backspace specially. What you are probably seeing is the terminal interpreting the backspace specially by moving the cursor left (without erasing anything). >>> s = "12345" + '\b' + '6' >>> s '12345\x086' >>> s[5] # ASCII code for b

[issue25173] IDLE - several common dialogs don't have correct parent set

2015-09-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: General comments on 'master' versus 'parent': This seems to be a matter of confusion in tkinterland. When I have asked before about the difference, all I have gotten is that they are more or less the same. http://effbot.org/tkinterbook/entry.htm, for instance,

[issue21259] replace "except: pass" by "except Exception: pass"

2015-09-18 Thread Martin Panter
Changes by Martin Panter : -- superseder: -> Fix bare excepts in various places in std lib ___ Python tracker ___ ___ Python-bugs-lis

[issue25112] Windows installer assigns non-existent icons to Python file types

2015-09-18 Thread Mark Mikofski
Mark Mikofski added the comment: +1 I just wasted at least an hour on this. :( should have checked bugs first. Google says nothing, so I thought I was going crazy. I saw that py.exe had only one icon and that Python.File had c:\windows\py.exe, 1 while Python.CompiledFile had C:\windows\py.exe,

[issue17319] http.server.BaseHTTPRequestHandler send_response_only doesn't check the type and value of the code.

2015-09-18 Thread Martin Panter
Changes by Martin Panter : -- Removed message: http://bugs.python.org/msg227645 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue17319] http.server.BaseHTTPRequestHandler send_response_only doesn't check the type and value of the code.

2015-09-18 Thread Martin Panter
Changes by Martin Panter : -- Removed message: http://bugs.python.org/msg227647 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue17319] http.server.BaseHTTPRequestHandler send_response_only doesn't check the type and value of the code.

2015-09-18 Thread Martin Panter
Martin Panter added the comment: The proposed patch changes the code to 500 if the code is invalid (rather than raising an exception as I initially assumed). I would be inclined to leave send_response() without any extra error checking or handling, unless this is a common problem and there is

[issue21259] replace "except: pass" by "except Exception: pass"

2015-09-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I presume you do not mind if I reclose this. Thanks, please do reclose this. -- ___ Python tracker ___ ___

[issue25161] Missing periods at the end of sentences

2015-09-18 Thread Martin Panter
Martin Panter added the comment: All the changes in the non-2.7 patch look reasonable to me. I left two review comments suggesting a few extra minor edits. -- nosy: +martin.panter ___ Python tracker __

[issue25159] Regression in time to import a module

2015-09-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: I did not find any significant different between 3.4 and 3.5 on Windows running the following: import os, time from importlib import import_module files = os.listdir("C:/Programs/Python34/Lib") excludes = {'antigravity.py', 'compileall.py', 'crypt.py', 'pty.py

[issue25161] Missing periods at the end of sentences

2015-09-18 Thread Martin Panter
Changes by Martin Panter : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue25139] socketserver.ThreadingMixIn exception handler: Just a little refactoring

2015-09-18 Thread Martin Panter
Martin Panter added the comment: I suggest changing the “except” clause to “except BaseException”, which would make the intention clearer. As an alternative, see also my Issue 23430, were I proposed not catching exceptions like KeyboardInterrupt and SystemExit, by changing this to: try: s

<    1   2