Re: Linux users: please run gui tests

2015-08-06 Thread Chris Angelico
On Fri, Aug 7, 2015 at 12:20 PM, Chris Angelico wrote: > rosuav@sikorsky:~$ uname -a > Linux sikorsky 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt9-3~deb8u1 > (2015-04-24) x86_64 GNU/Linux > > The 3.4 is my system Python (Debian Wheezy) Oh, and for what it's worth, I'm running Xfce here. ChrisA -- h

Re: Linux users: please run gui tests

2015-08-06 Thread Grant Edwards
On 2015-08-07, Grant Edwards wrote: > On 2015-08-07, Terry Reedy wrote: >> Python has an extensive test suite run after each 'batch' of commits on >> a variety of buildbots. However, the Linux buildbots all (AFAIK) run >> 'headless', with gui's disabled. Hence the following >> test_tk test_tt

Re: Linux users: please run gui tests

2015-08-06 Thread Grant Edwards
On 2015-08-07, Terry Reedy wrote: > Python has an extensive test suite run after each 'batch' of commits on > a variety of buildbots. However, the Linux buildbots all (AFAIK) run > 'headless', with gui's disabled. Hence the following > test_tk test_ttk_guionly test_idle > (and on 3.5, test_tix

Re: Linux users: please run gui tests

2015-08-06 Thread Chris Angelico
On Fri, Aug 7, 2015 at 12:07 PM, Terry Reedy wrote: > I would appreciate it if some people could run the linux version of > py -3.4 -m test -ugui test_tk test_ttk_guionly test_idle > (or 3.5). I guess this means 'python3 for the executable. > > and report here python version, linux system, and re

Re: Linux users: please run gui tests

2015-08-06 Thread Ben Finney
Terry Reedy writes: > I would appreciate it if some people could run the linux version of > py -3.4 -m test -ugui test_tk test_ttk_guionly test_idle > (or 3.5). I guess this means 'python3 for the executable. Could you verify exactly what is the command to run? I'd hate for a bunch of commands

Linux users: please run gui tests

2015-08-06 Thread Terry Reedy
Python has an extensive test suite run after each 'batch' of commits on a variety of buildbots. However, the Linux buildbots all (AFAIK) run 'headless', with gui's disabled. Hence the following test_tk test_ttk_guionly test_idle (and on 3.5, test_tix, but not important) are skipped either in w

Re: except block isn't catching exception

2015-08-06 Thread Chris Angelico
On Fri, Aug 7, 2015 at 10:34 AM, wrote: > Despite my "except KeyboardInterrupt", the KeyboardInterrupt forced by the > thread.interrupt_main() in the worker thread isn't being caught. > > Other things worth noting is that the exception takes about 3 seconds after > the call to thread.interrupt_

except block isn't catching exception

2015-08-06 Thread sohcahtoa82
I've run into strange behavior involving a blocking call to a socket accept() on the main thread and thread.interrupt_main() being called on a worker thread. Here's my code: # BEGIN exception_test.py import socket import thread import threading import time def worker(): time.sleep(2)

Re: Who uses IDLE -- please answer if you ever do, know, or teach

2015-08-06 Thread Terry Reedy
On 8/5/2015 9:17 PM, Ben Finney wrote: Terry Reedy writes: Private answers are welcome. They will be deleted as soon as they are tallied (without names). Are you also expecting questionnaire answers in this forum? Either or both. I suspect it will become a free-ranging discussion; This

Re: Who uses IDLE -- please answer if you ever do, know, or teach

2015-08-06 Thread Terry Reedy
On 8/6/2015 11:35 AM, Timothy Johnson wrote: problems because it works well for that. Most of the time I use PyDev and Notepad++ to edit Python code, but if more features were added to Idle I would consider using it more. What 1 or 2 features would you most like to see? -- Terry Jan Reedy --

Re: Who uses IDLE -- please answer if you ever do, know, or teach

2015-08-06 Thread Terry Reedy
On 8/5/2015 9:21 PM, Rustom Mody wrote: I used idle to teach a 2nd year engineering course last sem It was a more pleasant experience than I expected One feature that would help teachers: It would be nice to (have setting to) auto-save the interaction window [Yeah I tried to see if I could do it

Re: Who uses IDLE -- please answer if you ever do, know, or teach

2015-08-06 Thread Nonami Animashaun
> 0. Classes where Idle is used: > Where? > Level? > > Mostly on windows, can't remember ever using Idle on a linux system before. > Idle users: > > 1. Are you > grade school (1=12)? > undergraduate (Freshman-Senior)? > post-graduate (from whatever)? > Post-graduate > > 2. Are you > beginner (1s

How to use regex (re)

2015-08-06 Thread PK Khatri
I have a following script which extracts xyz.tgz and outputs to a folder which contains several sub-folders and files. source_dir = "c:\\TEST" dest_dir = "c:\\TEST" for src_name in glob.glob(os.path.join(source_dir, '*.tgz')): base = os.path.basename(src_name) dest_na

Re: python for barcode

2015-08-06 Thread Michael Torrie
On 08/06/2015 12:27 PM, Xxx Ooo wrote: > I try to do a program to modify barcode which kind of like "Msoffice" > if you suggestion? You'll have to explain better what you're looking for and what you've done so far. Also explain how this relates to Python. I have no idea what "like 'Msoffice'" me

Re: python for barcode

2015-08-06 Thread Laura Creighton
In a message of Thu, 06 Aug 2015 11:27:23 -0700, Xxx Ooo writes: >I try to do a program to modify barcode which kind of like "Msoffice" >if you suggestion? >Thanks > >Raymond I don't know what you mean by 'kind of like Msoffice'. Mostly I use reportlab for things like this. blogpost about it here

python for barcode

2015-08-06 Thread Xxx Ooo
I try to do a program to modify barcode which kind of like "Msoffice" if you suggestion? Thanks Raymond -- https://mail.python.org/mailman/listinfo/python-list

Re: Who uses IDLE -- please answer if you ever do, know, or teach

2015-08-06 Thread Mark Lawrence
On 06/08/2015 02:06, Terry Reedy wrote: 0. Classes where Idle is used: Where? Level? N/A Idle users: 1. Are you grade school (1=12)? undergraduate (Freshman-Senior)? post-graduate (from whatever)? post-graduate 2. Are you beginner (1st class, maybe 2nd depending on intensity of first)

Re: QUEST: does HACKING make FOR loop quicker.

2015-08-06 Thread Joel Goldstick
On Thu, Aug 6, 2015 at 3:19 AM, Chris Angelico wrote: > On Thu, Aug 6, 2015 at 4:46 PM, Steven D'Aprano > wrote: >> At least the question isn't off-topic here. I just wish I understood what >> part of my answer doesn't satisfy. Despite John Doe emailing me off list >> four times, I still don't kn

Re: Who uses IDLE -- please answer if you ever do, know, or teach

2015-08-06 Thread Timothy Johnson
On 8/5/2015 9:06 PM, Terry Reedy wrote: There have been discussions, such as today on Idle-sig , about who uses Idle and who we should design it for. If you use Idle in any way, or know of or teach classes using Idle, please answer as many of the questions below as you are willing, and as are ap

Re: Installation Successful, but pythonw and idle doesn't function

2015-08-06 Thread Zachary Ware
On Aug 6, 2015 3:55 AM, "Terry Reedy" wrote: > Actually, people do a service by installing and testing pre-release software. They just need to realize that this is what they are doing ;-). Indeed. However, I was assuming (possibly rashly, and if that's the case, my apologies to Rick) that Rick i

Re: Pruning with os.scandir?

2015-08-06 Thread Stephen Kennedy
> I think you misunderstood. scandir() is the generator-producing equivalent > of listdir() which returns a list. Neither of them recurses into > subdirectories: Ah great, that makes sense. An article I read gave the impression that os.scandir() was replacing os.walk(), not simply being used i

Re: Who uses IDLE -- please answer if you ever do, know, or teach

2015-08-06 Thread Sibylle Koczian
Am 06.08.2015 um 03:06 schrieb Terry Reedy: There have been discussions, such as today on Idle-sig , about who uses Idle and who we should design it for. If you use Idle in any way, or know of or teach classes using Idle, please answer as many of the questions below as you are willing, and as ar

Re: Pruning with os.scandir?

2015-08-06 Thread Peter Otten
Stephen Kennedy wrote: > I just saw PEP 471 announced. Mostly it looks great! One thing I found > puzzling though is the lack of control of iteration. With os.walk, one can > modify the dirs list inplace to avoid recursing into subtrees (As > mentioned somewhere, in theory one could even add to th

Pruning with os.scandir?

2015-08-06 Thread Stephen Kennedy
I just saw PEP 471 announced. Mostly it looks great! One thing I found puzzling though is the lack of control of iteration. With os.walk, one can modify the dirs list inplace to avoid recursing into subtrees (As mentioned somewhere, in theory one could even add to this list though that would be

Re: Who uses IDLE -- please answer if you ever do, know, or teach

2015-08-06 Thread Steve Hayes
On Wed, 5 Aug 2015 21:06:31 -0400, Terry Reedy wrote: >There have been discussions, such as today on Idle-sig , about who uses >Idle and who we should design it for. If you use Idle in any way, or >know of or teach classes using Idle, please answer as many of the >questions below as you are w

Re: Installation Successful, but pythonw and idle doesn't function

2015-08-06 Thread Terry Reedy
On 8/5/2015 10:43 PM, Zachary Ware wrote: C:\Users\judy\AppData\Local\Programs\Python\Python35-32\Lib\idlelib>idle.py ** IDLE can't import Tkinter. Your Python may not be configured for Tk. ** You hit upon a bug in 3.5.0b4, which is that the installer is broken for tkinter unless you hav

Test doubles for Python standard library HTTP classes

2015-08-06 Thread Ben Finney
Howdy all, What standard Python library is there to make test doubles of ‘httplib.HTTPConnection’ and ‘urllib2.HTTPBasicAuthHandler’ and so on? I have a code base (Python 2 code) which performs HTTP sessions using the various HTTP-level classes in the standard library. Testing this code will be

Re: Most Pythonic way to store (small) configuration

2015-08-06 Thread Chris Angelico
On Thu, Aug 6, 2015 at 5:33 PM, Steven D'Aprano wrote: > On Thursday 06 August 2015 10:07, Chris Angelico wrote: > >> On Thu, Aug 6, 2015 at 9:43 AM, Tim Chase >> wrote: >>> Significant whitespace? Not usually simple (just stuck touching a >>> project where someone committed with tons of trailin

Re: Most Pythonic way to store (small) configuration

2015-08-06 Thread Steven D'Aprano
On Thursday 06 August 2015 10:07, Chris Angelico wrote: > On Thu, Aug 6, 2015 at 9:43 AM, Tim Chase > wrote: >> Significant whitespace? Not usually simple (just stuck touching a >> project where someone committed with tons of trailing whitespaces. >> grumble), so strip 'em off as if they're an e

Re: QUEST: does HACKING make FOR loop quicker.

2015-08-06 Thread Chris Angelico
On Thu, Aug 6, 2015 at 4:46 PM, Steven D'Aprano wrote: > At least the question isn't off-topic here. I just wish I understood what > part of my answer doesn't satisfy. Despite John Doe emailing me off list > four times, I still don't know what he actually wants. Congratulations, you scored one mo

Re: Installation Successful, but pythonw and idle doesn't function

2015-08-06 Thread Thomas 'PointedEars' Lahn
Terry Reedy wrote: > On 8/5/2015 6:09 PM, Thomas 'PointedEars' Lahn wrote: >> Rick Smith wrote: >>> I also attempted to run "idle", with the following results: >>> >>> C: >> \Users\judy\AppData\Local\Programs\Python\Python35-32\Lib\idlelib>idle.py >>> ** IDLE can't import Tkinter. >>>