A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-April/014092.html below:

[Python-Dev] Import hook to do end-of-line conversion?

[Python-Dev] Import hook to do end-of-line conversion? [Python-Dev] Import hook to do end-of-line conversion?Greg Stein gstein@lyra.org
Sat, 7 Apr 2001 09:21:14 -0700
On Sat, Apr 07, 2001 at 06:25:52PM +0200, Fredrik Lundh wrote:
> jack wrote:
> > There's talk on the PythonMac-SIG to create an import hook that would
> > read modules with either \r, \n or \r\n newlines and convert them to
> > the local convention before feeding them to the rest of the import
> > machinery.
> 
> why not fix the compiler instead?

Exactly. That is where the correct fix should go. The compile can/should
recognize all types of newlines as the NEWLINE token.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4