Re: Py2Exe produced "binary" shows terminal screen on execution

2005-11-02 Thread Kristina Kudriašova
Hi, 2 Nov 2005 05:31:07 -0800, Thomas W <[EMAIL PROTECTED]>: > I've produced a "binary" version of a python-script using Py2Exe and > when run on WinXP it shows a terminal window for a brief moment then > the window disappears. How can I avoid this? I want the script to run > without being visible

Re: extracting numbers from a file, excluding words

2005-11-01 Thread Kristina Kudriašova
1 Nov 2005 09:19:45 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > Hi, I have a file with this content: > > z zzz z > ... > xxx xx x 34.215 > zzz zz > ... > Hi, I'd suggest doing this: f = file('...') for line in f: if 'xxx xx x' in line