[Pythonmac-SIG] Re: MacPython and line-endings

Guido van Rossum guido@python.org
Fri, 12 Oct 2001 07:51:17 -0400


> Sorry, I'm being less than clear. [lemme check ... pompom...]
> Yes. All the routines in the import chain (both in the find pass and
> in the execute pass) send filenames and FILE*s around. Fileobjects are
> nowhere to be seen.
> 
> That's really the main reason for my original impression that this
> should be done at stdio level: all the logic that is in import.c (and
> importdl.c, and probably in the source command, etc) knows nothing
> about Python objects and uses normal C conventions. So a Python based
> solution (or a solution on the level of fileobjects) won't cut it if
> you want this to work also for scripts and modules that are imported.

Aha.  But here we have a subset of the original problem: there's no
interactive reading, and no seeking.

--Guido van Rossum (home page: http://www.python.org/~guido/)