Welcome To Snipplr


Everyone's Recent Python Snippets Tagged python



1 1541 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 1557 posted 19 years ago by collin
0 1757 posted 19 years ago by whitetiger
6 2221 posted 19 years ago by whitetiger
0 1917 posted 19 years ago by whitetiger
0 2023 posted 19 years ago by whitetiger
0 1898 posted 19 years ago by whitetiger
1 2399 posted 19 years ago by whitetiger
0 1883 posted 19 years ago by whitetiger
0 1816 posted 19 years ago by whitetiger
0 1802 posted 19 years ago by whitetiger
0 1681 posted 19 years ago by whitetiger
0 1769 posted 19 years ago by whitetiger
1 2063 posted 19 years ago by whitetiger
2 2449 posted 19 years ago by whitetiger
1 2225 posted 19 years ago by whitetiger
0 1660 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 1506 posted 19 years ago by collin
This snippets try to download itself from http://snipplr.com using xml-rpc
6 2134 posted 19 years ago by arcturus
0 1449 posted 19 years ago by jacobian
0 2022 posted 19 years ago by jacobian
Performance can be seen in link. This code, however, uses generator expression instead of list comprehension.
1 2031 posted 20 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 1329 posted 20 years ago by daeken
1 1958 posted 20 years ago by ndegruchy