You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A context manager implementation would be useful in my opinion, in some cases.
frompipeyimportPipeablewith ([1, 2, 3] >>Array>>Vectorize) asvector:
# Do stuff with vector, which contains a Pipeable with the result of the above expression
The text was updated successfully, but these errors were encountered:
Another way to to leverage context managers that might be useful:
withPipeable(print) asprint:
[1, 2, 3] >>Array>>printprint("print normally in normal context")
This would allow you to temporarily/ contextually move something into a Pipeable context and return it to its normal functionality afterwards. This is a "I only need to do this once" flavor solution, where if you were using print multiple times as a Pipeable, you'd just declare it as such.
A context manager implementation would be useful in my opinion, in some cases.
The text was updated successfully, but these errors were encountered: