[Tutor] input/output redirection

2005-09-08 Thread Lane, Frank L
Title: Message Hi List,   I wanted to take the stdout of a process and redirect it to stdin of a python script, then after playing with the input in the script I want to send it back to stdout (all of this to be done while the original process runs happily along).  I can't seem to figure ou

[Tutor] General Information Request

2005-09-06 Thread Lane, Frank L
Title: Message Hi List,   I wanted to write to ask about help reading the Python documentation.   I found a really neat technique on the web using a built in called "apply", with it you can do struct.pack() using an array for the values.  I can't find the technique in the release documentat

[Tutor] Is there an easy way to combine dictionaries?

2005-09-06 Thread Lane, Frank L
Title: Message Hi List,   Is there an easy way to combine dictionaries?   e.g.   a = {} b = {}   a = {'a':'a', 'b':'b', 'c':'c'} b = {'1':1, '2':2, '3':3} c = a + b # doesn't seem to work   desired: c = {'a':'a', 'b':'b', 'c':'c', '1':1, '2':2, '3':3}   Thanks, Frank ___

[Tutor] doh!

2005-09-01 Thread Lane, Frank L
Hi,   My threading question was not valid, and I have to apologize for it. My screw up was to put the open and close parentheses after my procedure name in the invocation (i.e. i wrote threading.Thread(target=modname.funcname(),name=name)).   I also learned that even if the tabs and spa

[Tutor] Will someone please tell me how to read this?

2005-08-22 Thread Lane, Frank L
Hi List,   I cut and pasted a dump from recvfrom below.  I can’t read it and don’t where to look in the documentation to figure out how to read this.   Is there a name for this type of number?  I’m assuming the \x means it’s hex, but then you have things like \x00h, and \x007p^.   Any

[Tutor] FW: How do you turn something into a number?

2005-08-22 Thread Lane, Frank L
#x27;m going to love python! :-) Thanks, Frank -Original Message- From: Danny Yoo [mailto:[EMAIL PROTECTED] Sent: Friday, August 19, 2005 5:54 PM To: Lane, Frank L Cc: Tutor Subject: Re: [Tutor] How do you turn something into a number? > I have what I think is a string from socket

[Tutor] How do you turn something into a number?

2005-08-19 Thread Lane, Frank L
Hello,   Not understanding the proper phraseology for my question I can’t search the faq so here goes:   I have what I think is a string from socket.recvfrom(…).  I want to turn it into numbers so I tried: from socket import * from array import *   data, address  = recvfrom (...stuf