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
(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
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
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
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