Hey,
Sorry, I tried to sent only the relevant parts of the example, but the
part where the error was, was left out.
I defined the function, used as callback like this:
class SomeClass:
def callback(param):
...
So I forgot the "self" parameter, and therefor the callback had a
differen
Hi,
I have a class, where I want to store a callback function as a member
to access later:
class CallbackClass:
def setCallback(self,cb):
self.cb = cb
def callCallback(self, para):
self.cb(para)
Doing so, I get the error:
callbackFunc() takes exactly 1 parameter (2 given
Hi,
I am packing large files with tarfile. Is there any way I can get
progress information while packing?
Thanks!
Nathan
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
Is it somehow possible to import modules from *.py files in a higher
level directory?
Intuitively I would do
import ../module
but that does not work.
How does it work?
Thanks!
Nathan
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
tempfile.mkstemp returns a file name and a file descriptor (as returned
by os.open). Can I somehow convert this descriptor to a file object?
Thanks!
Nathan
--
http://mail.python.org/mailman/listinfo/python-list
Thanks for all the replies.
I might use http, or I utilize a separate ftp server.
On Sat, 5 Jun 2010 13:34:45 -0700
geremy condra wrote:
> On Sat, Jun 5, 2010 at 10:14 AM, Dan Stromberg
> wrote:
> >> A more realistic answer is probably to use something based on
> >> HTTP. This solves a number o
Hi,
I am writing a network application which needs from time to time do
file transfer (I am writing the server as well as the client).
For simple network messages, I use pyro because it is very comfortable.
But I suspect, that doing a file transfer is very inefficient over
pyro, am I right (the fi