python - process id
Jean-Paul Calderone
exarkun at divmod.com
Sun Jan 14 19:47:23 EST 2007
On Sun, 14 Jan 2007 16:36:58 -0800, bruce <bedouglas at earthlink.net> wrote:
>hi...
>
>is there a way to have a test python app, get its' own processID. i'm
>creating a test python script under linux, and was wondering if this is
>possible..
See the os module, the getpid function.
>
>also, i've tried using an irc client to join the irc #python channel, and
>for some reason i keep getting the err msg saying that the 'address is
>banned' i've never been to the python channel, but i'm using dsl, so i'm
>getting a dynamic address.. and yeah, i've tried changing the address a
>number of times..
IRC bans can cover a wide range of addresses. Someone else on your ISP may
have abused the channel badly enough to get a large range of addresses, maybe
every address you could possibly get, banned from the channel.
Jean-Paul
More information about the Python-list
mailing list