Hi,
I am using tornado web socket server to communicate between python(server) and
browser(client). To mimic the behavior of sending data to client and get
results back, I am using threaded approach:
class JobThread(threading.Thread):
""
def __init__(self, target):
""
know much about threading event and lock and if they can help me here.
Any pointers?
Prashant
--
http://mail.python.org/mailman/listinfo/python-list
class Shape(object):
def __init__(self, shapename):
self.shapename = shapename
def update(self):
print "update"
class ColoredShape(Shape):
def __init__(self, color):
Shape.__init__(self, color)
self.color = color
print 1
I am running a python script which has the line
import getopt, sys, os, re, string
And i get the error
ImportError: No module named getopt
Could you please point out a possible solution for this?
--
http://mail.python.org/mailman/listinfo/python-list
Thanks for the reply,
I am actually using Cygwin to run a python script.
I have python 2.5 installed. But when i ran the command mentioned by
you... I see that it is looking in the wrong directories... how can i
change these look up directories?
Fredrik Lundh wrote:
> "prashant" wro
thanks a lot that helped...
Fredrik Lundh wrote:
> "prashant" wrote:
>
> > I am actually using Cygwin to run a python script.
> > I have python 2.5 installed. But when i ran the command mentioned by
> > you... I see that it is looking in the wrong directories.
I was wondering is there any way to do this:
I have written a class in python and __init__ goes like this:
def __init__(self):
self.name = 'jack'
self.age = 50
import data
now here there is data.py in the same directory and contents are like:
self.address = 'your address'
self.status = 'si
I am working to make a form where I have added multiple entries. I wish to add
temporary text on all of them, as the text to be deleted when clicked and to
inserted again when focused out. I have done with the single entry but not able
to find a solution for multiple entries.Kindly suggest me a
import sys
class Float(float):
"""
Custom float datatype with addtional attributes.
"""
def __new__(self,
value=0.0, #default value
name='', # string
range=(0.0, 1.0) # tuple
)
import sys
class Attribute(object):
"""
Common attributes and methods for custom types
"""
__slots__ = []
def __init__(self, name=None, type=None, range=(0,1)):
self.__name = name
self.__type = type
self.__range = range
#Read only attribute
Hi everyone,
My name is Prashant Kumar and I wish to contribute to the Python
development process by helping convert certain existing python over to
python3k.
Is there anyway I could obtain a list of libraries which need to be
ported over to python3k, sorted by importance(by importance i mean
11 matches
Mail list logo