Re: except block isn't catching exception

2015-08-07 Thread Ian Kelly
On Fri, Aug 7, 2015 at 8:44 PM, Chris Angelico wrote: > The exception isn't happening inside sock.accept(), as I explained. So > you can't catch it there. Where does the exception happen then? Your explanation only covered why the blocking call cannot be interrupted by it, not why the exception i

Re: Linux users: please run gui tests

2015-08-07 Thread Laura Creighton
In a message of Fri, 07 Aug 2015 21:25:21 -0400, Terry Reedy writes: >was about this very test failure. The failure only occurred with tk >8.4. What tk version do you have? (Easily found, for instance, in Idle >-> Help -> About Idle. (python3 -m idlelib should start idle). > >-- >Terry Jan Re

Re: Linux users: please run gui tests

2015-08-07 Thread Laura Creighton
I forgot to mention that I am running OpenBox as a window manager, so if this is a problem with ubuntu Unity, then so far we don't seem to have any Unity users running these tests. Laura -- https://mail.python.org/mailman/listinfo/python-list

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

2015-08-07 Thread Chris Angelico
On Sat, Aug 8, 2015 at 1:45 PM, Akira Li <4kir4...@gmail.com> wrote: > then a workaround that works out of the box is to run: > > T:\> py -m idlelib -r print_unicode.py > > that can display Unicode (BMP) output in IDLE. But sadly, *only* the BMP. That's enough for most modern languages, but it's

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

2015-08-07 Thread Larry Hudson via Python-list
On 08/05/2015 06:06 PM, Terry Reedy wrote: [snip] 0. Classes where Idle is used: Where? Level? None Idle users: 1. Are you grade school (1=12)? undergraduate (Freshman-Senior)? post-graduate (from whatever)? Some college, but didn't complete. Never had any CS or programming courses. 2. A

Re: How to use regex (re)

2015-08-07 Thread PK Khatri
On Friday, August 7, 2015 at 9:48:35 AM UTC-7, Peter Pearson wrote: > On Thu, 6 Aug 2015 13:06:36 -0700 (PDT), PK Khatri wrote: > > 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" > >

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

2015-08-07 Thread Akira Li
Terry Reedy writes: > 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 appropriate >

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

2015-08-07 Thread Paul Rubin
tjohnson writes: > Currently the interpreter is shown in a separate floating window. If > it was dockable, it could also be placed in the same window as the > text editor but separated by a splitter. Dockable would be nice but the split window is ok with me. What I wish is that Control-N in the

Re: except block isn't catching exception

2015-08-07 Thread Chris Angelico
On Sat, Aug 8, 2015 at 3:16 AM, wrote: > > Though I still doesn't understand why the exception isn't caught when I'm > explicitly trying to catch it. I even tried changing the try/except block to > this: > > try: > connection, _ = sock.accept() > except KeyboardInterrupt: > print 'Keyb

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

2015-08-07 Thread tjohnson
On 8/7/2015 9:10 PM, Terry Reedy wrote: On 8/7/2015 7:29 AM, tjohnson wrote: On 8/6/2015 7:31 PM, Terry Reedy wrote: 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

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

2015-08-07 Thread Terry Reedy
On 8/6/2015 9:14 PM, Dennis Lee Bieber wrote: On Wed, 5 Aug 2015 21:06:31 -0400, Terry Reedy declaimed the following: 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 Idl

Re: Linux users: please run gui tests

2015-08-07 Thread Terry Reedy
On 8/7/2015 1:01 PM, Laura Creighton wrote: == FAIL: test_get (tkinter.test.test_tkinter.test_variables.TestBooleanVar) -- Traceback (most recent call last):

Re: Linux users: please run gui tests

2015-08-07 Thread Terry Reedy
On 8/6/2015 10:07 PM, 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, bu

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

2015-08-07 Thread Terry Reedy
On 8/7/2015 7:29 AM, tjohnson wrote: On 8/6/2015 7:31 PM, Terry Reedy wrote: 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 m

Re: Linux users: please run gui tests

2015-08-07 Thread Terry Reedy
On 8/7/2015 1:01 PM, Laura Creighton wrote: In a message of Fri, 07 Aug 2015 17:34:54 +0200, Peter Otten writes: Run $ python3 -m test -ugui -v test_tk (That way the unittest framework will see the -v option) Aha, I didn't understand that. Thank you. Note that there are lines like # poss

Re: Linux users: please run gui tests

2015-08-07 Thread Terry Reedy
On 8/6/2015 10:18 PM, Ben Finney wrote: 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

Re: Linux users: please run gui tests

2015-08-07 Thread Terry Reedy
On 8/6/2015 11:46 PM, Grant Edwards wrote: In both cases, some small, yellow windows flash briefly on the screen. I should have warned about this ;-). Gui tests mean 'actually flash stuff on screen', which is why they do not get run. -- Terry Jan Reedy -- https://mail.python.org/mailman

Re: Python speed

2015-08-07 Thread Grant Edwards
On 2015-08-07, rogerh...@gmail.com wrote: > Can anyone compare PyNum calculation speed to Fortran? > > This is for a number crunching program working with large files. Well I can tell you how the numerical analysis and data visualization programs _I_ use to write would compare to Fortran: The Py

Re: Which Python implementation am I using?

2015-08-07 Thread Laura Creighton
In a message of Sat, 08 Aug 2015 03:27:04 +1000, "Steven D'Aprano" writes: > >def jython(): >t = platform.java_ver() >return (t and t[0]) or ('java' in sys.platform.lower()) Around here if we cannot find platform.python_implemention() we just look for sys.platform.startswith('j

Re: Python speed

2015-08-07 Thread Laura Creighton
In a message of Fri, 07 Aug 2015 23:26:46 +0200, Christian Gollwitzer writes: >Am 07.08.2015 um 19:17 schrieb Laura Creighton: >> you >> really only are doing crunching, and your crunching is done >> in loops which run for a significant amount of time -- then PyPy >> is generally faster than Fortra

Re: Python speed

2015-08-07 Thread Christian Gollwitzer
Am 07.08.2015 um 19:17 schrieb Laura Creighton: you really only are doing crunching, and your crunching is done in loops which run for a significant amount of time -- then PyPy is generally faster than Fortran. PyPy faster than Fortran in a tight number-crunching loop? Sorry I find this very h

Re: Linux users: please run gui tests

2015-08-07 Thread David Bolen
Terry Reedy writes: > and report here python version, linux system, and result. > Alteration of environment and locale is a known issue, skip that. Using source builds on my slave (bolen-ubuntu): Linux buildbot-ubuntu 4.1.0-x86_64-linode59 #1 SMP Mon Jun 22 10:39:23 EDT 2015 x86_64 x86_64 x86_

Re: Linux users: please run gui tests

2015-08-07 Thread Laura Creighton
In a message of Fri, 07 Aug 2015 21:13:02 +0200, Peter Otten writes: >test_set() was introduced in a bugfix > >http://bugs.python.org/issue15133 >https://hg.python.org/cpython/rev/117f45749359/ > >that I don't have on my machine (up-to-date Linux Mint 17). When I download > >https://hg.python.org/

Re: Python speed

2015-08-07 Thread rogerh906
On Friday, August 7, 2015 at 8:08:37 AM UTC-6, roge...@gmail.com wrote: > Can anyone compare PyNum calculation speed to Fortran? > > This is for a number crunching program working with large files. > > Roger Thanks for answering. This will help a lot. Roger -- https://mail.python.org/mailman/l

Re: Linux users: please run gui tests

2015-08-07 Thread Peter Otten
Laura Creighton wrote: > In a message of Fri, 07 Aug 2015 17:34:54 +0200, Peter Otten writes: >>Run >> >>$ python3 -m test -ugui -v test_tk >> >>(That way the unittest framework will see the -v option) > > Aha, I didn't understand that. Thank you. > >>Note that there are lines like >> >># possi

Urgent requirement for Python Developer

2015-08-07 Thread appthought1
Hi, Hope you are doing well !!! My name is Siva and I'm a recruiter at TheAppliedthought , a global staffing and IT consulting company. Please find the below job description which may suits any of your consultants who are available in market or who are looking for change, please send me late

Re: Which Python implementation am I using?

2015-08-07 Thread Ned Batchelder
On Friday, August 7, 2015 at 1:27:17 PM UTC-4, Steven D'Aprano wrote: > Is this the best way to detect Jython and IronPython when > python_implementation isn't available? > > How about PyPy, Stackless, or others? > I've been told that the canonical test for PyPy is: '__pypy__' in sys.builti

Which Python implementation am I using?

2015-08-07 Thread Steven D'Aprano
I have a need to determine which Python implementation is running. Starting from Python 2.6, we have platform.python_implemention() which (at least in principle) will do the right thing. However, for my sins, I also need to support 2.4 and 2.5. I have come up with this function to determine the P

Re: except block isn't catching exception

2015-08-07 Thread sohcahtoa82
On Thursday, August 6, 2015 at 5:46:19 PM UTC-7, Chris Angelico wrote: > 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 i

Re: Python speed

2015-08-07 Thread Laura Creighton
In a message of Fri, 07 Aug 2015 09:57:26 -0700, beliavsky--- via Python-list w rites: >On Friday, August 7, 2015 at 10:08:37 AM UTC-4, roge...@gmail.com wrote: >> Can anyone compare PyNum calculation speed to Fortran? >> >> This is for a number crunching program working with large files. >> >> R

Re: Python speed

2015-08-07 Thread beliavsky--- via Python-list
On Friday, August 7, 2015 at 10:08:37 AM UTC-4, roge...@gmail.com wrote: > Can anyone compare PyNum calculation speed to Fortran? > > This is for a number crunching program working with large files. > > Roger Did you mean NumPy? It depends on the program. Here are two posts that compared speeds

Re: Linux users: please run gui tests

2015-08-07 Thread Laura Creighton
In a message of Fri, 07 Aug 2015 17:34:54 +0200, Peter Otten writes: >Run > >$ python3 -m test -ugui -v test_tk > >(That way the unittest framework will see the -v option) Aha, I didn't understand that. Thank you. >Note that there are lines like > ># possible namespace for /home/lac/src/accounti

Re: How to use regex (re)

2015-08-07 Thread Peter Pearson
On Thu, 6 Aug 2015 13:06:36 -0700 (PDT), PK Khatri wrote: > 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,

Python Developer- Houston, TX

2015-08-07 Thread malladisivaramakrishna88
Hi, Hope you are doing well !!! My name is Siva and I'm a recruiter at TheAppliedthought , a global staffing and IT consulting company. Please find the below job description which may suits any of your consultants who are available in market or who are looking for change, please send me late

Re: Python Scheduling

2015-08-07 Thread Emile van Sebille
On 8/7/2015 7:17 AM, Laura Creighton wrote: In a message of Fri, 07 Aug 2015 06:48:32 -0700, Emile van Sebille writes: On 8/6/2015 11:06 AM, sairam kumar wrote: Hi Experts, I am Automating some repetitive works through Sikuli and Python scripting languages.I have multiple workflows.i nee

Re: Linux users: please run gui tests

2015-08-07 Thread Peter Otten
Laura Creighton wrote: > In a message of Fri, 07 Aug 2015 15:06:41 +0200, Peter Otten writes: >>$ touch test.py >>$ python -c import\ test >>$ rm test.py >>$ python3 -m test -ugui test_tk >>/usr/bin/python3: bad magic number in 'test': b'\x03\xf3\r\n' >> >>>From that I'd conclude that your python3

Re: Python Scheduling

2015-08-07 Thread Laura Creighton
In a message of Fri, 07 Aug 2015 06:48:32 -0700, Emile van Sebille writes: >On 8/6/2015 11:06 AM, sairam kumar wrote: >> Hi Experts, >> >> I am Automating some repetitive works through Sikuli and Python >> scripting languages.I have multiple workflows.i need to schedule this >> script for ever

Python speed

2015-08-07 Thread rogerh906
Can anyone compare PyNum calculation speed to Fortran? This is for a number crunching program working with large files. Roger -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Scheduling

2015-08-07 Thread Emile van Sebille
On 8/6/2015 11:06 AM, sairam kumar wrote: Hi Experts, I am Automating some repetitive works through Sikuli and Python scripting languages.I have multiple workflows.i need to schedule this script for every two hours.can anyone guide me how to schedule the scripts for every two hours. is the

Re: Linux users: please run gui tests

2015-08-07 Thread Laura Creighton
In a message of Fri, 07 Aug 2015 15:06:41 +0200, Peter Otten writes: >$ touch test.py >$ python -c import\ test >$ rm test.py >$ python3 -m test -ugui test_tk >/usr/bin/python3: bad magic number in 'test': b'\x03\xf3\r\n' > >>From that I'd conclude that your python3 sees a leftover python2 pyc inst

Re: GOTCHA with list comprehension

2015-08-07 Thread Saran Ahluwalia
@ChrisA You, my friend, certainly put the nail in the coffin! Sent from my iPhone > On Aug 5, 2015, at 5:52 AM, Chris Angelico wrote: > >> On Wed, Aug 5, 2015 at 7:01 PM, Marko Rauhamaa wrote: >> Chris Angelico : >> >>> You can chain 'for' and 'if' clauses as much as you like, and they >>> beh

Re: Linux users: please run gui tests

2015-08-07 Thread Peter Otten
Laura Creighton wrote: > In a message of Fri, 07 Aug 2015 19:51:51 +1000, Chris Angelico writes: >>On Fri, Aug 7, 2015 at 7:15 PM, Peter Otten <__pete...@web.de> wrote: >>> By default Debian doesn't install the test suite -- that's why you >>> cannot run it ;) >>> >>> Install it with >>> >>> $ sud

Re: Linux users: please run gui tests

2015-08-07 Thread Cecil Westerhof
On Friday 7 Aug 2015 12:59 CEST, Cecil Westerhof wrote: > On Friday 7 Aug 2015 11:15 CEST, Peter Otten wrote: > >> Cecil Westerhof wrote: >> python3 --version python3 -m test -ugui test_tk test_ttk_guionly test_idle This gives: Python 3.4.1 [1/3] test_tk [2/3]

Re: Linux users: please run gui tests

2015-08-07 Thread Laura Creighton
In a message of Fri, 07 Aug 2015 19:51:51 +1000, Chris Angelico writes: >On Fri, Aug 7, 2015 at 7:15 PM, Peter Otten <__pete...@web.de> wrote: >> By default Debian doesn't install the test suite -- that's why you cannot >> run it ;) >> >> Install it with >> >> $ sudo apt-get install libpython3.4-te

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

2015-08-07 Thread tjohnson
On 8/6/2015 7:31 PM, Terry Reedy wrote: 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

Re: Linux users: please run gui tests

2015-08-07 Thread Cecil Westerhof
On Friday 7 Aug 2015 11:15 CEST, Peter Otten wrote: > Cecil Westerhof wrote: > >>> python3 --version >>> python3 -m test -ugui test_tk test_ttk_guionly test_idle >>> >>> This gives: >>> Python 3.4.1 >>> [1/3] test_tk >>> [2/3] test_ttk_guionly >>> [3/3] test_idle >>> All 3 tests OK. >>> >>> This

Re: Python Scheduling

2015-08-07 Thread Suneel Mohan SG
Sairam, What's your OS? Windows 7 does have a Task Scheduler. Go to Control Panel -> Administrative Tools -> Task Scheduler. Hope this helps. Br, Suneel. On Friday, August 7, 2015 at 2:27:03 PM UTC+5:30, sairam kumar wrote: > Hi Experts, > > >     I am Automating some repetitive works throu

Re: Linux users: please run gui tests

2015-08-07 Thread Chris Angelico
On Fri, Aug 7, 2015 at 7:15 PM, Peter Otten <__pete...@web.de> wrote: > By default Debian doesn't install the test suite -- that's why you cannot > run it ;) > > Install it with > > $ sudo apt-get install libpython3.4-testsuite > > and then try again. Which makes it work fine on my system. ChrisA

Re: Linux users: please run gui tests

2015-08-07 Thread Peter Otten
Cecil Westerhof wrote: >> python3 --version >> python3 -m test -ugui test_tk test_ttk_guionly test_idle >> >> This gives: >> Python 3.4.1 >> [1/3] test_tk >> [2/3] test_ttk_guionly >> [3/3] test_idle >> All 3 tests OK. >> >> This was on openSUSE 13.2. >> >> I also tried to run it on Debian, but th

Python Scheduling

2015-08-07 Thread sairam kumar
Hi Experts, I am Automating some repetitive works through Sikuli and Python scripting languages.I have multiple workflows.i need to schedule this script for every two hours.can anyone guide me how to schedule the scripts for every two hours. is there any way to schedule the python programming

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

2015-08-07 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: Uninstall

2015-08-07 Thread Bill
Thank you. I downloaded it from Python.org. I didn't know that Python came with the Mac OS. I have a better understanding of all this now and no longer feel that I need to uninstall it has I can chose either version. Thank you again. > On Aug 6, 2015, at 12:50 PM, Laura Creighton wrote: >

Re: Linux users: please run gui tests

2015-08-07 Thread Peter Otten
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, but not importa

Re: Linux users: please run gui tests

2015-08-07 Thread Cecil Westerhof
On Friday 7 Aug 2015 09:53 CEST, Cecil Westerhof wrote: > On Friday 7 Aug 2015 04:07 CEST, 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. He

Re: Linux users: please run gui tests

2015-08-07 Thread Cecil Westerhof
On Friday 7 Aug 2015 04:07 CEST, 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

Re: Getting and/or setting network interface parameters on OS X

2015-08-07 Thread Chris Angelico
On Fri, Aug 7, 2015 at 5:10 PM, Shekhar Chandra wrote: > Looking for a Python 2.7 module through which I can fetch the below details > for all available network interfaces on a OS X device : > > Gateways > DNS server > DHCP server > WINS server > IP address > DNS suffix > > I also want to set the

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

2015-08-07 Thread Friedrich Rentsch
On 08/06/2015 03:21 AM, Rustom Mody wrote: On Thursday, August 6, 2015 at 6:36:56 AM UTC+5:30, 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, p

Getting and/or setting network interface parameters on OS X

2015-08-07 Thread Shekhar Chandra
Looking for a Python 2.7 module through which I can fetch the below details for all available network interfaces on a OS X device : Gateways DNS server DHCP server WINS server IP address DNS suffix I also want to set them for a specific interface. -- https://mail.python.org/mailman/listinfo/pyt

Re: Linux users: please run gui tests

2015-08-07 Thread Mark Lawrence
On 07/08/2015 04:46, Grant Edwards wrote: 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