Re: [Python-ideas] Clearer communication

2019-02-01 Thread Alex Shafer via Python-ideas
Agreed, thanks James for asking. And thanks for bringing up the issue of communication mode in different mediums, Robert. I personally think the type of discussions taking place on this list would be better suited to a more interactive or conversational medium. Is there already, or would

Re: [Python-ideas] Add list.join() please

2019-01-29 Thread Alex Shafer via Python-ideas
(it)(map(str, it)) >>> >>> Done! Does that really need to be in the STDLIB? >>> >>> On Tue, Jan 29, 2019, 7:11 PM Alex Shafer via Python-ideas >>> >> >>>> 1) I'm in favor of adding a stringify method to all collec

Re: [Python-ideas] Add list.join() please

2019-01-29 Thread Alex Shafer via Python-ideas
ify = lambda it: type(it)(map(str, it)) > > Done! Does that really need to be in the STDLIB? > > On Tue, Jan 29, 2019, 7:11 PM Alex Shafer via Python-ideas > >> 1) I'm in favor of adding a stringify method to all collections >> >> 2) strings are special and worthy of a

Re: [Python-ideas] Add list.join() please

2019-01-29 Thread Alex Shafer via Python-ideas
1) I'm in favor of adding a stringify method to all collections 2) strings are special and worthy of a "special case" because strings tend to be human readable and are used in all kinds of user interface. Original Message On Jan 29, 2019, 16:04, Steven D'Aprano wrote: > On

[Python-ideas] Single line single expression try/except syntax

2019-01-27 Thread Alex Shafer via Python-ideas
Hello, I'd like to discuss an idea I had to shorten the syntax for the common case of having a try/except/finally/else block where all of the following conditions are met: * There is only one except block, no finally or else * The exception is not captured in the except block, i.e. `except