Welcome To Snipplr


Everyone's Recent Snippets Tagged python



Obviously there's no real crytpo here -- use this for cases like regenerating and emailing a user password.
1 439 posted 14 years ago by ches
model/form.py is a good place to put schemata in a pylons app: easy to build with inheritance and accessible to controllers via model.form.EmailForm, etc. See the link for further info on the _extra_fields options -- this one is intended for just two...
1 480 posted 14 years ago by ches
like PHP's 'jS'
0 867 posted 14 years ago by ches
The ASPN cookbook has many recipes for singletons in Python. So far, this one http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/412551 has been my favourite, because it is so simple and concise. However, I just ran into a brick wall when I tr...
0 311 posted 14 years ago by n3x
1 251 posted 14 years ago by abhiomkar
1 306 posted 14 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 273 posted 15 years ago by collin
0 337 posted 15 years ago by whitetiger
6 373 posted 15 years ago by whitetiger
2 411 posted 15 years ago by whitetiger
0 345 posted 15 years ago by whitetiger
0 376 posted 15 years ago by whitetiger
0 379 posted 15 years ago by whitetiger
0 382 posted 15 years ago by whitetiger
0 347 posted 15 years ago by whitetiger
0 338 posted 15 years ago by whitetiger
0 328 posted 15 years ago by whitetiger
0 362 posted 15 years ago by whitetiger
1 378 posted 15 years ago by whitetiger
0 363 posted 15 years ago by whitetiger
1 346 posted 15 years ago by whitetiger
2 467 posted 15 years ago by whitetiger
1 404 posted 15 years ago by whitetiger