Re: Partial Function Application -- Advantages over normal function?

2011-07-19 Thread Kurian Thayil
mbda x: x + y > > > > In turn: > > makeadder = lambda y: lambda x: x + y > > Smells of Haskell. > -- > http://mail.python.org/mailman/listinfo/python-list > Hi All, Thanks guys for the reply. I now understand something. Since Im a newbie, let me read over and over so that I will get the complete picture of everyone's idea. :-) Regards, Kurian Thayil. -- http://mail.python.org/mailman/listinfo/python-list

Partial Function Application -- Advantages over normal function?

2011-07-18 Thread Kurian Thayil
Hi, I am a newbie in python and would like to learn GUI programming. I would like to know what exactly is Partial Function Applicaton (functool.partial())? Or how is it advantageous compared to normal functions? Or is there any advantange? Thanks in advance. Regards, Kurian Thayil. -- http

Re: mail sending -- smtplib

2010-09-07 Thread Kurian Thayil
Got it fixed. It was a very silly mistake. mssg variable had each line with indent. Removed the indent and it worked. Regards, Kurian Thayil. On Tue, Sep 7, 2010 at 9:57 AM, Kurian Thayil wrote: > Hi All, > > I am a newbie in python. Just 2-3 days old wanting to learn thi

mail sending -- smtplib

2010-09-06 Thread Kurian Thayil
MIME standard?). Without the for-loop the script works fine. Can anyone advice? * #!/usr/bin/env python import smtplib for i in range(1,5): print "I is ",i fromaddr='kurianmtha...@gmail.com' toaddr='kurianmtha...@gmail.com' print toaddr

Re: Python - MySQL fetching values

2010-05-07 Thread Kurian Thayil
On Thu, May 6, 2010 at 2:42 PM, Chris Rebert wrote: > On Thu, May 6, 2010 at 1:47 AM, Kurian Thayil > wrote: > > > the expected output is 05:35:05. > > > > Now, here is code snippet, > > > > cursor1=getconnect1.cursor() > >

Python - MySQL fetching values

2010-05-06 Thread Kurian Thayil
ad of 05:35:05. How can I get this time format? Thanks in advance. Regards, Kurian Thayil. -- http://mail.python.org/mailman/listinfo/python-list

Re: MySQLdb compiled -- Import issue

2010-03-24 Thread Kurian Thayil
On Wed, 2010-03-24 at 20:15 -0700, Sean DiZazzo wrote: > On Mar 24, 7:59 pm, Kurian Thayil wrote: > > Hi All, > > > > I am just a month old with Python and trying to learn CGI with Python. I > > was trying to install MySQLdb module in my new CentOS 5.3 box with >

MySQLdb compiled -- Import issue

2010-03-24 Thread Kurian Thayil
Hi All, I am just a month old with Python and trying to learn CGI with Python. I was trying to install MySQLdb module in my new CentOS 5.3 box with Python 2.4.3 default install. I downloaded the tar-ball of MySQLdb module (MySQL-python-1.2.3c1). Did build as normal user and install as root. MySQL