assert , import statements not working in this port !

30 views
Skip to first unread message

Abbas Chunawala

unread,
Dec 3, 2013, 1:54:56 AM12/3/13
to python-o...@googlegroups.com
I have made the HAVE_ASSERT and HAVE_IMPORT flags to true but these changes do not seem to work as whenever an assert is encountered in a script the board hangs.Is there anything that i am missing ?

Dean Hall

unread,
Dec 3, 2013, 8:17:37 AM12/3/13
to python-o...@googlegroups.com
If the assert is false, the VM will raise an exception and exit because there is no capability to catch exceptions.
Do a simple test, such as " assert True; print 'survived!' " and see what happens.

!!Dean

On Dec 3, 2013, at 12:54 AM, Abbas Chunawala wrote:

> I have made the HAVE_ASSERT and HAVE_IMPORT flags to true but these changes do not seem to work as whenever an assert is encountered in a script the board hangs.Is there anything that i am missing ?
>
> --
> --
> You are subscribed to the "python-on-a-chip" (or p14p for short) Google Group.
> Site: http://groups.google.com/group/python-on-a-chip
>
> ---
> You received this message because you are subscribed to the Google Groups "python-on-a-chip" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to python-on-a-ch...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages