| Store | Cart

Re: [Python-Dev] PEP 492 vs. PEP 3152, new round

From: Yury Selivanov <ysel...@gmail.com>
Wed, 29 Apr 2015 18:11:51 -0400

On 2015-04-29 3:24 PM, Isaac Schwabacher wrote:
> On 15-04-29, Yury Selivanov  wrote:>> Hi Ethan,
[..]
>> So I want to make this syntactically incorrect:> Does this need to be a syntax error? -"hello" raises TypeError because str doesn't have a __neg__, but there's no reason a str subclass couldn't define one. "TypeError: bad operand type for unary -: 'asyncio.Future'" is enough to clear up any misunderstandings, and if someone approaching a new language construct doesn't test their code well enough to at least execute all the code paths, the difference between a compile-time SyntaxError and a run-time TypeError is not going to save them.>


The grammar of the language should match the most common
use case.

FWIW, I've just updated the pep with a precedence table:
https://hg.python.org/peps/rev/d355918bc0d7

Yury
_______________________________________________
Python-Dev mailing list
Pyth...@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: https://mail.python.org/mailman/options/python-dev/python-dev-ml%40activestate.com

Recent Messages in this Thread
Ethan Furman Apr 29, 2015 06:32 pm
Paul Moore Apr 29, 2015 06:44 pm
Yury Selivanov Apr 29, 2015 06:46 pm
Nathaniel Smith Apr 29, 2015 07:14 pm
Yury Selivanov Apr 29, 2015 07:27 pm
Greg Ewing Apr 30, 2015 05:55 am
Isaac Schwabacher Apr 29, 2015 07:24 pm
Yury Selivanov Apr 29, 2015 10:11 pm
Isaac Schwabacher Apr 29, 2015 10:35 pm
Yury Selivanov Apr 25, 2015 08:18 pm
Guido van Rossum Apr 26, 2015 04:27 am
Nick Coghlan Apr 26, 2015 05:23 am
Greg Ewing Apr 27, 2015 12:52 pm
Yury Selivanov Apr 27, 2015 01:44 pm
Andrew Svetlov Apr 28, 2015 12:22 pm
Yury Selivanov Apr 29, 2015 01:51 am
Guido van Rossum Apr 29, 2015 02:00 am
Greg Ewing Apr 29, 2015 09:12 am
Greg Ewing Apr 29, 2015 09:12 am
Yury Selivanov Apr 29, 2015 01:55 pm
Ethan Furman Apr 29, 2015 03:29 pm
Yury Selivanov Apr 29, 2015 03:33 pm
Yury Selivanov Apr 29, 2015 04:11 pm
Greg Ewing Apr 29, 2015 10:46 pm
Yury Selivanov Apr 29, 2015 10:54 pm
Greg Ewing Apr 30, 2015 07:16 am
Guido van Rossum Apr 29, 2015 10:58 pm
Nathaniel Smith Apr 29, 2015 11:35 pm
Yury Selivanov Apr 29, 2015 11:48 pm
Guido van Rossum Apr 29, 2015 11:52 pm
Yury Selivanov Apr 30, 2015 12:04 am
Nathaniel Smith Apr 29, 2015 11:58 pm
Yury Selivanov Apr 30, 2015 12:05 am
Nathaniel Smith Apr 30, 2015 12:14 am
Greg Ewing Apr 30, 2015 08:56 am
Nathaniel Smith May 01, 2015 03:30 am
Guido van Rossum May 01, 2015 03:40 am
Nathaniel Smith May 01, 2015 03:57 am
Alexander Walters May 01, 2015 04:01 am
Greg Ewing May 01, 2015 05:58 am
Ethan Furman Apr 29, 2015 05:25 pm
Yury Selivanov Apr 29, 2015 05:44 pm
Greg Ewing Apr 29, 2015 05:40 am
Yury Selivanov Apr 29, 2015 05:47 am
Greg Ewing Apr 29, 2015 09:13 am
Messages in this thread