Skip to main content

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

Metadata

Release files for pyexpression 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyexpression 0.1.0
File Size Uploaded Provenance Actions
pyexpression-0.1.0.tar.gz 3.8 kB Without provenance Details for pyexpression-0.1.0.tar.gz

Release files / pyexpression-0.1.0.tar.gz

Download URL pyexpression-0.1.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
dfeba05e5ec4f019937c5dfe892dbe2ffb6e4b10153fcf11f72c5355a017f89a
BLAKE2b-256 checksum
How to use checksums
1c49d2cf2b2725544e80b8a821047d2e0ede01a581552f3cb6fe5e7fb5cc8025
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pyexpression 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page