Welcome To Snipplr


Everyone's Recent Python Snippets Tagged python



1 1254 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 1253 posted 19 years ago by collin
0 1454 posted 19 years ago by whitetiger
6 1870 posted 19 years ago by whitetiger
0 1584 posted 19 years ago by whitetiger
0 1673 posted 19 years ago by whitetiger
0 1577 posted 19 years ago by whitetiger
1 1995 posted 19 years ago by whitetiger
0 1562 posted 19 years ago by whitetiger
0 1489 posted 19 years ago by whitetiger
0 1434 posted 19 years ago by whitetiger
0 1374 posted 19 years ago by whitetiger
0 1414 posted 19 years ago by whitetiger
1 1765 posted 19 years ago by whitetiger
2 2086 posted 19 years ago by whitetiger
1 1830 posted 19 years ago by whitetiger
0 1372 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 1234 posted 19 years ago by collin
This snippets try to download itself from http://snipplr.com using xml-rpc
6 1718 posted 19 years ago by arcturus
0 1167 posted 19 years ago by jacobian
0 1650 posted 19 years ago by jacobian
Performance can be seen in link. This code, however, uses generator expression instead of list comprehension.
1 1651 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 1025 posted 19 years ago by daeken
1 1556 posted 19 years ago by ndegruchy