[Python-ideas] except expression

Yury Selivanov yselivanov.ml at gmail.com
Thu Feb 20 05:37:00 CET 2014


On 2/19/2014, 11:24 PM, Chris Angelico wrote:
> On Thu, Feb 20, 2014 at 2:55 PM, Yury Selivanov <yselivanov.ml at gmail.com> wrote:
>> On 2/19/2014, 8:18 PM, Chris Angelico wrote:
>>> Advantages of the arrow include ->
>> I would refrain from introducing a new operator here,
>> especially '->'.
>>
>> This one may later be used for communication between
>> channels/queues or other async stuff (like in golang,
>> although they use '<-'.)
> Technically, -> does exist in the language:
I know, and this is another reason to not to use
'->' for the except expression.

>
> http://www.python.org/dev/peps/pep-3107/
>
> I don't know if it's still available for use as an operator, but I'd
> be extremely cautious about using <- as an operator; it could be
> binary less-than followed by unary minus:
Sorry, I can't find where I suggested to use '<-' in Python.

Yury


More information about the Python-ideas mailing list