What’s lazy evaluation about ? Some functional programming languages (like Haskell) offers a functionality called lazy evaluation by default. It consists of defering evaluation of functions to the moment their results are actually used. Instead of results, everything works as if your function call are returning the recipe to compute the actual result. In python, it is actually pretty straightforward to hack __getattr__ and __setattr__ to implement an hackish lazy evaluation as a decorator. Of being lazy – Paul Masurel
Every time I use Python’s string formatter, version 2.7 and up, I get it wrong and for the life of me I can’t figure out their documentation format. I got very used to the older % method. So I started to create my own string format cookbook. Python String Format – Solutions Log - Marcus Kazmierczak
In my years of programming in Python and roaming around GitHub's Explore section, I've come across a few libraries that stood out to me as being particularly enjoyable to use. This blog post is an effort to further spread that knowledge. I specifically excluded awesome libs like requests, SQLAlchemy, Flask, fabric etc. because I think they're already pretty "main-stream". If you know what you're trying to do, it's almost guaranteed that you'll stumble over the aforementioned.
Design Patterns In Python (@Testing Perspective) |
writing python daemons | coder . cl A daemon in Unix™ and similar operating systems, is a background process, which runs without using the terminal or the X11 system as main I/O system. In other operating system, this is called service.
Currently Promoting | NumFOCUS Foundation
Python Data Analysis Library — pandas: Python Data Analysis Library
ByteplayDoc en About byteplay byteplay is a module which lets you easily play with Python bytecode. I wrote it because I needed to manipulate Python bytecode, but didn't find any suitable tool. Michael Hudson's bytecodehacks (http://bytecodehacks.sourceforge.net/) could have worked fine for me, but it only works with Python 1.5.2. I also looked at Phillip J.
Exploring Python Code Objects « late.am So first of all, what is a code object?
Static Modification of Python with Python: the AST Module - Blueprint Forge. Source code modification can be useful in a number of testing and analysis scenarios.
ls | pyp "p.replace('maybe','yes') | pp.sort() | pp[1:3] |p , p , p.strip('abc') | whitespace | p, 'no' | p.upper() " Pyp is a linux command line text manipulation tool similar to awk or sed, but which uses standard python string and list methods as well as custom functions evolved to generate fast results in an intense production environment. pyp - Python Power at the Prompt