Re: How to print the name of a list?

2005-08-22 Thread oriana . falco
Wow, thanks.that's a neat little functionI'll still check out the dictionary stuff. For now, this helps a lot though... THANKS!!! -- http://mail.python.org/mailman/listinfo/python-list

How to print the name of a list?

2005-08-22 Thread oriana . falco
Hi! I was wondering what can I do to print the name of a list that is inside a list. For example: exported = ['123','456'] imported = ['789','012'] client1 = ['cl1b','cl1a'] client2 = ['cl2a','cl2b'] host = ['imported','exported'] client = ['client1','client2'] list = ['host', 'client'] My g

text strings to binary...

2005-05-03 Thread oriana . falco
Hi, I've been working with Python for a bit now but I just came accross a problem and I'm not sure how to approach it. I'd like to convert a text string into binary data format. I though I'd use the struct module and the pack function but I can't get it to work. I'm using Python 2.3.3 in Windows X