Skip to content
#

refined

Here are 31 public repositories matching this topic...

antonagestam
antonagestam commented Oct 18, 2021

#148 introduced nice reprs for the shipped predicates and predicate factories. We can go a bit further and also implement specialized support for functools.partial objects.

PoC

>>> po = partial(str.split, sep=".", maxsplit=3)
>>> f"{po.func.__qualname__}({', '.join(po.args)}, {', '.join(f'{k}={v!r}' for k, v in po.keywords.items())})"
"str.split(, sep='.', maxsplit=3)"

Improve this page

Add a description, image, and links to the refined topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the refined topic, visit your repo's landing page and select "manage topics."

Learn more