I've seen code like

  assert(a == b, "message)

in a few places.

Assert is not a function, so assert here operates on the tuple (a == b,
"message)

Since bool(a==b,"message) is always True, this assertion does nothing.

Martin
_______________________________________________
fenics mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics

Reply via email to