Rather than a new function, maybe a flag?

read(n, strict=True)

(Not sure if a block flag would also be useful, but maybe)

-CHB

--
Christopher Barker, PhD (Chris)

Python Language Consulting
  - Teaching
  - Scientific Software Development
  - Desktop GUI and Web Development
  - wxPython, numpy, scipy, Cython