Welcome To Snipplr


Everyone's Recent Python Snippets Tagged python



1 1348 posted 19 years ago by abhiomkar
Since the version of compose() that ships with functional only allows you to compose two functions, I present this version that composes n functions.
0 1346 posted 19 years ago by collin
0 1560 posted 19 years ago by whitetiger
6 1969 posted 19 years ago by whitetiger
0 1694 posted 19 years ago by whitetiger
0 1784 posted 19 years ago by whitetiger
0 1685 posted 19 years ago by whitetiger
1 2141 posted 19 years ago by whitetiger
0 1661 posted 19 years ago by whitetiger
0 1587 posted 19 years ago by whitetiger
0 1557 posted 19 years ago by whitetiger
0 1467 posted 19 years ago by whitetiger
0 1529 posted 19 years ago by whitetiger
1 1860 posted 19 years ago by whitetiger
2 2190 posted 19 years ago by whitetiger
1 1933 posted 19 years ago by whitetiger
0 1470 posted 19 years ago by whitetiger
Tired of the Python's "".join(...) idiom requiring you to pre-stringify all the arguments to join()? Yeah, me too.
1 1321 posted 19 years ago by collin
This snippets try to download itself from http://snipplr.com using xml-rpc
6 1876 posted 19 years ago by arcturus
0 1249 posted 19 years ago by jacobian
0 1771 posted 19 years ago by jacobian
Performance can be seen in link. This code, however, uses generator expression instead of list comprehension.
1 1824 posted 19 years ago by newtonapple
Placing these inside a PyObjC class lets you access PyObjC instance variables starting with '_' without extra work while still allowing access to standard Python instance variables.
0 1141 posted 19 years ago by daeken
1 1717 posted 19 years ago by ndegruchy