← index #9280PR #2939
Related · high · value 0.902
QUERY · ISSUE

utime.sleep_us() overflow

openby socketpairopened 2022-09-11updated 2022-09-12
docs
>>> from utime import sleep_us
>>> sleep_us(24*3600*1000_000)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OverflowError: overflow converting long int to machine word

It's not documented about any limits on the argument. Either fix in documentation or fix. Fixing is better.

CANDIDATE · PULL REQUEST

utime module documentation fixes and cleanup

closedby SpotlightKidopened 2017-03-05updated 2017-03-18
  • Fix mis-spelling of ticks_add in code examples.
  • Be consistent about parentheses after function names.
  • Be consistent about formatting of function, variable and constant names.
  • Be consistent about spaces and punctuation.
  • Fix some language errors (missing or wrong words, wrong word order).
  • Keep line length under 90 chars.

Signed-off-by: Christopher Arndt chris@chrisarndt.de

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied