Re: Question about interpreter

2008-10-23 Thread Usman Ajmal
Thanks James... On Fri, Oct 24, 2008 at 8:01 AM, James Mills <[EMAIL PROTECTED]>wrote: > On Fri, Oct 24, 2008 at 12:55 PM, Usman Ajmal <[EMAIL PROTECTED]> > wrote: > > An interpreter which Python also uses, translates and checks for errors > in > > code, one

Question about interpreter

2008-10-23 Thread Usman Ajmal
Assalamalaikum An interpreter which Python also uses, translates and checks for errors in code, one line at a time. Question: Does interpreter also executes the translated code? -- http://mail.python.org/mailman/listinfo/python-list

Re: File Reading related query

2008-09-17 Thread Usman Ajmal
Thanks Tim. That rstrip('\r\n') worked. :) On Wed, Sep 17, 2008 at 10:45 AM, Tim Chase <[EMAIL PROTECTED]>wrote: > Is there any function for reading a file while ignoring *\n* occuring in >>> the file? >>> >> >> can you be a bit more precise? are we talking about text files or binary >> files?

Re: File Reading related query

2008-09-17 Thread Usman Ajmal
sentence = this is python list\nwhere we get support\nfrom geeks On Wed, Sep 17, 2008 at 10:18 AM, Fredrik Lundh <[EMAIL PROTECTED]>wrote: > Usman Ajmal wrote: > > Is there any function for reading a file while ignoring *\n* occuring in >> the file? >> > > can y

File Reading related query

2008-09-17 Thread Usman Ajmal
Hi., Is there any function for reading a file while ignoring *\n* occuring in the file? -- http://mail.python.org/mailman/listinfo/python-list

Re: How to convert M2Crypto.RSA.RSA to string

2008-09-17 Thread Usman Ajmal
ks by the way marco and Toivonen for trying to help :) On Mon, Sep 15, 2008 at 1:06 PM, Marco Bizzarri <[EMAIL PROTECTED]>wrote: > On Mon, Sep 15, 2008 at 8:23 AM, Usman Ajmal <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I have a M2Crypto.RSA.RSA instance that contain m

Re: XML RPC Problem....

2008-09-13 Thread Usman Ajmal
usr/lib/python2.5/xmlrpclib.py", line 1191, in request headers xmlrpclib.ProtocolError: On Sat, Sep 13, 2008 at 12:37 PM, Fredrik Lundh <[EMAIL PROTECTED]>wrote: > Usman Ajmal wrote: > > Problem is that when i start client (while the server is already running), >>

Re: XML RPC Problem....

2008-09-13 Thread Usman Ajmal
Problem is that when i start client (while the server is already running), i get an error i.e. Error 500 Internal Server Error On Sat, Sep 13, 2008 at 3:58 PM, Fredrik Lundh <[EMAIL PROTECTED]>wrote: > Usman Ajmal wrote: > > Where exactly should i call ServerProxy? Following is t

Re: XML RPC Problem....

2008-09-13 Thread Usman Ajmal
MLRPCServer(("localhost", 8000)) server.register_instance(AuthenticationFunctions()) server.serve_forever() On Sat, Sep 13, 2008 at 8:44 AM, Fredrik Lundh <[EMAIL PROTECTED]>wrote: > Usman Ajmal wrote: > > Please explain the arguments of send_request. What exactly are the >> connection, ha

Re: XML RPC Problem....

2008-09-13 Thread Usman Ajmal
Please explain the arguments of send_request. What exactly are the connection, handler and request_body? It will be really helpful if you give an example of how do i call send_request On Thu, Sep 11, 2008 at 7:18 AM, Fredrik Lundh <[EMAIL PROTECTED]>wrote: > Usman Ajmal wrote: > &

Need help with the 'transport' for setting the header while calling a function at server side

2008-09-12 Thread Usman Ajmal
I am getting an Internal Server Error 500 when i run my client code. I am trying to call a function at the server side which for now only returns a string. Meanwhile this calling i also set the header of HTTP request. Following are my client and server code. Am i doing something wrong? #-

Re: XML RPC Problem....

2008-09-11 Thread Usman Ajmal
Thanks for ur help. But now i am getting an error xmlrpclib.ProtocolError: Here is my code at http://privatepaste.com/d81Kut9AFj Any idea what wrong am i doing? On Thu, Sep 11, 2008 at 7:18 AM, Fredrik Lundh <[EMAIL PROTECTED]>wrote: > Usman Ajmal wrote: > > And i also fount

XML RPC Problem....

2008-09-11 Thread Usman Ajmal
Hi everyone, I am trying to call a function named system.auth at the server side running at localhost:8080 but at the same time i want to set the http header. I found that header can be set by h.putheader("AUTHORIZATION", "Basic %s"%encodestring("%s:%s" % (ustring,text_ucert))) #us

'Bad Signature' error with M2Crypto

2008-08-10 Thread Usman Ajmal
I think it is a right place to ask my query... I wrote the following code for signing and verifying some message using Public-Private Key Encyption but it has a problem. It is giving me a 'Bad Signature' error at line 27. I don't know what wrong am i doing as to me the signature is looking fine. I