These are chat archives for evhub/coconut

Jun 2017
Evan Hubinger
Jun 13 2017 07:14

@mpjoseca_twitter The problem with __init__ and data is that when you use data, you make the class immutable, but the way __init__ works it mutates the instance after creation, which means it won't work. Instead, either use a normal class, or the __new__ special method (see datamaker). If you go the __new__ route, you will also have to explicitly get rid of the base class __init__ which is trying to mutate the object by adding something like def __init__(self): pass.

As for pipelining multiple arguments, you can just use the |*> operator. See pipeline.