Hello~ I am relatively new to python, but I was trying to auto increment a variable through using the lambda anonymous function, but unfortunately I am un-able to get the desired result. Please let me know where I am going wrong:
>>> g=lambda m:lambda: ++m >>> incre=g(0) >>> incre() 0 >>> incre() 0 >>> incre() 0 >>> I would want each call to incre() increase the value by one. I would like to know if this can be implemented using anonymous function using closure. Thanks in advance. Regards -Vivek - ---Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 15 February 2008 16:30 To: bangpypers@python.org Subject: BangPypers Digest, Vol 6, Issue 8 Send BangPypers mailing list submissions to bangpypers@python.org To subscribe or unsubscribe via the World Wide Web, visit http://mail.python.org/mailman/listinfo/bangpypers or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than "Re: Contents of BangPypers digest..." Today's Topics: 1. Any link for xmlrpc in zope3 (Kushal Das) 2. Re: Any link for xmlrpc in zope3 (Pradeep Kishore Gowda) ---------------------------------------------------------------------- Message: 1 Date: Fri, 15 Feb 2008 14:45:27 +0530 From: Kushal Das <[EMAIL PROTECTED]> Subject: [BangPypers] Any link for xmlrpc in zope3 To: "Bangalore Python Users Group - India" <bangpypers@python.org> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="us-ascii" Hi, I am looking for any nice tutorial link from xmlrpc in zope3. The only one I can find is http://blogs.nuxeo.com/sections/blogs/tarek_ziade/2005_11_04_xml-rpc-ove r-zope-3 But I installed zope3 useing easy_install and the directory structure is matching with that tutorial. Kushal -- Fedora Ambassador, India http://kushaldas.in http://dgplug.org (Linux User Group of Durgapur) ------------------------------ Message: 2 Date: Fri, 15 Feb 2008 16:12:40 +0530 From: "Pradeep Kishore Gowda" <[EMAIL PROTECTED]> Subject: Re: [BangPypers] Any link for xmlrpc in zope3 To: "Bangalore Python Users Group - India" <bangpypers@python.org> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="iso-8859-1" On 2/15/08, Kushal Das <[EMAIL PROTECTED]> wrote: > > I am looking for any nice tutorial link from xmlrpc in zope3. > http://www.bud.ca/blog/the-great-python-component-swap-meet This link is not about XMLRPC, but its about Zope3 and I feel its one of the most useful articles on Zope3 and component technologies. This is especially interesting in light of all the ``componentisation`` talk going around [1][2]. [1]http://marcuscavanaugh.com/blog/2008/02/conceptual-integrity-pylons-d jango [2]http://compoundthinking.com/blog/index.php/2008/02/11/conceptual-inte grity-django-pylons-and-turbogears/ -- Home - http://btbytes.com Heart - http://sampada.net Yummy! - http://konkanirecipes.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/bangpypers/attachments/20080215/e91c9e4 f/attachment-0001.htm ------------------------------ _______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers End of BangPypers Digest, Vol 6, Issue 8 **************************************** _______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers