This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

boost.lambda like function generator

Project Description

boost.lambda like function generator

Usage:

>>> from pyexpression import _1, _2, _3, if_
>>> _1 * 10
<pyexpression.expressions.FuncCall object at 0xb74db7cc>
>>> (_1 * 10)(5)
50
>>> (_1 * _2)(10, 10)
100
>>> map(_1[0], zip(range(10), range(10,20)))
>>> class Test(object):
...     def __init__(self):
...         self.x = 10
...
>>> (_1.x)(Test())
10
>>> x = if_(_1)[_2].else_[_3]
>>> x(True, 10, 20)
... 10
>>> x(False, 10, 20)
... 20
Release History

Release History

This version
History Node

0.1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pyexpression-0.1.0.tar.gz (3.8 kB) Copy SHA256 Checksum SHA256 Source Jul 9, 2011

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting