Re: list comparison vs integer comparison, which is more efficient?

2015-01-03 Thread Chris Angelico
On Sun, Jan 4, 2015 at 10:19 AM, austin aigbe eshik...@gmail.com wrote: I would like to know which is more efficient to use, between an integer comparison and a list comparison: You can test them with the timeit module, but my personal suspicion is that any difference between them will be

Re: apostrophe not considered with tkinter's wordstart and wordend

2015-01-03 Thread Peter Otten
ravas wrote: When I place my mouse over a word (and I press something) I want the program to analyze the word. Tkinter almost provides the perfect option: self.text.get('current wordstart', 'current wordend') Unfortunately apostrophes are not considered using wordstart and wordend.

Re: [ANN] EasyGUI_Qt version 0.9

2015-01-03 Thread Michael Torrie
On 01/03/2015 10:11 AM, André Roberge wrote: Would you care to elaborate? All the code I have written works correctly on all the tests I have done. I do have reports from a user using a Mac with Python 2.7 for which some widgets did not quite work properly ... but that's all I have heard

Re: Enumerating loggers iin logging module

2015-01-03 Thread John Pote
Thanks for the replies, thought there'd be a simple answer. Much appreciated. John On 30/12/2014 22:40, Chris Angelico wrote: On Wed, Dec 31, 2014 at 8:24 AM, Tim Chase python.l...@tim.thechases.com wrote: While it may involve reaching into the objects may or may not be blessed, the following

Re: Put float number in message.

2015-01-03 Thread Mark Lawrence
On 03/01/2015 19:23, John Culleton wrote: Here is my last line in a simple program that is a scribus script. end = scribus.messageBox('Book Spine Width', 'dummy', ICON_WARNING, BUTTON_OK) This works. Now I want to put a float number called S instead of 'dummy'. If I just put S in the command I

apostrophe not considered with tkinter's wordstart and wordend

2015-01-03 Thread ravas
When I place my mouse over a word (and I press something) I want the program to analyze the word. Tkinter almost provides the perfect option: self.text.get('current wordstart', 'current wordend') Unfortunately apostrophes are not considered using wordstart and wordend.

list comparison vs integer comparison, which is more efficient?

2015-01-03 Thread austin aigbe
Hi, I am currently implementing the LTE physical layer in Python (ver 2.7.7). For the qpsk, 16qam and 64qam modulation I would like to know which is more efficient to use, between an integer comparison and a list comparison: Integer comparison: bit_pair as an integer value before comparison

Re: Python Tk Tix GUI documentation builder overview and tips

2015-01-03 Thread Terry Reedy
On 1/3/2015 1:30 PM, aba...@gmail.com wrote: Hi, I have had issues running Tix on python 2.7.6 and 3.4.2: More details on the issue here. http://stackoverflow.com/questions/27751923/tix-widgets-installation-issue Has anyone had similar issues with Tix? The current doc is wrong in any case.

Re: surprise - byte in set

2015-01-03 Thread patrick vrijlandt
Dear all, Many thanks for your responses. I never realised this difference between 'bytes' and 'string'. Thanks, Patrick --- Dit e-mailbericht is gecontroleerd op virussen met Avast antivirussoftware. http://www.avast.com -- https://mail.python.org/mailman/listinfo/python-list

Re: How do I remove/unlink wildcarded files

2015-01-03 Thread Steven D'Aprano
Chris Angelico wrote: On Sat, Jan 3, 2015 at 4:54 AM, Rustom Mody rustompm...@gmail.com wrote: And how does this strange language called English fits into your rules and (no) special cases scheme? http://www.omgfacts.com/lists/3989/Did-you-know-that-ough-can-be-pronounced-TEN-DIFFERENT-WAYS

Re: Command Line Inputs from Windows

2015-01-03 Thread Mark Lawrence
On 02/01/2015 19:44, Ken Stewart wrote: Court of King Arthur, Court of BDFL actually. I’d appreciate any help you can provide. I’m having problems passing command line parameters from Windows 7 into a Python script (using Python 3.4.2). It works correctly when I call the interpreter

Re: Command Line Inputs from Windows

2015-01-03 Thread Ken Stewart
Chris, Dennis, James, and Mark: SUCCESS! Thanks for your suggestions. It was the registry. Kudos to Dennis. The data strings for a lot of different command keys in the registry were missing the %* (percent star) characters. Thanks Chris for the explanation on why the %* string is needed.

Re: Command Line Inputs from Windows

2015-01-03 Thread Chris Angelico
On Sat, Jan 3, 2015 at 7:03 PM, Ken Stewart gordon_ken_stew...@msn.com wrote: I used the 'find' tool in regedit to search for python in the registry. There were many hits on the word python but only a handful had data fields similar to the one above. Every instance was missing the %* string.

Re: Command Line Inputs from Windows

2015-01-03 Thread Mark Lawrence
On 03/01/2015 08:03, Ken Stewart wrote: At the moment it looks like the Python installer didn't create these registry entries properly in Windows 7. If that is actally the case please raise an issue on the bug tracker at bugs.python.org if one doesn't already exist. -- My fellow

Re: How do I remove/unlink wildcarded files

2015-01-03 Thread Chris Angelico
On Sat, Jan 3, 2015 at 9:01 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Chris Angelico wrote: On Sat, Jan 3, 2015 at 4:54 AM, Rustom Mody rustompm...@gmail.com wrote: And how does this strange language called English fits into your rules and (no) special cases scheme?

Re: How do I remove/unlink wildcarded files

2015-01-03 Thread Mark Lawrence
On 03/01/2015 10:16, Chris Angelico wrote: On Sat, Jan 3, 2015 at 9:01 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Chris Angelico wrote: On Sat, Jan 3, 2015 at 4:54 AM, Rustom Mody rustompm...@gmail.com wrote: And how does this strange language called English fits into

Re: pathlib type error

2015-01-03 Thread Chris Angelico
On Sat, Jan 3, 2015 at 10:55 PM, Georg Grafendorfer georg.grafendor...@gmail.com wrote: I'm using Debian 8 Jessie on an AMD64 machine. Getting this error: ~$ python3 Python 3.4.2 (default, Oct 8 2014, 10:45:20) [GCC 4.9.1] on linux Type help, copyright, credits or license for more

pathlib type error

2015-01-03 Thread Georg Grafendorfer
Hi I'm using Debian 8 Jessie on an AMD64 machine. Getting this error: ~$ python3 Python 3.4.2 (default, Oct 8 2014, 10:45:20) [GCC 4.9.1] on linux Type help, copyright, credits or license for more information. from pathlib import Path p = Path(/etc) q = p / init.d Traceback (most recent call

Re: Socket programming

2015-01-03 Thread pramod gowda
On Saturday, January 3, 2015 5:26:27 PM UTC+5:30, Chris Angelico wrote: On Sat, Jan 3, 2015 at 10:43 PM, pramod gowda pramod.s...@gmail.com wrote: I am not getting the output, i am using windows 7 OS.. please check and give me the solution. Windows 7 - that's part of the story. What

DjangoCon Europe 2015, in Cardiff, Wales

2015-01-03 Thread D.M. Procida
In 2015, DjangoCon Europe is coming to Cardiff: http://2015.djangocon.eu/ - the first-ever six-day DjangoCon. The conference will begin with an open day (as in, open to anyone who feels like coming) of free talks and tutorials, aimed at introducing new people to Python and Django and the

Socket programming

2015-01-03 Thread pramod gowda
Hi i am learning socket programming, client code: import socket client_socket=socket.socket() server_address='192.168.2.2' server_port= 80 print(hello) client_socket.connect((server_address,server_port)) print(hello) data=client_socket.recv(1024) print(data) client_socket.close() server code:

Re: pathlib type error

2015-01-03 Thread Chris Angelico
On Sat, Jan 3, 2015 at 11:06 PM, Chris Angelico ros...@gmail.com wrote: On Sat, Jan 3, 2015 at 10:55 PM, Georg Grafendorfer georg.grafendor...@gmail.com wrote: I'm using Debian 8 Jessie on an AMD64 machine. Getting this error: ~$ python3 Python 3.4.2 (default, Oct 8 2014, 10:45:20) [GCC

Re: Socket programming

2015-01-03 Thread Chris Angelico
On Sat, Jan 3, 2015 at 10:43 PM, pramod gowda pramod.s...@gmail.com wrote: I am not getting the output, i am using windows 7 OS.. please check and give me the solution. Windows 7 - that's part of the story. What version of Python are you using? Is 192.168.2.2 the correct IP address? What

Re: Python Tk Tix GUI documentation builder overview and tips

2015-01-03 Thread abaskm
Hi, I have had issues running Tix on python 2.7.6 and 3.4.2: More details on the issue here. http://stackoverflow.com/questions/27751923/tix-widgets-installation-issue Has anyone had similar issues with Tix? Thanks and Happy New Year. On Friday, March 27, 2009 5:19:42 PM UTC-4,

Re: How do I remove/unlink wildcarded files

2015-01-03 Thread Mark Lawrence
On 03/01/2015 17:53, Rick Johnson wrote: On Saturday, January 3, 2015 4:39:25 AM UTC-6, Mark Lawrence wrote: I used to get very confused watching the old westerns. The child when talking about more and paw wasn't referring to possibly an adjective, noun or adverb and a part of an animal, but

Re: How do I remove/unlink wildcarded files

2015-01-03 Thread Rick Johnson
On Saturday, January 3, 2015 4:39:25 AM UTC-6, Mark Lawrence wrote: I used to get very confused watching the old westerns. The child when talking about more and paw wasn't referring to possibly an adjective, noun or adverb and a part of an animal, but what we would refer to in the UK as

Re: [ANN] EasyGUI_Qt version 0.9

2015-01-03 Thread Mark Lawrence
On 03/01/2015 17:11, André Roberge wrote: On Saturday, 3 January 2015 04:52:21 UTC-4, wxjm...@gmail.com wrote: Le vendredi 2 janvier 2015 20:11:25 UTC+1, André Roberge a écrit : On Friday, 2 January 2015 06:29:37 UTC-4, wxjm...@gmail.com wrote: Le mercredi 31 décembre 2014 23:24:50 UTC+1,

Re: surprise - byte in set

2015-01-03 Thread Gary Herron
On 01/03/2015 10:50 AM, patrick vrijlandt wrote: Hello list, Let me first wish you all the best in 2015! Today I was trying to test for occurrence of a byte in a set ... sys.version '3.4.2 (v3.4.2:ab2c023a9432, Oct 6 2014, 22:15:05) [MSC v.1600 32 bit (Intel)]' 'b' in 'abc' True b'b' in

surprise - byte in set

2015-01-03 Thread patrick vrijlandt
Hello list, Let me first wish you all the best in 2015! Today I was trying to test for occurrence of a byte in a set ... sys.version '3.4.2 (v3.4.2:ab2c023a9432, Oct 6 2014, 22:15:05) [MSC v.1600 32 bit (Intel)]' 'b' in 'abc' True b'b' in b'abc' True 'b' in set('abc') True b'b' in

Put float number in message.

2015-01-03 Thread John Culleton
Here is my last line in a simple program that is a scribus script. end = scribus.messageBox('Book Spine Width', 'dummy', ICON_WARNING, BUTTON_OK) This works. Now I want to put a float number called S instead of 'dummy'. If I just put S in the command I get an error. If I convert S to a string

Re: surprise - byte in set

2015-01-03 Thread Jason Friedman
sys.version '3.4.2 (v3.4.2:ab2c023a9432, Oct 6 2014, 22:15:05) [MSC v.1600 32 bit (Intel)]' 'b' in 'abc' True b'b' in b'abc' True 'b' in set('abc') True b'b' in set(b'abc') False I was surprised by the last result. What happened? (Examples simplified; I was planning to manipulate

Re: surprise - byte in set

2015-01-03 Thread Dan Stromberg
On Sat, Jan 3, 2015 at 10:50 AM, patrick vrijlandt pvrijla...@gmail.com wrote: Hello list, Let me first wish you all the best in 2015! Today I was trying to test for occurrence of a byte in a set ... In the last case, the set has integers in it. Try: b'b'[0] in set(b'abc') --

Re: [ANN] EasyGUI_Qt version 0.9

2015-01-03 Thread André Roberge
On Saturday, 3 January 2015 04:52:21 UTC-4, wxjm...@gmail.com wrote: Le vendredi 2 janvier 2015 20:11:25 UTC+1, André Roberge a écrit : On Friday, 2 January 2015 06:29:37 UTC-4, wxjm...@gmail.com wrote: Le mercredi 31 décembre 2014 23:24:50 UTC+1, André Roberge a écrit : EasyGUI_Qt

Re: Socket programming

2015-01-03 Thread Dan Stromberg
On Sat, Jan 3, 2015 at 3:43 AM, pramod gowda pramod.s...@gmail.com wrote: Hi i am learning socket programming, This works on Linux Mint 17.1. Server: #!/usr/local/cpython-3.4/bin/python import socket server_socket = socket.socket() #server_name = '192.168.2.2'

Re: Socket programming

2015-01-03 Thread pramod gowda
On Saturday, January 3, 2015 9:27:20 PM UTC+5:30, Steven D'Aprano wrote: pramod gowda wrote: HI, i m doing n personal laptop. so i think i ve rights to open a listening socket,could u pls tell me hw can i check it? Is your keyboard broken? There are a lot of missing characters in your

Re: Socket programming

2015-01-03 Thread pramod gowda
On Saturday, January 3, 2015 8:39:26 PM UTC+5:30, mm0fmf wrote: On 03/01/2015 11:43, pramod gowda wrote: server_socket=socket.socket() server_name='192.168.2.2' server_port= 80 server_socket.bind((server_name,server_port)) server_socket.listen(1) I don't do much Python on Windows but

Re: Socket programming

2015-01-03 Thread Steven D'Aprano
pramod gowda wrote: HI, i m doing n personal laptop. so i think i ve rights to open a listening socket,could u pls tell me hw can i check it? Is your keyboard broken? There are a lot of missing characters in your sentences. You're going to have a lot of trouble programming with a broken

Re: Socket programming

2015-01-03 Thread pramod gowda
On Saturday, January 3, 2015 6:08:28 PM UTC+5:30, Chris Angelico wrote: On Sat, Jan 3, 2015 at 11:25 PM, pramod gowda pramod.s...@gmail.com wrote: I am using python 3.4.2 I don get any exceptions, but wn i run the code,i don see any connections, IP address is given as my system IP.

Re: Command Line Inputs from Windows

2015-01-03 Thread Gisle Vanem
Ken Stewart wrote: Here is a sample key: S1-5-21-1560217580-722697556-320042093-1000-Classes py_auto_file shell open command The corrected data for the key looks like this: C:\Python34\python.exe %1 %* Yikes! You use the awful cmd.exe as the shell

Re: Socket programming

2015-01-03 Thread Chris Angelico
On Sat, Jan 3, 2015 at 11:25 PM, pramod gowda pramod.s...@gmail.com wrote: I am using python 3.4.2 I don get any exceptions, but wn i run the code,i don see any connections, IP address is given as my system IP. What does the client say? ChrisA --

Re: Socket programming

2015-01-03 Thread mm0fmf
On 03/01/2015 11:43, pramod gowda wrote: server_socket=socket.socket() server_name='192.168.2.2' server_port= 80 server_socket.bind((server_name,server_port)) server_socket.listen(1) I don't do much Python on Windows but do you have the necessary access rights to open a listening socket on

[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

  1   2   >