Welcome To Snipplr


Everyone's Recent Python Snippets Tagged python



1 553 posted 17 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 494 posted 17 years ago by collin
0 594 posted 17 years ago by whitetiger
6 737 posted 17 years ago by whitetiger
0 667 posted 17 years ago by whitetiger
0 734 posted 17 years ago by whitetiger
0 686 posted 17 years ago by whitetiger
0 688 posted 17 years ago by whitetiger
0 628 posted 17 years ago by whitetiger
0 595 posted 17 years ago by whitetiger
0 598 posted 17 years ago by whitetiger
0 610 posted 17 years ago by whitetiger
1 669 posted 17 years ago by whitetiger
2 838 posted 17 years ago by whitetiger
1 772 posted 17 years ago by whitetiger
0 621 posted 17 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 478 posted 17 years ago by collin
This snippets try to download itself from http://snipplr.com using xml-rpc
6 790 posted 17 years ago by arcturus
0 424 posted 17 years ago by jacobian
0 615 posted 17 years ago by jacobian
Performance can be seen in link. This code, however, uses generator expression instead of list comprehension.
1 714 posted 17 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 437 posted 17 years ago by daeken
1 692 posted 17 years ago by ndegruchy