Re: Having trouble setting up an extremely simple server...

2013-11-22 Thread Jean-Michel Pichavant
- Original Message - > Please help! I'm very > new to networking, but I've been using Python for a while now, just > recent;y getting into networking, trying to get things down. Hi, Nothing wrong with diving into the muddy waters of network programming. If you like blue lagoons like me, t

Re: Having trouble setting up an extremely simple server...

2013-11-22 Thread Chris Angelico
On Sat, Nov 23, 2013 at 12:41 AM, Roy Smith wrote: > Also, every semicolon we save can be broken down and res-used as TWO > decimal points! The Americans use the top part, most other places use > the bottom part. It's like a punctuation breeder reactor. One piece > goes in, and two come out. T

Re: Having trouble setting up an extremely simple server...

2013-11-22 Thread Roy Smith
In article <528eec7a$0$29992$c3e8da3$54964...@news.astraweb.com>, Steven D'Aprano wrote: > There are all sorts of things that you can do that don't make your code > "wrong" but do make it difficult to deal with. Why stop with semi-colons? > > import socket; pass; pass; pass; pass; pass; > serv

Re: Having trouble setting up an extremely simple server...

2013-11-21 Thread rusi
On Friday, November 22, 2013 11:02:43 AM UTC+5:30, Steven D'Aprano wrote: > To a fluent Python programmer, that's what semi-colons are like, although > to a lesser degree. An unnecessary distraction and annoyance, rather like > people who talk like this: > "Er, I prefer, um, using the semicolon

Re: Having trouble setting up an extremely simple server...

2013-11-21 Thread Steven D'Aprano
On Thu, 21 Nov 2013 18:36:32 -0800, Cilantro MC wrote: > I prefer using the semicolons... They aren't making my code wrong... I > use other programming languages from time to time, and I'd rather just > always use semicolons, as with the parentheses. There are all sorts of things that you can do

Re: Having trouble setting up an extremely simple server...

2013-11-21 Thread Chris Angelico
On Fri, Nov 22, 2013 at 3:02 PM, Gregory Ewing wrote: > Cilantro MC wrote: >> >> I prefer using the semicolons... They aren't making my code wrong... I use >> other programming languages from time to time, and I'd rather just always >> use >> semicolons, as with the parentheses. > > > It's your ch

Re: Having trouble setting up an extremely simple server...

2013-11-21 Thread Gregory Ewing
Cilantro MC wrote: I prefer using the semicolons... They aren't making my code wrong... I use other programming languages from time to time, and I'd rather just always use semicolons, as with the parentheses. It's your choice, but just be aware that other Python programmers reading your code wi

Re: Having trouble setting up an extremely simple server...

2013-11-21 Thread Ned Batchelder
On Thursday, November 21, 2013 9:36:32 PM UTC-5, Cilantro MC wrote: > On Thursday, November 21, 2013 9:33:13 PM UTC-5, Roy Smith wrote: > > In article <9e773107-5a6c-486b-bef2-186101d8f...@googlegroups.com>, > > cilantr...@gmail.com wrote: > > > > > I'm attempting to set up an extremely simple se

Re: Having trouble setting up an extremely simple server...

2013-11-21 Thread Roy Smith
In article , Cilantro MC wrote: > > First thing, get rid of all those semicolons. This is Python you're > > > > writing, not C++. Likewise, the extra parens in your while statements. > > > > > > > > Your problem is that you're doing the accept() inside your main loop on > > > > the serv

Re: Having trouble setting up an extremely simple server...

2013-11-21 Thread Cilantro MC
On Thursday, November 21, 2013 9:33:13 PM UTC-5, Roy Smith wrote: > In article <9e773107-5a6c-486b-bef2-186101d8f...@googlegroups.com>, > > cilantr...@gmail.com wrote: > > > > > I'm attempting to set up an extremely simple server that receives a string, > > > and returns a string. However, I

Re: Having trouble setting up an extremely simple server...

2013-11-21 Thread Roy Smith
In article <9e773107-5a6c-486b-bef2-186101d8f...@googlegroups.com>, cilantr...@gmail.com wrote: > I'm attempting to set up an extremely simple server that receives a string, > and returns a string. However, I have 2 problems. I'm able to receive the > string from the client fine, but it only wi

Having trouble setting up an extremely simple server...

2013-11-21 Thread cilantromc
I'm attempting to set up an extremely simple server that receives a string, and returns a string. However, I have 2 problems. I'm able to receive the string from the client fine, but it only will receive it once. After I send another string from the client, it doesn't come up on the server... Al