[issue23116] Python Tutorial 4.7.1: Improve ask_ok() to cover more input values

2015-01-03 Thread Carol Willing
Carol Willing added the comment: @amylou Thank you for submitting this documentation suggestion about the Python Tutorial. This tutorial section, 4.7.1 Default Argument Values, tries to show that a function can have multiple input arguments which may be given default values. While the

[issue1602] windows console doesn't print or input Unicode

2015-01-03 Thread Drekin
Drekin added the comment: I tried the following code: import pdb pdb.set_trace() print(1 + 2) print(αβγ∫) When run in vanilla Python it indeed ends with UnicodeEncodeError as soon as it hits the line with non-ASCII characters. However, the solution via win_unicode_console package seems to

[issue23150] urllib parse incorrect handing of params

2015-01-03 Thread Julian Reschke
Julian Reschke added the comment: An example URI for this issue is: http://example.com/; The RFC 3986 path component for this URI is /;. After using urllib's parse function, how would you know? (I realize that changing behavior of the existing API may cause problems, but this is an

[issue22256] pyvenv should display a progress indicator while creating an environment

2015-01-03 Thread Donald Stufft
Donald Stufft added the comment: I just noticed this issue. I think all that really needs done here is changing the venv module to use subprocess.check_call instead of subprocess.check_output when calling ensurepip. -- ___ Python tracker

[issue23121] pip.exe breaks if python 2.7.9 is installed under c:\Program Files\Python

2015-01-03 Thread Donald Stufft
Donald Stufft added the comment: I do not know what setuptools plans on with regards to distlib sorry. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23121 ___

[issue23010] unclosed file warning when defining unused logging FileHandler in dictConfig

2015-01-03 Thread Walter Doekes
Walter Doekes added the comment: No worries. I know how it is ;) Thanks for the update. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23010 ___

[issue23153] Clarify Boolean Clause Results

2015-01-03 Thread R. David Murray
R. David Murray added the comment: I mistyped 'josh' as 'joel', sorry. Ethan covers it pretty well, but I'll add a few things. Boolean operators are indeed not always used in a boolean context. There is a long tradition in Python of using them to return values via the short-circuit

[issue23156] Update tix install information in tkinter tix chapter of doc

2015-01-03 Thread Terry J. Reedy
New submission from Terry J. Reedy: Update tix install info in doc. Using tix starts with 3 lines for testing one's tix install and continues '''If this fails, you have a Tk installation problem which must be resolved before proceeding. Use the environment variable TIX_LIBRARY to point to

[issue23157] Lib/test/time_hashlib.py doesn't work

2015-01-03 Thread Antoine Pitrou
New submission from Antoine Pitrou: I suppose it was totally forgotten in the transition to 3.x, and nobody appears to have complained. Perhaps we should remove it. -- components: Demos and Tools, Library (Lib) messages: 233375 nosy: christian.heimes, gregory.p.smith, pitrou priority:

[issue23143] Remove some conditional code in _ssl.c

2015-01-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset e9f05a4a5f16 by Antoine Pitrou in branch 'default': Issue #23143: Remove compatibility with OpenSSLs older than 0.9.8. https://hg.python.org/cpython/rev/e9f05a4a5f16 -- nosy: +python-dev ___ Python

[issue23143] Remove some conditional code in _ssl.c

2015-01-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 37c6fd09f71f by Antoine Pitrou in branch 'default': Issue #23143: Remove compatibility with OpenSSLs older than 0.9.8. https://hg.python.org/cpython/rev/37c6fd09f71f -- ___ Python tracker

[issue23143] Remove some conditional code in _ssl.c

2015-01-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks! Now done. -- resolution: - fixed stage: needs patch - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23143 ___

[issue23156] Update tix install information in tkinter tix chapter of doc

2015-01-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Added Zach for Window build info, Ned for OSX info. -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23156 ___

[issue23143] Remove some conditional code in _ssl.c

2015-01-03 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +alex, christian.heimes, dstufft, giampaolo.rodola, janssen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23143 ___

[issue23143] Remove some conditional code in _ssl.c

2015-01-03 Thread Donald Stufft
Donald Stufft added the comment: +1, This sounds completely reasonable to do to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23143 ___ ___

[issue23153] Clarify Boolean Clause Results

2015-01-03 Thread John Potelle
John Potelle added the comment: I'm learning Python and informing you this is confusing - and you close the ticket without hearing any response to your questions? Re: Josh 1. To show how to return a Boolean result from a Boolean clause. If there's a better way, I'm all for it. 2. Most is a

[issue23154] MSVC 2013 Express needlessly rebuilds code

2015-01-03 Thread Mark Lawrence
New submission from Mark Lawrence: I've suspected that this is the case for some time but I've confirmed it this morning. I ran synchronize and the highest revision was 94004 Changes %s to %ls in wprintf in launcher.c for C99 compatibility. As expected MSVC rebuilt the launcher. Later I

[issue23153] Clarify Boolean Clause Results

2015-01-03 Thread R. David Murray
R. David Murray added the comment: Indeed, the short circuit and value return behavior is described in that section just before the example. I agree with Joel. This is a tutorial, and part of the zen of Python is that all expressions have a boolean value. There are very few places in python

[issue23154] MSVC 2013 Express needlessly rebuilds code

2015-01-03 Thread Zachary Ware
Zachary Ware added the comment: To clarify a bit, there's very little re-compiling, but everything that references the pythoncore project (every extension) is re-linked. There's no way around that short of not including the hg revision (which I won't accept :), but the re-linking only takes a

[issue23154] MSVC 2013 Express needlessly rebuilds code

2015-01-03 Thread Steve Dower
Steve Dower added the comment: This is because the hg id result has changed and we embed that into python35.dll. You'll see the same thing after an edit too (when the revision has + added). -- ___ Python tracker rep...@bugs.python.org

[issue20983] Python 3.4 'repair' Windows installation does not install pip setuptools packages

2015-01-03 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: +steve.dower, tim.golden, zach.ware versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20983 ___

[issue11240] Running unit tests in a command line tool leads to infinite loop with multiprocessing on Windows

2015-01-03 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: +sbt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11240 ___ ___ Python-bugs-list

[issue14302] Rename Scripts directory to bin and move python.exe to bin

2015-01-03 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: +steve.dower, zach.ware versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14302 ___

[issue17202] Add .bat line to .hgeol

2015-01-03 Thread Mark Lawrence
Mark Lawrence added the comment: No objections so proceeding is in order here I take it? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17202 ___

[issue23155] unittest: object has no attribute '_removed_tests'

2015-01-03 Thread Thomas Klausner
New submission from Thomas Klausner: On NetBSD with python-3.4.2 I see the following issue when running the tests for py-flake8-2.2.5: running build_ext test_get_parser (flake8.tests.test_engine.TestEngine) ... ok test_get_python_version (flake8.tests.test_engine.TestEngine) ... ok

[issue23153] Clarify Boolean Clause Results

2015-01-03 Thread Ethan Furman
Ethan Furman added the comment: Apologies, my wording was poor -- the last item evaluated is the one returned, but all items may not be evaluated. As soon as the answer is known Python stops evaluating any remaining items. So in the example: -- string1, string2, string3 = '', 'Trondheim',

[issue23150] urllib parse incorrect handing of params

2015-01-03 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Saturday, January 3, 2015 at 12:46 AM, Julian Reschke wrote: An example URI for this issue is: http://example.com/; The RFC 3986 path component for this URI is /;. I think, a stronger argument might be desirable (something like a real world scenario

[issue23154] MSVC 2013 Express needlessly rebuilds code

2015-01-03 Thread Zachary Ware
Zachary Ware added the comment: Hmmm, what are sections 3 and 4? Are you building from the VS GUI or Command Prompt? From Command Prompt in a clean checkout, running PCbuild\build.bat -d -e (debug build) should take several minutes. The same again should be quick, and then just

[issue23154] MSVC 2013 Express needlessly rebuilds code

2015-01-03 Thread Mark Lawrence
Mark Lawrence added the comment: I build from the GUI. I've just tried the Release build, it very quickly rebuilt the first four items and said the rest were up to date. I switched to Debug and got the output in the attached file. This is what I meant earlier by the effect toggling between

[issue21337] Add tests for Tix

2015-01-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: A minimal test would be that the one in the doc. from tkinter import tix root = tix.Tk() root.tk.eval('package require Tix') This passes on my 3.4.2 win7. I believe the first line should work on any system with _tkinter, whereas

[issue23154] MSVC 2013 Express needlessly rebuilds code

2015-01-03 Thread Mark Lawrence
Mark Lawrence added the comment: Then we're not talking about the same thing. Maybe my setup is wrong, but a load of files were recompiled (from memory I think from sections 3 and 4 of the Release build) so it took minutes rather than fractions of a second. --

[issue23154] MSVC 2013 Express needlessly rebuilds code

2015-01-03 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: Added file: http://bugs.python.org/file37588/CMDdebugbuildoutput.log ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23154 ___

[issue23154] MSVC 2013 Express needlessly rebuilds code

2015-01-03 Thread Jeremy Kloth
Changes by Jeremy Kloth jeremy.kloth+python-trac...@gmail.com: -- nosy: +jkloth ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23154 ___ ___

[issue1284316] Win32: Security problem with default installation directory

2015-01-03 Thread Steve Dower
Steve Dower added the comment: I'll reassign this to me, as I'm looking into making Program Files the default location for 3.5. I'd like to release at least some of the alphas with the change active by default (i.e. it's easy to select the old directory) to get broader feedback. So far I

[issue23154] MSVC 2013 Express needlessly rebuilds code

2015-01-03 Thread Zachary Ware
Zachary Ware added the comment: On testing, you are correct, Mark. Sorry for the premature close. How does this patch look to you, Steve? -- assignee: - zach.ware keywords: +patch resolution: not a bug - stage: resolved - status: closed - open type: - behavior Added file:

[issue20898] Missing 507 response description

2015-01-03 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: rhettinger - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20898 ___ ___

[issue23154] MSVC 2013 Express needlessly rebuilds code

2015-01-03 Thread Steve Dower
Steve Dower added the comment: Ah, I forgot to put Configuration in there. That patch is fine. If it's only the OpenSSL projects doing this, that shouldn't cause 31 projects to rebuild (4 at most I'd have though), but it probably will cause more rebuilds than necessary. --

[issue23158] IDLE's help.txt corrent typo

2015-01-03 Thread Al Sweigart
New submission from Al Sweigart: There is a typo in IDLE's help.txt file: into the corrent number of spaces -- messages: 233379 nosy: Al.Sweigart priority: normal severity: normal status: open title: IDLE's help.txt corrent typo type: behavior versions: Python 3.4, Python 3.5, Python

[issue23158] IDLE's help.txt corrent typo

2015-01-03 Thread Al Sweigart
Al Sweigart added the comment: I've attached a simple typo fix for this issue. -- keywords: +patch Added file: http://bugs.python.org/file37590/patch.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23158

[issue23154] MSVC 2013 Express needlessly rebuilds code

2015-01-03 Thread Zachary Ware
Zachary Ware added the comment: Our original explanation accounts for the 31 projects rebuilding. I'll get the patch committed later tonight (hopefully). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23154

[issue23153] Clarify Boolean Clause Results

2015-01-03 Thread John Potelle
John Potelle added the comment: Thank you for your reasoned responses. I'm beginning to see just how much Python is its own animal. This and/or thing has history; I get it. Links back to the reference documentation is a good idea. -- ___ Python

[issue23158] IDLE's help.txt corrent typo

2015-01-03 Thread Al Sweigart
Changes by Al Sweigart asweig...@gmail.com: -- components: +IDLE ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23158 ___ ___ Python-bugs-list

[issue17583] IDLE HOWTO

2015-01-03 Thread Al Sweigart
Changes by Al Sweigart asweig...@gmail.com: -- nosy: +Al.Sweigart ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17583 ___ ___ Python-bugs-list

[issue14944] Setup Usage documentation for pydoc, idle 2to3

2015-01-03 Thread Al Sweigart
Changes by Al Sweigart asweig...@gmail.com: -- nosy: +Al.Sweigart ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14944 ___ ___ Python-bugs-list

[issue23132] Faster total_ordering

2015-01-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks Serhiy. I really like this clean-up. When there is an exception in the user's root comparison operation, the traceback is more intelligible now. If you're interested, here are two additional optimizations: _op_or_eq = '''

[issue22628] Idle: Tree lines are spaced too close together.

2015-01-03 Thread Al Sweigart
Changes by Al Sweigart asweig...@gmail.com: -- nosy: +Al.Sweigart ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22628 ___ ___ Python-bugs-list

[issue22956] Improved support for prepared SQL statements

2015-01-03 Thread Gerhard Häring
Gerhard Häring added the comment: The low-hanging fruit of executemany() reusing the prepared statement is of course taken. Also, there is a statement cache that is being used transparently. I am against exposing the statement directly via the API. -- assignee: - ghaering nosy:

[issue21718] sqlite3 cursor.description seems to rely on incomplete statement parsing for detection

2015-01-03 Thread Gerhard Häring
Gerhard Häring added the comment: I have now committed a fix in the pysqlite project at github. https://github.com/ghaering/pysqlite/commit/f67fa9c898a4713850e16934046f0fe2cba8c44c I'll eventually merge it into the Python tree. -- assignee: - ghaering nosy: +ghaering

[issue22382] sqlite3 connection built from apsw connection should raise IntegrityError, not DatabaseError

2015-01-03 Thread Gerhard Häring
Gerhard Häring added the comment: Reusing the apsw connection in the sqlite3 module was deprecated a long time ago. It is simply not supported, even if there is still code left in the module that supports this somewhat. This code should then be removed. This closing as wontfix. --

[issue14076] sqlite3 module ignores placeholders in CREATE TRIGGER code

2015-01-03 Thread Gerhard Häring
Gerhard Häring added the comment: The sqlite3 module is not at fault here. If it does not work, then is is a restriction of SQLite3 - at which places it accepts bind parameters. This closing as not a bug. -- assignee: - ghaering resolution: - not a bug status: open - closed

[issue23154] MSVC 2013 Express needlessly rebuilds code

2015-01-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset d53506fe31e1 by Zachary Ware in branch 'default': Closes #23154: Fix unnecessary recompilation of OpenSSL on Windows https://hg.python.org/cpython/rev/d53506fe31e1 -- nosy: +python-dev resolution: - fixed stage: - resolved status: open -

[issue23132] Faster total_ordering

2015-01-03 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- Removed message: http://bugs.python.org/msg233383 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23132 ___

[issue23132] Faster total_ordering

2015-01-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Serhiy, this is a really nice idea. By removing the additional layer of indirection, the code is more intelligible, runs faster, and the tracebacks make more sense when the user's root comparison raises an exception. Since there are only twelve functions

[issue22231] httplib: unicode url will cause an ascii codec error when combined with a utf-8 string header

2015-01-03 Thread Bob Chen
Bob Chen added the comment: Is there any possibility that we encapsulate urllib.quote into httplib? Because many developers wouldn't know about this utility function. And as I mentioned above, they could have got an unicode url from anywhere inside python, like an API call, without being

[issue22231] httplib: unicode url will cause an ascii codec error when combined with a utf-8 string header

2015-01-03 Thread Bob Chen
Changes by Bob Chen 175818...@qq.com: Removed file: http://bugs.python.org/file36492/httplib.py.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22231 ___

[issue22231] httplib: unicode url will cause an ascii codec error when combined with a utf-8 string header

2015-01-03 Thread Bob Chen
Changes by Bob Chen 175818...@qq.com: Added file: http://bugs.python.org/file37592/httplib.py.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22231 ___

[issue22231] httplib: unicode url will cause an ascii codec error when combined with a utf-8 string header

2015-01-03 Thread Bob Chen
Bob Chen added the comment: How about this patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22231 ___ ___ Python-bugs-list mailing list

[issue22956] Improved support for prepared SQL statements

2015-01-03 Thread Markus Elfring
Markus Elfring added the comment: Are you really against benefits from reusing of existing application programming interfaces for the explicit preparation and compilation of SQL statements? It seems that other software contributors like Marc-Andre Lemburg and Tony Locke show more

[issue22231] httplib: unicode url will cause an ascii codec error when combined with a utf-8 string header

2015-01-03 Thread Demian Brecht
Demian Brecht added the comment: utf-8 encoding is only one step in IRI encoding. Correct IRI encoding is non trivial and doesn't fall into the support policy for 2.7 (bug/security fixes). I think that the best that can be done for 2.7 is to enhance the documentation around

[issue23159] argparse: Provide equivalent of optparse.OptionParser.{option_groups, option_list, get_option}

2015-01-03 Thread Eric McDonald
New submission from Eric McDonald: There are several use cases for having the equivalent of the optparse.OptionParser 'get_option' method and the 'option_groups' and 'option_list' properties in argparse.ArgumentParser class. (1) Easy alteration of the text of the default help option. With

[issue23160] Respect the environment variable SVNROOT in external-common.bat

2015-01-03 Thread Anselm Kruis
New submission from Anselm Kruis: Issue #21907 introduced the environment variable SVNROOT in PCbuild/get_externals.bat. I propose to use the same variable in Tools/buildbot/external-common.bat too. This batch contains many verbatim copies of the SVN-URL. With the provided patch, it would

[issue23160] Respect the environment variable SVNROOT in external-common.bat

2015-01-03 Thread Anselm Kruis
Anselm Kruis added the comment: Patch for 3.4 -- keywords: +patch Added file: http://bugs.python.org/file37593/issue23160-3.4.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23160 ___

[issue23160] Respect the environment variable SVNROOT in external-common.bat

2015-01-03 Thread Anselm Kruis
Anselm Kruis added the comment: Patch for 2.7 -- nosy: +zach.ware Added file: http://bugs.python.org/file37594/issue23160-2.7.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23160 ___

[issue23161] collections.abc.MutableSet missing methods

2015-01-03 Thread Devin Jeanpierre
New submission from Devin Jeanpierre: set(dir(set)) - set(dir(collections.abc.MutableSet)) {'copy', 'update', '__rsub__', 'union', 'issubset', 'intersection', 'issuperset', '__rxor__', 'difference', 'symmetric_difference', 'difference_update', '__rand__', 'intersection_update',

[issue23161] collections.abc.MutableSet missing methods

2015-01-03 Thread Devin Jeanpierre
Changes by Devin Jeanpierre jeanpierr...@gmail.com: -- components: +Library (Lib) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23161 ___ ___