Welcome To Snipplr
Everyone's Recent Python Snippets Tagged python
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
848
posted 18 years ago by collin
Tired of the Python's "".join(...) idiom requiring you to pre-stringify all the arguments to join()? Yeah, me too.
1
829
posted 18 years ago by collin
This snippets try to download itself from http://snipplr.com using xml-rpc
6
1244
posted 18 years ago by arcturus
Performance can be seen in link. This code, however, uses generator expression instead of list comprehension.
1
1089
posted 18 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
722
posted 18 years ago by daeken