Re: [Python-ideas] Python octal escape character encoding "wats"

2018-11-10 Thread Richard Damon
On 11/9/18 11:19 PM, Steven D'Aprano wrote: > On Sat, Nov 10, 2018 at 12:56:07PM +1100, Chris Angelico wrote: > >> Not ambiguous. It takes as many valid octal digits as it can. > What is the rationale for that? Hex escapes don't. > > My guess is, "Because that's what C does". And C probably does it

[Python-ideas] Proposing additions to the standard library

2018-11-10 Thread Jonathan Crall
I'm interested in proposing several additions to the Python standard library, and I would like more information on the procedure for doing so. Are all additions done via a PEP? If not what is the procedure. If so, I've read that the first step was to email this board and get feedback. I have a lib

Re: [Python-ideas] Proposing additions to the standard library

2018-11-10 Thread Steven D'Aprano
On Sat, Nov 10, 2018 at 08:36:52PM -0500, Jonathan Crall wrote: > I'm interested in proposing several additions to the Python standard > library, and I would like more information on the procedure for doing so. > Are all additions done via a PEP? Not necessarily. Small, obvious enhancements can go

Re: [Python-ideas] Proposing additions to the standard library

2018-11-10 Thread Jonathan Crall
@Steve, this is just the sort of feedback I was looking for. Small and conservative additions make sense. I definitely think that some functions do fit into existing stdlib modules. For instance, AutoDict might go in collections. Sorry, some of these aren't descriptive enough, and if you're trying

[Python-ideas] Range and slice syntax

2018-11-10 Thread Nicholas Harrison
I'm aware that syntax for ranges and slices has been discussed a good amount over the years, but I wanted to float an idea out there to see if it hasn't been considered before. It's not really original. Rather, it's a combination of a couple parts of Python, and I find it fascinatingly-consistent w

Re: [Python-ideas] Range and slice syntax

2018-11-10 Thread Chris Angelico
On Sun, Nov 11, 2018 at 4:59 PM Nicholas Harrison wrote: > It has a couple of siblings that should be obvious (think list or set > comprehension): > > [start:stop:step] # gives a list > {start:stop:step} # gives a set > Be careful of this last one. If you omit the step, it looks like this: {sta