[BangPypers] BangPypers Digest, Vol 6, Issue 8

Ramaswamy, Vivek Vivek.Ramaswamy at FMR.COM
Mon Feb 18 11:39:13 CET 2008


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: bangpypers-bounces at python.org
[mailto:bangpypers-bounces at python.org] On Behalf Of
bangpypers-request at python.org
Sent: 15 February 2008 16:30
To: bangpypers at python.org
Subject: BangPypers Digest, Vol 6, Issue 8

Send BangPypers mailing list submissions to
	bangpypers at 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
	bangpypers-request at python.org

You can reach the person managing the list at
	bangpypers-owner at python.org

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 <kushaldas at gmail.com>
Subject: [BangPypers] Any link for xmlrpc in zope3
To: "Bangalore Python Users Group - India" <bangpypers at python.org>
Message-ID: <200802151445.27404.kushaldas at gmail.com>
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" <pradeep at btbytes.com>
Subject: Re: [BangPypers] Any link for xmlrpc in zope3
To: "Bangalore Python Users Group - India" <bangpypers at python.org>
Message-ID:
	<3e3294b70802150242u4f2d6831v9febe114d24e93e7 at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

On 2/15/08, Kushal Das <kushaldas at gmail.com> 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 at python.org
http://mail.python.org/mailman/listinfo/bangpypers


End of BangPypers Digest, Vol 6, Issue 8
****************************************



More information about the BangPypers mailing list