SOLVED: passing lists

2005-03-03 Thread Earl Eiland
It turns out that the function call was passing arguments in a different order than they were being received. Thanks, everyone, for your help. earl -- http://mail.python.org/mailman/listinfo/python-list

Re: passing lists

2005-03-03 Thread Steve Holden
Earl Eiland wrote: This message contains the responses to two previous messages: [...] In response to Steve H., the traceback is Traceback (most recent call last): File "../Devel_2.py", line 125, in ? Inbound_Results = Parser.Sort(Inb_sequence, "Inbound-dump-"+Run_ID+"-Dropped .dmp", "Inboun

Re: passing lists

2005-03-03 Thread Kent Johnson
Earl Eiland wrote: This message contains the responses to two previous messages: In response to Steven B.,the statements Raw_packet_queue = enqueue(..., Raw_packet_queue, ...) print 'Sort 1 Raw_packet_queue is', Raw_packet_queue produce the output Sort 1 Raw_packet_queue is [[(, '

Re: passing lists

2005-03-03 Thread Earl Eiland
This message contains the responses to two previous messages: In response to Steven B.,the statements Raw_packet_queue = enqueue(..., Raw_packet_queue, ...) print 'Sort 1 Raw_packet_queue is', Raw_packet_queue produce the output Sort 1 Raw_packet_queue is [[(, '\x00\x00\xd1\xf0\x

Re: passing lists

2005-03-02 Thread Steve Holden
Earl Eiland wrote: def Match(..., Raw_packet_queue, ...): ... print 'in Match, Raw_Packet_queue is', Raw_packet_queue # this returns 'Reader object at 0xaaa' ... return [Last_Passed, Last_Dropped, Raw_packet_queue] # this causes 'unsubscriptable object'error message

Re: passing lists

2005-03-02 Thread Steven Bethard
Earl Eiland wrote: def Match(..., Raw_packet_queue, ...): ... print 'in Match, Raw_Packet_queue is', Raw_packet_queue # this returns 'Reader object at 0xaaa' ... return [Last_Passed, Last_Dropped, Raw_packet_queue] # this causes 'unsubscriptable object'error message

Re: passing lists

2005-03-02 Thread Earl Eiland
def Match(..., Raw_packet_queue, ...): ... print 'in Match, Raw_Packet_queue is', Raw_packet_queue # this returns 'Reader object at 0xaaa' ... return [Last_Passed, Last_Dropped, Raw_packet_queue] # this causes 'unsubscriptable object'error message #*

Re: passing lists

2005-03-02 Thread Bill Mill
Earl, Please post the smallest snippet of code you can which illustrates your problem. No list is an unsubscriptable object, so you seem to be passing something that is not a list to your function. As it stands, you don't give enough information to give an actual answer. Peace Bill Mill bill.mil

passing lists

2005-03-02 Thread Earl Eiland
I have a program in which I'm passing a list to functions. When I reference an element in a function to which it is passed, I get the error message "unsubscriptable object". When printing the list contents in that same function, I get "xxx is ". How do I pass a list? Earl Eiland -- http://mai