Added support for fopen and opening files.
Moved common stream functionality into the __builtins__.file module.
Moved common type checking functionality into the __builtins__.types module.
1try: 2f=open("tests/read_file.py")# this file! 3exceptIOError,exc: 4print"I/O error occurred:",exc.value 5raise 6 7try: 8s=f.read(5) 9prints# try: 10s=f.read(49) 11prints# f = open("tests/read_file.py") # this file! 12s=f.read() 13prints 14finally: 15f.close()