File object + readline + iter

Roman Yakovenko romany at actimize.com
Wed May 21 00:45:46 EDT 2003


	Hi. I have a few questions.
1. Is there is some reason why readline + iter cann't be used 
together without correcting file pointer position (seek) ?

( I found out that readline is implemented at C level, while
__iter__ and next (I think) implemented at Python level. 
Why do they don't use same read-ahead buffer? Is the only problem
using same buffer is different level of implementation? ) 

2.Where can I find python source code for built in module ?

Thanks. 
	
	Roman





More information about the Python-list mailing list