Thomas Guettler wrote:
> Is it possible to change future python versions, that
> assert accept parenthesis?


It's possible, but extremely unlikely that it will ever happen.  assert
is not a function, but a statement (like print).  Statements don't use
parentheses; when you use parentheses, it considers that a tuple.

For example, if you try this with print:

print ("hello","world")

you see that in prints out a tuple value, rather than treating "hello"
and "world" as arguments.  Same thing with assert.


-- 
CARL BANKS

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to