Petr Pokorny
Petr Pokorny
Hey! there are a few issues with this I'd like to think about first. 1. Giving the index as a separate argument forces you to use a `lambda` expression. Whereas...
> Not really: enumerate and as_args. > > At lease in my use case. Which brings us back to point 1. 🙂 It would mean adding a utility function that...
@tfga do you maybe have some more specific examples of how you'd use it?
I see. Technically, you can instead do: ```python tds = tr > enumerate | foreach((X[1], X[0] | colWidth.__getitem__)) ``` But it's quite unreadable. ---- I think what we could do...
Right now it doesn't do anything special for async functions. I suppose you'd want something like: ```python result = some_input > async_func1 | async_func2 | regular_func ``` To produce the...
I don't really have much experience with Python's asyncio. From what I quickly tried, it seems that it would have to be deduced from the return value, which in case...
Using the `await` keyword when constructing the pipe won't be possible, because arguments for those functions aren't available at that time. If it isn't possible or desirable to automatically detect...
Hey, while that should be possible, I'd like to keep this library simple and this would add a bunch of complexity with regards to the tqdm dependency. And I don't...
Hey, So first, there is no global state. `Pipe` is the class and `pipe` is just one instance which does nothing. But every piping (`|`) call creates a new instance....
I would use standard Python docstring in a `def` statement, see [answer](https://stackoverflow.com/a/68394592/10562723). It would be possible to add some docstring feature to `pipe` so you could do something like this:...