[issue23116] Python Tutorial 4.7.1: Improve ask_ok() to cover more input values
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 suggestion to use lower() does offer more robust input handling, it also adds some complexity to the example by introducing another function to a possibly new user. I do believe that the 'ask_ok' function could be improved by renaming the 'complaint' argument to something more positive, perhaps 'reminder'. I would also recommend replacing the error message 'uncooperative user' to something with a softer tone, perhaps 'invalid user response'. @amyluo If you are interested in working on documentation, section 6 of the Developer Guide is a handy resource (https://docs.python.org/devguide/docquality.html). -- assignee: - docs@python components: +Documentation nosy: +docs@python, willingc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23116 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1602] windows console doesn't print or input Unicode
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 work correctly. There is just an issue when you keep calling 'next' even after the main program ended. It ends with a RuntimeError after a few iterations. I didn't know that pdb can continue debugging after the main program has ended. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23150] urllib parse incorrect handing of params
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 information loss issue). One ugly, but workable way to fix this would be to also provide access to a RFC3986path component. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23150 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22256] pyvenv should display a progress indicator while creating an environment
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 rep...@bugs.python.org http://bugs.python.org/issue22256 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23121] pip.exe breaks if python 2.7.9 is installed under c:\Program Files\Python
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23010] unclosed file warning when defining unused logging FileHandler in dictConfig
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23153] Clarify Boolean Clause Results
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 mechanism. Python is not the only language that does this. That said, there are disadvantages to that use of boolean operators, and eventually the trinary expression 'x if y else z' was introduced, and is now the preferred way to compute such values. The tutorial has not been updated to reflect that, and that is something that could be done, but probably requires a significant rewrite...someone on irc pointed out that the passage we are discussing is the first introduction of 'or' in the tutorial). However, the short-circuit-and-value-returning behavior of the boolean operators will not change, since it is a long standing part of the language. Your suggestion that this whole thing be discussed more is a valid point, but the question is, is this point in the tutorial the place to do it? Again, a more extensive rewrite is probably needed in order to make a real improvement (a project that is being discussed, whose status I don't know). Finally, the 4.1 text you quote is noting and/or as an exception is talking about the built-in functions and operators. and and or are important exceptions both because their default is different from other logical operations and because, unlike the other python operators, a type cannot override them. Thus they always return a value, whereas other *logical* operations will return a boolean *unless otherwise documented* in the documentation for the type. (I'm not sure there are any exceptions to that in the sdtlib, but there are, for example, in numpy.) Now, that all said, the tutorial section explicitly mentions the behavior of and and or, so I don't see how their being exceptional in this regard is an issue with the tutorial text. If you assigned another logical expression to a variable, you'd get True or False, but in Python's philosophy that's just a special case of the fact that all values in python have a truth value, as discussed by Ethan. So, in summary, I hear you that as an experienced programmer this tutorial section did not give you all the information you wanted. However, it is a *tutorial*, and so it *can't* (and be a readable *tutorial*) cover all the issues. Perhaps it could cover more if it were rewritten, but I don't think changing this section in any of the ways suggested so far would, as it is currently organized, be an improvement. If anyone wants to take another stab at it, though, we'll definitely evaluate it. willingc on IRC suggested adding links to other parts of the docs, for further reading, and that might be worthwhile if someone wants to take a look at making a suggestion in that regard. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23153 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23156] Update tix install information in tkinter tix chapter of doc
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 the installed Tix library directory, and make sure you have the dynamic object library (tix8183.dll or libtix8183.so) in the same directory that contains your Tk dynamic object library (tk8183.dll or libtk8183.so). The directory with the dynamic object library should also have a file called pkgIndex.tcl (case sensitive), which contains the line: package ifneeded Tix 8.1 [list load [file join $dir tix8183.dll] Tix]''' Almost nothing above matches my working-with-tix 3.4.2 Win 7 install. I do have a tix library directory: python34/tcl/tix8.4.3, but the version number is much newer. Since it is in the right place, TIX_LIBRARY is not needed and there is none. python34/DLLs contains tcl86t.dll and tk86t.dll and NO tix.dll. Is the once separate tix dll now part of tk dll? I cannot find pkgIndex.tcl; it is certainly not in the DLLs directory nor in the /tcl. The current doc seems useless to people who do not have tix working. See, for example, https://stackoverflow.com/questions/27751923/tix-widgets-installation-issue which is a semi-repeat question and which claims seeing similar reports elsewhere on the net. -- assignee: docs@python components: Documentation, Tkinter messages: 233368 nosy: docs@python, serhiy.storchaka, terry.reedy, zach.ware priority: normal severity: normal stage: needs patch status: open title: Update tix install information in tkinter tix chapter of doc type: behavior versions: Python 2.7, Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23156 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23157] Lib/test/time_hashlib.py doesn't work
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: low severity: normal status: open title: Lib/test/time_hashlib.py doesn't work type: behavior versions: Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23157 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23143] Remove some conditional code in _ssl.c
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 tracker rep...@bugs.python.org http://bugs.python.org/issue23143 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23143] Remove some conditional code in _ssl.c
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 rep...@bugs.python.org http://bugs.python.org/issue23143 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23143] Remove some conditional code in _ssl.c
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23156] Update tix install information in tkinter tix chapter of doc
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23143] Remove some conditional code in _ssl.c
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23143] Remove some conditional code in _ssl.c
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23153] Clarify Boolean Clause Results
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 generalization. Perhaps Many is a better term? All traditional 3GLs and some other scripting languages don't; e.g. REXX and Beanshell return Boolean. But it's not important here. 3. As I said, or some better method. I've been programming 30 years but am only now learning Python. All I asking for is better clarification in the tutorial. If this were a wiki I would add one myself. Re: Ethan; quote from the line above, same section in the Tutorial: When used as a general value and not as a Boolean, the return value of a short-circuit operator is the last evaluated argument. If this isn't correct, please fix it. And this whole sentence is a bit weird to me - Boolean operators are *always* used in a Boolean context - unless the op is overloaded with some other functionality. Why would it return anything else? (well let's not go there...) Re: R.David Sorry I didn't see any input from Joel. But, yes, this is a tutorial. I argue that using A = (B or C or D) construct is not good, intuitive programming style, anyway. To me this looks like A should hold a Boolean, even only from a pseduocode standpoint. Even so, one wouldn't need to cast a Boolean if a Boolean was returned, as old programmers like me would expect. But, OK, so don't use bool() - but what you said is basically what I'm looking for IN the tutorial - eduction about why a Boolean should NOT be expected. Or how to achieve a Boolean, since it's a valid data type since version 2.3. This is a tutorial, after all. For example, the full documentation for v3.4 section 4.1: Operations and built-in functions that have a Boolean result always return 0 or False for false and 1 or True for true, unless otherwise stated. (Important exception: the Boolean operations or and and always return one of their operands.). Even here the docs says this is an exception. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23153 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23154] MSVC 2013 Express needlessly rebuilds code
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 reran synchronize and the highest revision was 94009 Update bundled pip and setuptools to 6.0.6 and 11.0.. The output from the 64 bit Release build concluded 31 succeeded, 0 failed, 5 up-to-date, 1 skipped. There also seems to be a toggle operating between the Release and Debug builds such that only one rebuilds at any one time. -- components: Build, Windows messages: 233355 nosy: BreamoreBoy, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: MSVC 2013 Express needlessly rebuilds code versions: Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23154 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23153] Clarify Boolean Clause Results
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 programs where it would be considered Pythonic to cast a value to one of the two uniquely boolean values via the Bool operator, so it is better that it *not* be mentioned in this context. -- nosy: +r.david.murray resolution: - not a bug stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23153 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23154] MSVC 2013 Express needlessly rebuilds code
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 fraction of a second per project. -- resolution: - not a bug stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23154 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23154] MSVC 2013 Express needlessly rebuilds code
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 http://bugs.python.org/issue23154 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20983] Python 3.4 'repair' Windows installation does not install pip setuptools packages
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11240] Running unit tests in a command line tool leads to infinite loop with multiprocessing on Windows
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: +sbt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11240 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14302] Rename Scripts directory to bin and move python.exe to bin
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17202] Add .bat line to .hgeol
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23155] unittest: object has no attribute '_removed_tests'
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 test_get_style_guide (flake8.tests.test_engine.TestEngine) ... ok test_get_style_guide_kwargs (flake8.tests.test_engine.TestEngine) ... ok test_register_extensions (flake8.tests.test_engine.TestEngine) ... ok test_stdin_disables_jobs (flake8.tests.test_engine.TestEngine) ... ok test_windows_disables_jobs (flake8.tests.test_engine.TestEngine) ... ok Traceback (most recent call last): File setup.py, line 74, in module test_suite='nose.collector', File /usr/pkg/lib/python3.4/distutils/core.py, line 148, in setup dist.run_commands() File /usr/pkg/lib/python3.4/distutils/dist.py, line 955, in run_commands self.run_command(cmd) File /usr/pkg/lib/python3.4/distutils/dist.py, line 974, in run_command cmd_obj.run() File /usr/pkg/lib/python3.4/site-packages/setuptools/command/test.py, line 142, in run self.with_project_on_sys_path(self.run_tests) File /usr/pkg/lib/python3.4/site-packages/setuptools/command/test.py, line 122, in with_project_on_sys_path func() File /usr/pkg/lib/python3.4/site-packages/setuptools/command/test.py, line 163, in run_tests testRunner=self._resolve_as_ep(self.test_runner), File /usr/pkg/lib/python3.4/unittest/main.py, line 93, in __init__ self.runTests() File /usr/pkg/lib/python3.4/unittest/main.py, line 244, in runTests self.result = testRunner.run(self.test) File /usr/pkg/lib/python3.4/unittest/runner.py, line 168, in run test(result) File /usr/pkg/lib/python3.4/unittest/suite.py, line 87, in __call__ return self.run(*args, **kwds) File /usr/pkg/lib/python3.4/unittest/suite.py, line 130, in run self._removeTestAtIndex(index) File /usr/pkg/lib/python3.4/unittest/suite.py, line 83, in _removeTestAtIndex self._removed_tests += test.countTestCases() File /usr/pkg/lib/python3.4/unittest/suite.py, line 41, in countTestCases cases = self._removed_tests AttributeError: 'FinalizingSuiteWrapper' object has no attribute '_removed_tests' *** Error code 1 I have reported this https://gitlab.com/pycqa/flake8/issues/19#note_712215 and Ian Cordasco said this looks like a bug in the unittest module, not py-flake8. -- components: Extension Modules messages: 233365 nosy: wiz priority: normal severity: normal status: open title: unittest: object has no attribute '_removed_tests' type: behavior versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23155 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23153] Clarify Boolean Clause Results
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', 'Hammer Dance' -- string1 or string2 or string3 'Trondheim' string2 is returned because it satifies the `or` conditions, and string3 is not evaluated. Re: John I appreciate you have many years of programming experience, but there are going to be differences between what is good practice in those languages and what is good practice in Python. IMO, the big three differences are: - white space indentation - everything is an object (variables, functions, classes, instances, any piece of data...) - everything has a truthy of falsey value -- e.g. -- string1, string2, string3 = '', 'Trondheim', 'Hammer Dance' -- if string2: ...print('string2 has a value! It is %s' % string2) ... 'string2 has a value! It is Trondheim' notice there is no `if bool(string2)` or `if string2 == False` (which would be False). As far as finding that bit of the tutorial confusing, there is no way to have a single document that is crystal clear to everyone who reads it. This section is correct, as is section 4.1 -- `or` is being used, so the operand is returned, not True or False. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23153 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23150] urllib parse incorrect handing of params
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 wherein a web app can construct such an entity) for a path that ends in a semi-colon for breaking backwards compatibility. OTOH, making it RFC 3986 compliant itself is a good enough argument, but it should be applied in total and the whole module should be made compatible instead of pieces of it. There is a bug to track it. You can mention this instance for the desired behavior in that ticket too (and close this ticket if this desired behavior is a subset). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23150 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23154] MSVC 2013 Express needlessly rebuilds code
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 PCbuild\build.bat (release build) should take a while, and the same again should be quick. If you then do another debug build (add -d back), it will take a bit of time due to rebuilding (or at least re-installing) Tcl/Tk. Otherwise, things should be pretty quick. I haven't tested any of that this morning, though; how far off is that from your experience, Mark? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23154 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23154] MSVC 2013 Express needlessly rebuilds code
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 the two builds. I tried what you suggested from the command line. I'll attach the end of the output from the final run of the debug build in a moment as I can't see how to put it in in one pass here. -- Added file: http://bugs.python.org/file37587/MSVCEdebugbuildoutput.log ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23154 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21337] Add tests for Tix
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 https://stackoverflow.com/questions/27751923/tix-widgets-installation-issue reports failure of the second line on his Mac with ... self.tk.eval('package require Tix') _tkinter.TclError: can't find package Tix -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21337 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23154] MSVC 2013 Express needlessly rebuilds code
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. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23154 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23154] MSVC 2013 Express needlessly rebuilds code
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23154] MSVC 2013 Express needlessly rebuilds code
Changes by Jeremy Kloth jeremy.kloth+python-trac...@gmail.com: -- nosy: +jkloth ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23154 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1284316] Win32: Security problem with default installation directory
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 haven't encountered any trouble other than in pip (as is being discussed at https://github.com/pypa/pip/issues/1668). If things don't work well in the early releases of 3.5 we can easily revert the change, though I suspect the main feedback is going to be about the amount of typing required. In that case, I'll look into hardening the permissions on the root directory as part of installation. Unless some really bad scenarios arise, getting the legacy permissions will be opt-in. As 3.5 will be the first version with that change there shouldn't be any direct back-compat issues - we can't make a change like that in maintenance releases or even 3.4. -- assignee: loewis - steve.dower versions: -Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1284316 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23154] MSVC 2013 Express needlessly rebuilds code
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: http://bugs.python.org/file37589/issue23154.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23154 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20898] Missing 507 response description
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: rhettinger - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20898 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23154] MSVC 2013 Express needlessly rebuilds code
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. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23154 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23158] IDLE's help.txt corrent typo
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 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23158 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23158] IDLE's help.txt corrent typo
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23154] MSVC 2013 Express needlessly rebuilds code
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23153] Clarify Boolean Clause Results
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 tracker rep...@bugs.python.org http://bugs.python.org/issue23153 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23158] IDLE's help.txt corrent typo
Changes by Al Sweigart asweig...@gmail.com: -- components: +IDLE ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23158 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17583] IDLE HOWTO
Changes by Al Sweigart asweig...@gmail.com: -- nosy: +Al.Sweigart ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17583 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14944] Setup Usage documentation for pydoc, idle 2to3
Changes by Al Sweigart asweig...@gmail.com: -- nosy: +Al.Sweigart ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14944 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23132] Faster total_ordering
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 = ''' op_result = self.%s(other) # Since bool(NotImplemented) is true, the usual special case test isn't needed here return op_result or self == other ''' # setting NotImplemented as a local constant saves one or two global lookups per call exec('def %s(self, other, NotImplemented=NotImplemented):%s' % (opname, opfunc % root), namespace) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23132 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22628] Idle: Tree lines are spaced too close together.
Changes by Al Sweigart asweig...@gmail.com: -- nosy: +Al.Sweigart ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22628 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22956] Improved support for prepared SQL statements
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: +ghaering priority: normal - low resolution: - rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22956 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21718] sqlite3 cursor.description seems to rely on incomplete statement parsing for detection
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21718 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22382] sqlite3 connection built from apsw connection should raise IntegrityError, not DatabaseError
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. -- assignee: - ghaering resolution: third party - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22382 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14076] sqlite3 module ignores placeholders in CREATE TRIGGER code
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14076 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23154] MSVC 2013 Express needlessly rebuilds code
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 - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23154 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23132] Faster total_ordering
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23132] Faster total_ordering
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 involved, I don't think the function templates give us much of a payoff. Instead, it would be better to just precompute the 12 functions rather than have 5 templates. I've attached a patch relative to Python 3.4. Ideally, I would like this backported to 3.4 to fix the regression in performance and intelligibility. One further possible change is to localize the NotImplemented global variable. This will reduce the overhead of NotImplemented checking to almost nothing and almost completely restore the performance of earlier versions. -- Added file: http://bugs.python.org/file37591/total_ordering.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23132 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22231] httplib: unicode url will cause an ascii codec error when combined with a utf-8 string header
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 noticed that it is potentially wrong. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22231 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22231] httplib: unicode url will cause an ascii codec error when combined with a utf-8 string header
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22231] httplib: unicode url will cause an ascii codec error when combined with a utf-8 string header
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22231] httplib: unicode url will cause an ascii codec error when combined with a utf-8 string header
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 Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22956] Improved support for prepared SQL statements
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 constructive opinions. https://mail.python.org/pipermail/db-sig/2014-December/006133.html https://www.mail-archive.com/db-sig@python.org/msg01829.html http://article.gmane.org/gmane.comp.python.db/3784 -- resolution: rejected - later ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22956 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22231] httplib: unicode url will cause an ascii codec error when combined with a utf-8 string header
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 HTTPConnection.__init__ (unicode hostnames should be IDNA-encoded with the built-in IDNA encoder) and HTTPConnection.request/putrequest noting that unicode paths should be IRI encoded, with a link to RFC 3987. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22231 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23159] argparse: Provide equivalent of optparse.OptionParser.{option_groups, option_list, get_option}
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 optparse, one could write: oparser.get_option( -h ).help 'show this help message and exit' oparser.get_option( -h ).help = Show this help message and exit. oparser.get_option( -h ).help 'Show this help message and exit.' The equivalent facility does not appear to exist in argparse. (Issue #19462, http://bugs.python.org/issue19462, is about a different use case. And, while https://docs.python.org/3/library/argparse.html#add-help suggests a workaround with add_help=False and then creating a new option with the 'help' action, it is still less convenient than altering the existing help option.) (2) Inspection of all the argument declarations in an ArgumentParser object after it has been populated. This is particularly useful if you want to look for the equivalent of the available options in config files and don't want to have write explicit code which separately enumerates the available config file keys and how to handle them. With an OptionParser, one could use the 'option_groups' attribute to find all option groups (to correspond to config file sections) and the 'option_list' attribute to find all options (to correspond to config file keys); these are all part of the published interface and provide relatively simple data types to inspect. With an Argument Parser, one needs to rely upon the unpublished interface (the '_actions' attribute of a parser, etc...). -- components: Library (Lib) messages: 233394 nosy: emcd priority: normal severity: normal status: open title: argparse: Provide equivalent of optparse.OptionParser.{option_groups,option_list,get_option} type: enhancement versions: Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23159 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23160] Respect the environment variable SVNROOT in external-common.bat
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 become much simpler to use a (local) mirror of svn.python.org. -- components: Build messages: 233395 nosy: anselm.kruis priority: normal severity: normal status: open title: Respect the environment variable SVNROOT in external-common.bat type: enhancement versions: Python 2.7, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23160 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23160] Respect the environment variable SVNROOT in external-common.bat
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23160] Respect the environment variable SVNROOT in external-common.bat
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23161] collections.abc.MutableSet missing methods
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', 'symmetric_difference_update', '__ror__'} Most of these should be implemented on MutableSet rather than subclasses. -- messages: 233398 nosy: Devin Jeanpierre priority: normal severity: normal status: open title: collections.abc.MutableSet missing methods versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23161 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23161] collections.abc.MutableSet missing methods
Changes by Devin Jeanpierre jeanpierr...@gmail.com: -- components: +Library (Lib) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23161 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com