Re: network programming: how does s.accept() work?

2008-02-25 Thread Roy Smith
In article <[EMAIL PROTECTED]>, 7stud <[EMAIL PROTECTED]> wrote: > But your claim that the server doesn't change its port flies in the > face of every description I've read about TCP connections and > accept(). The articles and books I've read all claim that the server > port 5053 is a 'listeni

Re: network programming: how does s.accept() work?

2008-02-25 Thread Roy Smith
In article <[EMAIL PROTECTED]>, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Mon, 25 Feb 2008 20:03:02 -0200, 7stud <[EMAIL PROTECTED]> > escribió: > > On Feb 25, 10:56 am, Thomas Bellman <[EMAIL PROTECTED]> wrote: > >> 7stud <[EMAIL PROTECTED]> wrote: > > > In either case, there are st

Re: network programming: how does s.accept() work?

2008-02-25 Thread Steve Holden
7stud wrote: > On Feb 25, 10:56 am, Thomas Bellman <[EMAIL PROTECTED]> wrote: >> 7stud <[EMAIL PROTECTED]> wrote: >>> The question I'm really trying to answer is: if a client connects to a >>> host at a specific port, but the server changes the port when it >>> creates a new socket with accept(), h

Re: python based BB system

2008-02-25 Thread amar888
On Feb 26, 12:10 pm, CE <[EMAIL PROTECTED]> wrote: > Hi, > I have been searching for a while for a complete and fast Bulletin Board > System for a mature community. > > any recommendation guys? AFAIK pocoo is one good choice but it lacks alot of primitive functionalities like image attachments or

freeze.py - resolving dependencies

2008-02-25 Thread Rakesh Kumar
hi - I wrote a wxWidgets program and was trying to convert the python script to native python code. After running freeze.py on my source file - I am getting the following unknown modules error. Warning: unknown modules remain: _bisect _heapq _locale _random _socket _ssl _struct _tkinter array

Re: network programming: how does s.accept() work?

2008-02-25 Thread Roy Smith
In article <[EMAIL PROTECTED]>, Steve Holden <[EMAIL PROTECTED]> wrote: > TCP guarantees > that no two ephemeral port connections from the same client will use the > same port. Where "client" is defined as "IP Address". You could certainly have a remote machine that has multiple IP addresse

Re: network programming: how does s.accept() work?

2008-02-25 Thread Steve Holden
Roy Smith wrote: > In article <[EMAIL PROTECTED]>, > Steve Holden <[EMAIL PROTECTED]> wrote: > >> TCP guarantees >> that no two ephemeral port connections from the same client will use the >> same port. > > Where "client" is defined as "IP Address". You could certainly have a > remote machi

Re: Is crawling the stack "bad"? Why?

2008-02-25 Thread Russell Warren
Thanks Ian... I didn't know about threading.local before but have been experimenting and it will likely come in quite handy in the future. For this particular case it does basically seem like a replacement for the threadID indexed dictionary, though. ie: I'll still need to set up the RpcContainer,

Re: How to make "rainbow" RGB values?

2008-02-25 Thread Andrew McNamara
>>Consider using an HSV->RGB conversion function. Saturation (S) and value >>(V) should remain constant, while Hue (H) varies to get your rainbow >>effect. > >Hey thank you very much, that worked like a charm! :] > >There's even a library function in the colorsys module (http:// >docs.python.org/l

Re: is there enough information?

2008-02-25 Thread Paul McGuire
On Feb 25, 9:30 pm, [EMAIL PROTECTED] wrote: > > Is it enough? (Reminds me of the movie Marathon Man, in which Dustin Hoffman is repeatedly asked by Laurence Olivier, "Is it safe?" Hoffman had no idea what Olivier was talking about. So Olivier tortured Hoffman some more to get the answer.) Enou

running a daemon in python

2008-02-25 Thread bharath venkatesh
hi .. hi i want a program to start running as daemon in background .. my program is server listen to a client ... so i want to make that program run as daemon .. when i execute the program the program for ex server.py it should automatically start running as daemon in the background even if

Re: PHP Developer highly interested in Python (web development) with some open questions...

2008-02-25 Thread Gabriel Genellina
En Mon, 25 Feb 2008 06:42:39 -0200, Bruno Desthuilliers <[EMAIL PROTECTED]> escribió: > Diez B. Roggisch a écrit : >>> >>> It's also some kind of a Rube Goldberg thingie... >>> http://en.wikipedia.org/wiki/Rube_Goldberg_machine >>> >>> If you're into web applications, better to have a look at Py

Re: pprint, __repr__ and inheritance, how does it works?

2008-02-25 Thread Gabriel Genellina
En Mon, 25 Feb 2008 10:19:43 -0200, Jorge Vargas <[EMAIL PROTECTED]> escribió: > Hello list, I'm having a little bit of trouble making this all work > together. > > I have a base class in which I want to define the __repr__ for all > subclasses which in this case will be to output all the __di

Re: running a daemon in python

2008-02-25 Thread rishi pathak
Use the function goDaemon just before starting the server loop: ###Begin Module### import os import sys # Default daemon parameters. # File mode creation mask of the daemon. UMASK = 0 # Default working directory for the daemon. WORKDIR = "/" # Default maximum for th

Re: print help content in a Command Prompt

2008-02-25 Thread Gabriel Genellina
En Mon, 25 Feb 2008 10:18:19 -0200, <[EMAIL PROTECTED]> escribió: > On Feb 25, 12:59 pm, Necmettin Begiter <[EMAIL PROTECTED]> > wrote: >> 25 February 2008 Monday 11:15:14 tarihinde [EMAIL PROTECTED] şunları >> yazmıştı: >> >> > Hi, >> > This is a basic problem, but I want to print help content

Re: property data-descriptor - how to pass additional constants to the get/set method

2008-02-25 Thread Gabriel Genellina
En Mon, 25 Feb 2008 18:50:20 -0200, <[EMAIL PROTECTED]> escribió: > Hi, > I would like to pass additional constants to the property data- > descriptor, so it is not necessary to write many methods which differ > just by constant defined in the method body. > Till now I can do this: > > class MyCla

Re: is there enough information?

2008-02-25 Thread castironpi
On Feb 25, 11:52 pm, Paul McGuire <[EMAIL PROTECTED]> wrote: > On Feb 25, 9:30 pm, [EMAIL PROTECTED] wrote: > > > > > Is it enough? > > (Reminds me of the movie Marathon Man, in which Dustin Hoffman is > repeatedly asked by Laurence Olivier, "Is it safe?"  Hoffman had no > idea what Olivier was tal

Re: is there enough information?

2008-02-25 Thread castironpi
> Clarify: > > def thdloop( thd ): >    while thd.cont: >       thd.sig1event.wait() >       ret= thd.cmd() thd.result= ret >       thd.sig2event.set() >       thd.seg3event.wait() > > and def consumer( thd ): thd.cmd= function thd.sig1event.set() thd.sig2event.wait() ret= thd.

<    1   2   3