My friend Valentino has posted on his blog about a sample of code with C# and generics and he rewrote the sample in Python
Here the samples:
C# 2.0:
List integers = new List();
for(int i=1; i< =10; i++) integers.Add(i);
int sum;
integers.ForEach(delegate(int i){ sum+=i; });
vs
Python (basically any version):
sum([x for x in xrange(11)])
Me on the net
Projects
Flickr
Flickr is currently unavailable.Pages
Developers
Archives
















