Re: python: server is not receiving input from client flask

2021-06-29 Thread Chris Angelico
On Wed, Jun 30, 2021 at 6:21 AM Jerry Thefilmmaker wrote: > @app.route("/check_answer/", methods = ['POST']) > def check_answer(ans): > > > Enter your answer: > > What you're creating here is a route with a placeholder. The check_answer

Re: python: server is not receiving input from client flask

2021-06-29 Thread Jerry Thefilmmaker
On Tuesday, June 29, 2021 at 2:03:58 PM UTC-4, Chris Angelico wrote: > On Wed, Jun 30, 2021 at 3:38 AM Jerry Thefilmmaker > wrote: > > Thanks for taking the time to explained, Chris. Believe me, it helps. It > > had me thinking for a while. So, All the stuff about HTTP makes sense. I've > > be

Re: python: server is not receiving input from client flask

2021-06-29 Thread Chris Angelico
On Wed, Jun 30, 2021 at 3:38 AM Jerry Thefilmmaker wrote: > Thanks for taking the time to explained, Chris. Believe me, it helps. It had > me thinking for a while. So, All the stuff about HTTP makes sense. I've been > studying and trying to wrap my head around the rest of your explanation and

Re: python: server is not receiving input from client flask

2021-06-29 Thread Jerry Thefilmmaker
On Monday, June 28, 2021 at 3:59:54 PM UTC-4, Chris Angelico wrote: > On Tue, Jun 29, 2021 at 5:43 AM Jerry Thefilmmaker > wrote: > > > > Do you mind elaborating a bit more on making one function for any given > > request? > > > > As far as defining a bunch of functions that get called when

Re: python: server is not receiving input from client flask

2021-06-28 Thread Chris Angelico
On Tue, Jun 29, 2021 at 5:43 AM Jerry Thefilmmaker wrote: > > Do you mind elaborating a bit more on making one function for any given > request? > > As far as defining a bunch of functions that get called when particular > requests come in I thought that's what I had going on in my codes. No? >

Re: python: server is not receiving input from client flask

2021-06-28 Thread Jerry Thefilmmaker
On Monday, June 28, 2021 at 2:41:23 PM UTC-4, Chris Angelico wrote: > On Tue, Jun 29, 2021 at 4:36 AM Jerry Thefilmmaker > wrote: > > @app.route("/", methods = ['POST', 'GET']) > > def play(): > > > > @app.route("/", methods = ['POST', 'GET']) > > def check_answer(ans, user): > When you're bu

Re: python: server is not receiving input from client flask

2021-06-28 Thread Chris Angelico
On Tue, Jun 29, 2021 at 4:36 AM Jerry Thefilmmaker wrote: > @app.route("/", methods = ['POST', 'GET']) > def play(): > > @app.route("/", methods = ['POST', 'GET']) > def check_answer(ans, user): When you're building a Flask app, you're defining a bunch of functions that get called when particular

Re: python server socket file transfer

2018-01-10 Thread dieter
bingbong3...@gmail.com writes: > On Wednesday, January 10, 2018 at 9:07:33 AM UTC+2, dieter wrote: >> bingbong3...@gmail.com writes: >> > how much client can i handel whit this code what the amount of client that >> > i can handel >> > the size of the file is 716 kb >> > ... >> > self.sock.send(l

Re: python server socket file transfer

2018-01-10 Thread bingbong3334
On Wednesday, January 10, 2018 at 9:07:33 AM UTC+2, dieter wrote: > bingbong3...@gmail.com writes: > > how much client can i handel whit this code what the amount of client that > > i can handel > > the size of the file is 716 kb > > ... > > self.sock.send(l) > > Please read the documentation for

Re: python server socket file transfer

2018-01-09 Thread dieter
bingbong3...@gmail.com writes: > how much client can i handel whit this code what the amount of client that i > can handel > the size of the file is 716 kb > ... > self.sock.send(l) Please read the documentation for *send* in the "socket" module: it tells you that "send" (in contrast to "sendall"

Re: python server developer

2009-11-21 Thread garabik-news-2005-05
Bobby wrote: > Hello, > We are looking for Python server developer > location : Hyderabad > Experience : 3 years . > Send me your updated resume with availability for Telephonic interview Hyderabad, India or Hyderabad, Pakistan? (no, I am not going to apply in either case, even if I think I do qu

Re: Python server locks up

2009-09-14 Thread M.-A. Lemburg
Zac Burns wrote: > I have a server running Python 2.6x64 which after running for about a > month decides to lock up and become unresponsive to all threads for > several minutes at a time. While it is locked up Python proceeds to > consume large amounts of continually increasing memory. > > The bas

Re: Python server locks up

2009-09-11 Thread Dave Angel
Paul Rubin wrote: sturlamolden writes: Python uses reference counting, not a generational GC like Java. A Python object is destroyed when the refcount drops to 0. The GC only collects cyclic references. If you create none, there are no GC delays (you can in fact safely turn the GC off). Pyt

Re: Python server locks up

2009-09-11 Thread Terry Reedy
sturlamolden wrote: On 9 Sep, 22:28, Zac Burns wrote: Theories: Python is resizing the large dictionary Python is garbage collecting Python uses reference counting, not a generational GC like Java. The CPython implementation, that is. Jython, built on top of Java, uses Java's GC. D

Re: Python server locks up

2009-09-11 Thread Paul Rubin
sturlamolden writes: > Python uses reference counting, not a generational GC like Java. A > Python object is destroyed when the refcount drops to 0. The GC only > collects cyclic references. If you create none, there are no GC delays > (you can in fact safely turn the GC off). Python does not sha

Re: Python server locks up

2009-09-11 Thread sturlamolden
On 9 Sep, 22:28, Zac Burns wrote: > Theories: >    Python is resizing the large dictionary >    Python is garbage collecting Python uses reference counting, not a generational GC like Java. A Python object is destroyed when the refcount drops to 0. The GC only collects cyclic references. If you

Re: Python server locks up

2009-09-10 Thread Zac Burns
On Wed, Sep 9, 2009 at 6:52 PM, David Stanek wrote: > On Wed, Sep 9, 2009 at 4:28 PM, Zac Burns wrote: >> >> How would you suggest to figure out what is the problem? >> > > I don't think you said your OS so I'll assume Linux. > > Sometimes it is more noise than value, but stracing the process may

Re: Python server locks up

2009-09-09 Thread David Stanek
On Wed, Sep 9, 2009 at 4:28 PM, Zac Burns wrote: > > How would you suggest to figure out what is the problem? > I don't think you said your OS so I'll assume Linux. Sometimes it is more noise than value, but stracing the process may shed light on what system calls are being made. This in turn may

Re: Python server locks up

2009-09-09 Thread Zac Burns
> If it has been running continuously all that time then it might be that > the dictionary has grown too big (is that possible?) or that it's a > memory fragmentation problem. In the latter case it might be an idea to > restart Python every so often; perhaps it could do that automatically > during

Re: Python server locks up

2009-09-09 Thread MRAB
Zac Burns wrote: I have a server running Python 2.6x64 which after running for about a month decides to lock up and become unresponsive to all threads for several minutes at a time. While it is locked up Python proceeds to consume large amounts of continually increasing memory. The basic functio

Re: python server

2005-11-09 Thread Frithiof Andreas Jensen
"Magnus Lycka" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thee are many solutions. An XML-RPC server springs to mind as a > solution. There are several Python XML-RPC servers . Good Idea. Seems that those particular batteries are included with Python 2.2 and up: OP: See h

Re: python server

2005-11-09 Thread Frithiof Andreas Jensen
"linuxpld" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello > > I`m writing a program (server in future) in python. > I would like to write it in such a way that I will be able to write gui > in any language and connect to my python program and use functionality > included with

Re: python server

2005-11-08 Thread Magnus Lycka
linuxpld wrote: > I`m writing a program (server in future) in python. > I would like to write it in such a way that I will be able to write gui > in any language and connect to my python program and use functionality > included with it. > are there any libraries that I could use? Thee are many sol

Re: python server

2005-11-07 Thread Bill Mill
On 7 Nov 2005 10:22:18 -0800, linuxpld <[EMAIL PROTECTED]> wrote: > Hello > > I`m writing a program (server in future) in python. > I would like to write it in such a way that I will be able to write gui > in any language and connect to my python program and use functionality > included with it. >

Re: python server?

2005-10-12 Thread Diez B. Roggisch
> I was wondering if something similar already existed, to use as-is or > to adapt to my needs. > I did a little googling, which pointed me to interesting, but rather > different projects. Has anybody ever seen or heard something of this > kind? Or maybe there is something almost-ready in the amazi