sprhawk / python-on-a-chip

Automatically exported from code.google.com/p/python-on-a-chip
Other
0 stars 0 forks source link

Add wait() to sys module #90

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
ipm> import sys
ipm> def wait(n):
 future = sys.time() + n
 while sys.time() < future: pass

 ipm> wait(5000)
 Error:     0xEC
  Release: 0x08
  FileId:  0x09
  LineNum: 2086
Traceback (top first):
  wait()
  <ipm>()
  ipm()
  main()
  <module>.

Original issue reported on code.google.com by dwhall...@gmail.com on 26 May 2010 at 4:05

GoogleCodeExporter commented 9 years ago
r562
- Added wait() to the sys library.  It's pretty handy.
- Adjusted a heap-exhaust-value in t291.py since sys.wait modified the heap 
usage.

The SystemError was most likely caused by Issue #109 and is not present anymore.

Original comment by dwhall...@gmail.com on 5 Aug 2010 at 2:40