[Python-ideas] @lazy decorator an alternative to functools.partial ?

2023-05-12 Thread Daniel Guffey
Hello all! I've been playing with string templating quite a bit lately and wrote some logic to help me with this. I found it a bit more flexible than using partial and wanted to get feedback to see if it would be worth formalizing this code into the functools module. It's pretty short so I don'

[Python-ideas] Re: @lazy decorator an alternative to functools.partial ?

2023-05-17 Thread Daniel Guffey
Thanks for the reference, Lucas. I wasn't familiar with toolz and it looks similar to a package I'm contributing to with a similar purpose of filling holes in the standard library, as such shouldn't some of this stuff be targeted for integration? I'm a bit dubious about the pypi suggestion as pac

[Python-ideas] Re: @lazy decorator an alternative to functools.partial ?

2023-05-17 Thread Daniel Guffey
e: > On Wed, May 17, 2023 at 2:22 PM Daniel Guffey > wrote: > >> I'm a bit dubious about the pypi suggestion as packages are being >> regularly poisoned with malware ( e.g. New KEKW malware infects >> open-source Python Wheel files via a PyPI distribution | SC Media