Skip to main content

Mulpyplexer is a piece of code that can multiplex interactions with lists of python objects. It’s easier to show you:

import mulpyplexer

class A:
def __init__(self, i):

self.i = i

def add(self, j):

return A(self.i + (j.i if isinstance(j, A) else j))

def sub(self, j):

return A(self.i - (j.i if isinstance(j, A) else j))

def __repr__(self):

return “<A %d>” % self.i

def str(self):

return str(self.i)

def __eq__(self, o):

return self.i == o.i

one = mulpyplexer.MP([ A(10), A(20), A(30) ])

two = one.add(5) assert two.mp_items == [ A(15), A(25), A(35) ]

three = two.sub(10) assert three.mp_items == [ A(5), A(15), A(25) ]

four = three.add(one) assert four.mp_items == [ A(15), A(35), A(55) ]

five = four.str() assert five.mp_items == [ “15”, “35”, “55” ]

six = four.i assert six.mp_items == [ 15, 35, 55 ]

Metadata

Release files for mulpyplexer 0.09

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

Source distribution (sdist)

Source distribution for mulpyplexer 0.09
File Size Uploaded
mulpyplexer-0.09.tar.gz 2.8 kB Details

Release files / mulpyplexer-0.09.tar.gz

Download URL mulpyplexer-0.09.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
144e9e9bf66d3988f60542c9d3d4c94857438f7908f60e53f4c1cb1622fbbd30
BLAKE2b-256 checksum
How to use checksums
d76ff036d4fb9f5a511262345bb18215c70fa69a250aca2e5ffe1a9c7e4cb85c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.4.2 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.09 This release

1 release file

0.08

1 release file

0.07

1 release file

0.06

1 release file

0.05

1 release file

0.04

1 release file

0.03

1 release file

0.02

1 release file

0.01

1 release file

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