[Python-ideas] Re: Pre PEP: Python Literals (was custom strings before)

2021-07-02 Thread Rob Cliffe via Python-ideas
On 02/07/2021 08:12, Thomas Güttler wrote: Hi Nick and all other Python ideas friends, yes, you are right. There is not much difference between PEP-501 or my proposal. One argument why I would like to prefer backticks: Some IDEs detect that you want to use a f-string automatically: You ty

[Python-ideas] Re: CACHEDIR.TAG for __pycache__ on Linux

2021-07-02 Thread adigitoleo (Leon)
Interesting stuff, thanks for sharing. I wasn't sure if any other tools supported it but I assumed they would... Thanks for setting that straight. I was tarring up some code to shift it onto a cluster earlier, and I decided to experiment with those flags. When I saw that the `.mypy_cache` folder wa

[Python-ideas] Re: CACHEDIR.TAG for __pycache__ on Linux

2021-07-02 Thread Jonathan Fine
Hi Leon (and Bryan) Here's some comments on your interesting suggestion. Bryan Ford's CACHEDIR.TAG proposal is supported by gnu tar. See: https://www.gnu.org/software/tar/manual/html_node/exclude.html By the way, I've copied Bryan. There's a cachedir_tag module on PyPi, by Alex Willmer: https:/

[Python-ideas] CACHEDIR.TAG for __pycache__ on Linux

2021-07-02 Thread adigitoleo (Leon)
Hello, I have a small suggestion to make about the generation of the `__pycache__` directory. Would it be possible to also generate a `CACHEDIR.TAG` file in this directory when running Python on Linux? The file is (informally?) specified at . This would allow `__pyca

[Python-ideas] Re: Pre PEP: Python Literals (was custom strings before)

2021-07-02 Thread Nick Coghlan
On Fri, 2 Jul 2021, 5:12 pm Thomas Güttler, wrote: > Hi Nick and all other Python ideas friends, > > yes, you are right. There is not much difference between PEP-501 or my > proposal. > > One argument why I would like to prefer backticks: > > Some IDEs detect that you want to use a f-string autom

[Python-ideas] Re: Pre PEP: Python Literals (was custom strings before)

2021-07-02 Thread Thomas Güttler
Hi Nick and all other Python ideas friends, yes, you are right. There is not much difference between PEP-501 or my proposal. One argument why I would like to prefer backticks: Some IDEs detect that you want to use a f-string automatically: You type: name = 'Peter' print('Hello {name... and th