A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2008-September/082408.html below:

[Python-Dev] ',' precedence in documentation

[Python-Dev] ',' precedence in documentationEric Smith eric at trueblade.com
Mon Sep 15 05:36:57 CEST 2008
Greg Ewing wrote:
> Guido van Rossum wrote:
> 
>> Perhaps we should aim to kill "assert B, S" as well?
> 
> Maybe
> 
>   assert B else S
> 
> ?

If we really want to change it, I think:
   assert B as S
is better because S is the string to report; that is, "if B is false, 
report the problem as the string S".

'else' implies to me what to do if you're not failing the assert, which 
is not the case.

Personally I'm not convinced the syntax is so unusual as it currently 
stands.
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4