[Python-ideas] Thoughts on allowing Path objects in shlex.join

2023-05-12 Thread mitchell . negus . 57
At the moment, `shlex.join` raises ``` TypeError: expected string or bytes-like object ``` when given `pathlib.Path` objects. Since `subprocess.run` and related subprocess commands allow `Path` since Python 3.6 and 3.8 for Windows, it seems intuitive to me that `shlex.join` be able to handle p

[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'