Re: [Tutor] user created lists

2012-04-11 Thread Christian Witts
On 2012/04/12 06:42 AM, john moore wrote: Hello Pyhton World, I'm new at this and was wondering how I create a number of user specified lists? Example: "How many list would you like to create?" User inputs 5 creates five lists, list1 [] list2 [] list3 [] list4 [] list5 [] I can create one wit

Re: [Tutor] write list to columns

2012-04-11 Thread questions anon
Perfect, thank you. Is there a way I could easily/quickly add headings to each column? On Thu, Apr 12, 2012 at 1:03 PM, Puneeth Chaganti wrote: > On Thu, Apr 12, 2012 at 8:01 AM, questions anon > wrote: > > I am trying to simply write a list of values to txt file in one column. > > I would then

[Tutor] user created lists

2012-04-11 Thread john moore
Hello Pyhton World, I'm new at this and was wondering how I create a number of user specified lists? Example: "How many list would you like to create?" User inputs 5 creates five lists, list1 [] list2 [] list3 [] list4 [] list5 [] I can create one with append, but I don't know how to loop it to

Re: [Tutor] write list to columns

2012-04-11 Thread Puneeth Chaganti
On Thu, Apr 12, 2012 at 8:01 AM, questions anon wrote: > I am trying to simply write a list of values to txt file in one column. > I would then like to add another list in a second column. > Somehow they only appear as one long row. > Any feedback will be greatly appreciated. You will need to wri

Re: [Tutor] write list to columns

2012-04-11 Thread शंतनू
On 12-Apr-2012, at 8:01 AM, questions anon wrote: > I am trying to simply write a list of values to txt file in one column. > I would then like to add another list in a second column. > Somehow they only appear as one long row. > Any feedback will be greatly appreciated. > > print "rain max va

[Tutor] write list to columns

2012-04-11 Thread questions anon
I am trying to simply write a list of values to txt file in one column. I would then like to add another list in a second column. Somehow they only appear as one long row. Any feedback will be greatly appreciated. print "rain max values", rmax print "yearmonth", monthyear OutputFolder=r"E:/test_o

Re: [Tutor] python connect() function

2012-04-11 Thread Walter Prins
Hi Pierre, On 11 April 2012 15:49, Pierre Barthelemy wrote: > I have a question about event handling and the use of the connect > function. I have a data object, that contains a series of signals, one > being "new_data_point" . Where does this "connect function" come from and how does it work?

Re: [Tutor] how to build a multiplayer game?

2012-04-11 Thread Alan Gauld
On 11/04/12 14:30, Surya K wrote: Don't you think DNS is required as IP addr may be same for some people in this world.. after all, we only have limited number of combinations. DNS only translates a names IP address into a numeric IP address. It does not create any extra addresses - thats why

Re: [Tutor] how to build a multiplayer game?

2012-04-11 Thread Alan Gauld
On 11/04/12 11:02, Surya K wrote: I have written the basic part of the game. Now I want to make it a multiplayer one. (Its not a web app, a OS application) So, I just wanted to know how do it. Which topics I should refer? Network Programming or Web Programming or Internet Client Programming.

Re: [Tutor] how to build a multiplayer game?

2012-04-11 Thread Chris Fuller
I think you're on the right track with the IRC idea, but start with something simpler. You can find tutorials or working programs using the asynchat module to make a really basic chat client. Then you build a higher level protocol on top of that. It should take care of most of the low level

Re: [Tutor] need help with a script..

2012-04-11 Thread Mark Lawrence
On 11/04/2012 14:50, Khalid Al-Ghamdi wrote: Hi All, I'm using python 3.2 on a windows xp. I wrote the below script and ran it with the hope of returning a list of proctors (list_proc), but when it runs it doesn't call the function convert_proctors() as intended. On the other hand, when i impo

Re: [Tutor] need help with a script..

2012-04-11 Thread Khalid Al-Ghamdi
got it thanks a lot On Wed, Apr 11, 2012 at 4:59 PM, Jerry Hill wrote: > On Wed, Apr 11, 2012 at 9:50 AM, Khalid Al-Ghamdi > wrote: > > Hi All, > > > > I'm using python 3.2 on a windows xp. > > > > I wrote the below script and ran it with the hope of returning a list of > > proctors (list_p

Re: [Tutor] need help with a script..

2012-04-11 Thread Christian Witts
On 2012/04/11 03:50 PM, Khalid Al-Ghamdi wrote: Hi All, I'm using python 3.2 on a windows xp. I wrote the below script and ran it with the hope of returning a list of proctors (list_proc), but when it runs it doesn't call the function convert_proctors() as intended. On the other hand, when i

Re: [Tutor] need help with a script..

2012-04-11 Thread Jerry Hill
On Wed, Apr 11, 2012 at 9:50 AM, Khalid Al-Ghamdi wrote: > Hi All, > > I'm using python 3.2 on a windows xp. > > I wrote the below script and ran it with the hope of returning a list of > proctors (list_proc), but when it runs it  doesn't call the function > convert_proctors() as intended. On the

Re: [Tutor] how to build a multiplayer game?

2012-04-11 Thread Jerry Hill
On Wed, Apr 11, 2012 at 9:30 AM, Surya K wrote: > Well, can we make the program so that user enters his IP, DNS addresses > before starting? You could, sure. That's fine for testing purposes, but most people don't know their own IP addresses. Many people don't have a DNS entry for their home PC

[Tutor] need help with a script..

2012-04-11 Thread Khalid Al-Ghamdi
Hi All, I'm using python 3.2 on a windows xp. I wrote the below script and ran it with the hope of returning a list of proctors (list_proc), but when it runs it doesn't call the function convert_proctors() as intended. On the other hand, when i import the module from the IDLE prompt and call the

[Tutor] python connect() function

2012-04-11 Thread Pierre Barthelemy
Hello, I have a question about event handling and the use of the connect function. I have a data object, that contains a series of signals, one being "new_data_point" . When i want to plot the data, i also connect the "new_data_point" event to the function "analysis_client.update_plot". I therefo

Re: [Tutor] how to build a multiplayer game?

2012-04-11 Thread Surya K
> Date: Wed, 11 Apr 2012 06:42:40 -0400 > From: d...@davea.name > To: sur...@live.com > CC: tutor@python.org > Subject: Re: [Tutor] how to build a multiplayer game? > > On 04/11/2012 06:02 AM, Surya K wrote: > > > > I have written the basic part of the game. Now I want to make it a > > multipl

Re: [Tutor] how to build a multiplayer game?

2012-04-11 Thread Dave Angel
On 04/11/2012 06:02 AM, Surya K wrote: > > I have written the basic part of the game. Now I want to make it a > multiplayer one. (Its not a web app, a OS application) > So, I just wanted to know how do it. > Which topics I should refer? Network Programming or Web Programming or > Internet Client

[Tutor] how to build a multiplayer game?

2012-04-11 Thread Surya K
I have written the basic part of the game. Now I want to make it a multiplayer one. (Its not a web app, a OS application) So, I just wanted to know how do it. Which topics I should refer? Network Programming or Web Programming or Internet Client Programming. (There were the topics mentioned in