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
Thank you so much for this brilliant little thing. I've just copy&pasted your main code as a tooling decorator into https://github.com/amogorkon/justuse and it does its job without complaining even once.
For example ordered = releases >> _filter_by_platform(tags=get_supported()) >> _sort_releases
last_version = project.releases >> reversed >> iter >> next
meta = (names
<< filter(DIST_PKG_INFO_REGEX.search)
<< map(functions.read_entry)
>> dict
)
Pipes make this so much nicer and less cluttered. Readability counts! I hope you will continue maintaining this beautiful thing and maybe even make a PEP for inclusion into the core language 👍
This probably is also the only way to fix a little issue that happens when you write a small chain of pipes like
a = (foo
>> bar
<< baz
)
which would look ugly on a single line a = foo >> bar << baz with those arrows piping in different directions - alas, black thinks so otherwise, so it turns the multi-line pipe into a single line.
PS: You really should update your examples on your README to python 3 print-as-a-function ;-)
Thank you so much for this brilliant little thing. I've just copy&pasted your main code as a tooling decorator into https://github.com/amogorkon/justuse and it does its job without complaining even once.
For example
ordered = releases >> _filter_by_platform(tags=get_supported()) >> _sort_releases
last_version = project.releases >> reversed >> iter >> next
Pipes make this so much nicer and less cluttered. Readability counts! I hope you will continue maintaining this beautiful thing and maybe even make a PEP for inclusion into the core language 👍
This probably is also the only way to fix a little issue that happens when you write a small chain of pipes like
which would look ugly on a single line
a = foo >> bar << baz
with those arrows piping in different directions - alas, black thinks so otherwise, so it turns the multi-line pipe into a single line.PS: You really should update your examples on your README to python 3 print-as-a-function ;-)
should be
The text was updated successfully, but these errors were encountered: