Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #57672
| Date | 2013-10-26 23:59 +0200 |
|---|---|
| From | Johannes Findeisen <mailman@hanez.org> |
| Subject | Re: array/list of sockets |
| References | <f31c18ac-ef3b-42b9-90cd-c0ef4bd80c06@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1617.1382825211.18130.python-list@python.org> (permalink) |
Hi, On Sat, 26 Oct 2013 14:41:15 -0700 (PDT) theelder777@ wrote: > Hello all, I am kind of new to python. I am currently trying to make and use a list/array of sockets in a program. So I have declared an array as follows: > myCSocks = ['CSock1', 'CSock2', 'CSock3', 'CSock4', 'CSock5'] You actually have added strings to your list. this 'is_a_string. You need to add the objcts to the list. E.g.: myCSocks = [CSock1, CSock2, CSock3, CSock4, CSock5] Hope this helps. Regards, Johannes
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
array/list of sockets theelder777@gmail.com - 2013-10-26 14:41 -0700
Re: array/list of sockets Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-26 23:01 +0100
Re: array/list of sockets Johannes Findeisen <mailman@hanez.org> - 2013-10-26 23:59 +0200
Re: array/list of sockets theelder777@gmail.com - 2013-10-26 15:15 -0700
Re: array/list of sockets Chris Angelico <rosuav@gmail.com> - 2013-10-27 09:31 +1100
Re: array/list of sockets Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-26 23:33 +0100
Re: array/list of sockets theelder777@gmail.com - 2013-10-26 15:42 -0700
Re: array/list of sockets Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-27 00:03 +0100
Re: array/list of sockets theelder777@gmail.com - 2013-10-26 16:17 -0700
Re: array/list of sockets mm0fmf <none@mailinator.com> - 2013-10-27 00:26 +0100
Re: array/list of sockets Chris Angelico <rosuav@gmail.com> - 2013-10-27 10:27 +1100
Re: array/list of sockets Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-27 00:36 +0100
Re: array/list of sockets theelder777@gmail.com - 2013-10-26 16:56 -0700
Re: array/list of sockets Chris Angelico <rosuav@gmail.com> - 2013-10-27 11:05 +1100
Re: array/list of sockets rurpy@yahoo.com - 2013-10-26 21:29 -0700
Re: array/list of sockets rusi <rustompmody@gmail.com> - 2013-10-27 01:53 -0700
csiph-web