Greetings,I have been using Xemacs 21.4 Patch 13 on Windows XP with Python 2.4.2 (final). Whenever I try to run a script inside the xemacs window using: C-c C-c I get the following: Opening output file: Invalid argument, C:\Documents and Settings\jkat\Local Settings\Temp;C:\Devel\emacsk2AS2xand of
kevin parks wrote:
> so let's say i have a script called foo.py.
> foo.py uses some things from the random module and therefore has
>
> import random
> import kp
> import sys
> import time
>
> etc. & co. in it
>
> but foo.py also imports a module kp which also
> happens to import random.
>
> S
hey guys!
I am trying to learn a bit of python, and thought it would be a challenge to
make a script that reads a text file and returns all the instances of a word I
specify. Basically a find and then a list of all the finds.
I am using a text file with some random words in it to test it out on
On Mar 8, 2006, at 7:09 PM, Bob Gailer wrote:
> kevin parks wrote:
>> i have a module called foo.py
>>
>> foo.py imports random
>>
>> kp.py imports foo.py ... but in kp.py i also need to use stuff from
>> random...
>>
>> so kp.py also imports random
>>
>> but i prolly shouldn't do that right
kevin parks wrote:
> i have a module called foo.py
>
> foo.py imports random
>
> kp.py imports foo.py ... but in kp.py i also need to use stuff from
> random...
>
> so kp.py also imports random
>
> but i prolly shouldn't do that right?
>
Wrong.
> Cause now, haven't i needlessly copied the s
On 3/8/06, Christopher Spears <[EMAIL PROTECTED]> wrote:
I copied this program from Learning Python and got itto work on Windows XP:import sys, globprint sys.argv[1:]sys.argv = [item for arg in sys.argv for item inglob.glob(arg)]print sys.argv[1:]
What the program does is first print the glob and t
Hi Victor,
Meta notes: if you're replying to a message, please make sure that message
is relevant to what you're asking. You just replied to the digest and
included its whole contents back at the list, which is not useful. In
this particular case, it makes more sense to send a new message to t
Please use meangingful subject lines. I've changed this one.
>I need help to connect to db on Linux machine.
> When I do it manually -all right, try to execute script does not work.
I'm not quite sure what you expect here but...
> My script is simple:
> --
> If the trading program is in java or perl, can I just tap into the raw
> data that trading program is recieving through the modem without
> interfering with the trading program's own information stream?
Assuming it turns into IP data at some satage then you can get several
programs - some are
i have a module called foo.py
foo.py imports random
kp.py imports foo.py ... but in kp.py i also need to use stuff from
random...
so kp.py also imports random
but i prolly shouldn't do that right?
Cause now, haven't i needlessly copied the same
names/attributes/methods/functions to 2 nam
I need help to connect to db on Linux machine.
When I do it manually -all right, try to execute script does not work.
My script is simple:
---
def Connect3():
#arg=os.system('sql.py --prompt qa2:adsdb
inbl27,inbl27,inbl27:root:adsgoogle:qa2ads
Say I want to monitor the data that comes through
my modem when I'm running a trading platform (like for stocks) so I can send an
alert when a certain condition has been met like the price of a stock.
If the trading program is in java or perl, can I
just tap into the raw data that tradin
> Hello, I would like to write a python script that communicates with
> a PLC (programmable logic controller)
Assuming your PLC is on a development board on a PC then it might
be possible using the serial module interface.
Otherwise you probably need to wrap the C API into a Python API
using so
> If it connects to the parallel port there is
> http://pyserial.sourceforge.net/pyparallel.html
>
> or for Windows there is winioport:
> http://www.geocities.com/dinceraydin/python/indexeng.html
Ooh. I didn't know about these. Thanks for the pointers Kent.
Alan G.
__
>> Some languages, such as COBOL and some BASICs etc support
>> random access files, unfortunately Python doesn't
> You then go on to mention file.seek(). I thought that seek() provided
> "random access", ie. to seek to anywhere at random in a file. Can you
> clarify what you mean by "random acce
On Wed, 8 Mar 2006, andrew clarke wrote:
> On Tue, Mar 07, 2006 at 11:18:27AM -, Alan Gauld wrote:
>
> > > I was wondering if it is possible to write a string to a specific line
> > > in a file without reading in the whole file in as the below.
> >
> > Some languages, such as COBOL and some
On Wed, 8 Mar 2006, Christopher Spears wrote:
> I copied this program from Learning Python and got it to work on Windows
> XP:
>
> import sys, glob
> print sys.argv[1:]
> sys.argv = [item for arg in sys.argv for item in
> glob.glob(arg)]
> print sys.argv[1:]
>
> The key to the script is the list
Christopher Spears wrote:
> I copied this program from Learning Python and got it
> to work on Windows XP:
>
> import sys, glob
> print sys.argv[1:]
> sys.argv = [item for arg in sys.argv for item in
> glob.glob(arg)]
> print sys.argv[1:]
>
> What the program does is first print the glob and then
I copied this program from Learning Python and got it
to work on Windows XP:
import sys, glob
print sys.argv[1:]
sys.argv = [item for arg in sys.argv for item in
glob.glob(arg)]
print sys.argv[1:]
What the program does is first print the glob and then
a list of everything caught by the glob. For
On Tue, Mar 07, 2006 at 11:18:27AM -, Alan Gauld wrote:
> > I was wondering if it is possible to write a string to a specific line
> > in a file without reading in the whole file in as the below.
>
> Some languages, such as COBOL and some BASICs etc support
> random access files, unfortunate
Jeff Peery wrote:
> Hello, I would like to write a python script that communicates with a
> PLC (programmable logic controller) as well as instruments like calipers
> and things. I'm completely in the dark here and not sure where to start
> reading and learning. could someone point me in the rig
21 matches
Mail list logo