[Tutor] time.mktime(time.gmtime(time tuple from any timezone)) always will be the same ?

2007-07-13 Thread Arun Kumar PG
Guys, May be a dumb question but I am a bit confused (may be coz working over 24 hours for the last couple days:)). so the question is: No matter which timezone I am in if i say time.gmtime(time.mktime(( datetime.date().timetuple( I will always get the same value. - right ? thx for answer

[Tutor] Suggestions required on Gaming

2006-10-04 Thread Arun Kumar PG
Hi All Python lovers!I want to develop a Car racing game using Python. I was looking for the libraries which I should use for the same. Some of the options are below and I want you suggestions about the best set of tools and APIs as per your experiences: - PyGame- Panda3D- Pixie for rendering- Rend

Re: [Tutor] Suggestions required on Gaming

2006-10-04 Thread Arun Kumar PG
Thanks Luke.I want to make a 3-D car race game between two players. And yes its gonna  be a networked game where each user will be using his/her own PC and playing.- Arun On 10/4/06, Luke Paireepinart <[EMAIL PROTECTED]> wrote: Arun Kumar PG wrote:> Hi All Python lovers!>>> I wan

Re: [Tutor] Suggestions required on Gaming

2006-10-04 Thread Arun Kumar PG
Also, my idea is to have a centralised Python server which acts as a dispachter to send the coordinate and other information to the gaming clients.On 10/4/06, Arun Kumar PG <[EMAIL PROTECTED]> wrote: Thanks Luke.I want to make a 3-D car race game between two players. And yes its gonna

Re: [Tutor] Suggestions required on Gaming

2006-10-04 Thread Arun Kumar PG
Thanks Luke! This is helpful :)- ArunOn 10/4/06, Luke Paireepinart <[EMAIL PROTECTED]> wrote: Arun Kumar PG wrote:> Thanks Luke.>> I want to make a 3-D car race game between two players. And yes its > gonna  be a networked game where each user will be using his/her own> PC an

Re: [Tutor] Tkinter and python

2006-10-08 Thread Arun Kumar PG
Hi,You can try:>> import sys>> sys.path.append('')>> import Or else you can append the path to global PYTHONPATH environment variable and whenever you will type: python on the command prompt/bash shell the script gets executed.Hope that helps.Thanks,- Arun On 10/8/06, max . <[EMAIL PROTECTED]> wro

Re: [Tutor] Tkinter and python

2006-10-08 Thread Arun Kumar PG
TECTED]> wrote: On Sun, Oct 08, 2006 at 08:36:31PM +0530, Arun Kumar PG wrote:> Hi,>> You can try:>> >>import sys> >>sys.path.append('')> >>import < module.py>>> Or else you can append the path to global PYTHONPATH environment variab

[Tutor] Writing serialized objects from BaseHTTPServer

2006-10-19 Thread Arun Kumar PG
Hi Guys,I wrote a simple server using sockets ,the traditional whille True: scoket.accept() approach. This server reads some pickled parameters sent by the client using the cPickle module -> do some processing -> and finally writes a list of tuples, objects using cPickle back to the client output s

Re: [Tutor] Writing serialized objects from BaseHTTPServer

2006-10-24 Thread Arun Kumar PG
any replies for the below ? On 10/19/06, Arun Kumar PG <[EMAIL PROTECTED]> wrote: Hi Guys,I wrote a simple server using sockets ,the traditional whille True: scoket.accept() approach. This server reads some pickled parameters sent by the client using the cPickle module -> do some processi

Re: [Tutor] Any Good book for python

2007-01-04 Thread Arun Kumar PG
"Python in a nutshell" is a good one. Also Python docs are the all time favorite. On 1/4/07, deepak shingan <[EMAIL PROTECTED]> wrote: Hi Folks, I am new in Python area and want to know Python concepts with more deatils. Please suggest some good books on python. Thanks in Advance -Deepak

[Tutor] threading.currentThread() always same across request ?

2007-04-13 Thread Arun Kumar PG
Guys, I have a web application and I want to store an object per request so thta that is available across all classes till end of request. I am planning to write the below code in my entry program which is executed as soon as a request comes: entry.py import threading th = threading.current

Re: [Tutor] threading.currentThread() always same across request ?

2007-04-14 Thread Arun Kumar PG
Thx guys. now quick question on the usage of thread local storage. In my case I have the below object model: class Base(object):' def __init__(self): self.__service = None def _GetService(): if not hasattr(threading.currentThread(), 'service'): threading.currentThread().service = S