Re: low level python read's

2007-01-07 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, gz wrote: > So how do i stop python from trying to be smart and just read *at most* > 1000 chars and let it go if he(it?*) reads less? For low level file stuff use the functions in the `os` module, i.e. `os.read()`. > p.s *is python a "he" or an "it"? I'd say "it". Ciao

low level python read's

2007-01-07 Thread gz
Hi! I wanted to use python to test a simple character device (on linux) and I'm running into strange behaviour of read.. I have a short buffer inside my device and the idea is that it blocks read's when the buffer is empty. For reads that ask for more characters that the buffer holds the device sh