Re: YAML in std lib?

2017-07-31 Thread Paul Rubin
Ben Finney writes: > I don't know of any PEP yet which specifies exactly what to add to the > standard library for YAML YAML is more of a Ruby thing, so there might not be much constituency for putting it in Python. -- https://mail.python.org/mailman/listinfo/python-list

Re: @lru_cache on functions with no arguments

2017-07-31 Thread Terry Reedy
On 7/31/2017 7:31 PM, t...@tomforb.es wrote: As part of the Python 3 cleanup in Django there are a fair few uses of @functools.lru_cache on functions that take no arguments. This makes no sense to me. If the function is being called for side-effects, then it should not be cached. If the fun

Re: @lru_cache on functions with no arguments

2017-07-31 Thread codewizard
On Monday, July 31, 2017 at 7:31:52 PM UTC-4, t...@tomforb.es wrote: > As part of the Python 3 cleanup in Django there are a fair few uses of > @functools.lru_cache on functions that take no arguments. A lru_cache isn't > strictly needed here, but it's convenient to just cache the result. Some >

@lru_cache on functions with no arguments

2017-07-31 Thread tom
As part of the Python 3 cleanup in Django there are a fair few uses of @functools.lru_cache on functions that take no arguments. A lru_cache isn't strictly needed here, but it's convenient to just cache the result. Some examples are here: https://github.com/django/django/pull/8825/files I did s

Re: Question

2017-07-31 Thread oliver
On Mon, Jul 31, 2017, 17:33 Sonja Williams via Python-list, < python-list@python.org> wrote: > > > > > Good Day, > > I have decided to learn more about programming so I picked up the book > Beginning Programming by Matt Telles. After following the directions > verbatim and going to the Python sit

Re: Question

2017-07-31 Thread Chris Angelico
On Tue, Aug 1, 2017 at 7:11 AM, Sonja Williams via Python-list wrote: > > > > > Good Day, > > I have decided to learn more about programming so I picked up the book > Beginning Programming by Matt Telles. After following the directions > verbatim and going to the Python site to download the lat

Question

2017-07-31 Thread Sonja Williams via Python-list
Good Day, I have decided to learn more about programming so I picked up the book Beginning Programming by Matt Telles. After following the directions verbatim and going to the Python site to download the latest version 3, which is what the book recommended, I keep getting the following er

Re: Issues with Python

2017-07-31 Thread Daniele Forghieri
Il 30/07/2017 23:31, Ode Idoko via Python-list ha scritto: Hi, I am new to Python and though I have been able to download the 3.6 version on my laptop , I still have issues with the syntax. While writing a program to execute, it will display syntax error with different shades of color usually

Re: YAML in std lib?

2017-07-31 Thread Skip Montanaro
In addition to the reasons given by Steve, Paul, and others, the barrier to entry to the standard library has grown as the domains to which Python is applied have increased. To justify the maintenance effort, when considering a module or package for inclusion in the standard library, you want it to

Re: YAML in std lib?

2017-07-31 Thread Lele Gaifax
Paul Moore writes: > As I understand it, YAML as a markup language is not as popular as it once > was. Given all the hype around Docker these days, I'm not convinced that's true :) > In addition, the main YAML library on PyPI is PyYAML There is fork, https://pypi.python.org/pypi/ruamel.yaml,

Re: zipapp should not include temporary files?

2017-07-31 Thread Paul Moore
On Friday, 28 July 2017 17:53:08 UTC+1, Irmen de Jong wrote: > On 28/07/2017 18:36, Irmen de Jong wrote: > > On 27/07/2017 00:03, Paul Moore wrote: > >> If you want to create a feature request for a filter function on > >> bugs.python.org and assign it to me, I'll take a look at it. \ > > > > >

Re: YAML in std lib?

2017-07-31 Thread Paul Moore
On Sunday, 30 July 2017 07:21:00 UTC+1, Steve D'Aprano wrote: > 1. Perhaps nobody has thought of it. > > 2. The author of the library refused to allow it, or demanded > conditions which the Python developers either cannot or will > not meet. > > 3. The library is under rapid developme