Is there a functional assert(x==y, 'error msg') ?
I can only find the assert that is used like;
assert x==y, 'error msg'
*Vincent Davis
720-301-3003 *
vinc...@vincentdavis.net
my blog http://vincentdavis.net |
LinkedInhttp://www.linkedin.com/in/vincentdavis
--
http://mail.python.org/mailman
On Sat, May 8, 2010 at 12:04 PM, Vincent Davis vinc...@vincentdavis.netwrote:
Is there a functional assert(x==y, 'error msg') ?
I can only find the assert that is used like;
assert x==y, 'error msg'
What about:
def assertfunc(expr, msg):
assert expr, msg
cheers
James
--
http
On Fri, May 7, 2010 at 8:38 PM, James Mills prolo...@shortcircuit.net.auwrote:
On Sat, May 8, 2010 at 12:04 PM, Vincent Davis
vinc...@vincentdavis.netwrote:
Is there a functional assert(x==y, 'error msg') ?
I can only find the assert that is used like;
assert x==y, 'error msg'
What