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/2009-May/089565.html below:

[Python-Dev] PEP 382: little help for stupid people?

[Python-Dev] PEP 382: little help for stupid people? [Python-Dev] PEP 382: little help for stupid people?Paul Moore p.f.moore at gmail.com
Sat May 9 18:03:20 CEST 2009
2009/5/9 Chris Withers <chris at simplistix.co.uk>:
> Martin v. Löwis wrote:
>>> I thought .pth files just had python in them?
>>
>> Not at all - they never did. They have paths in them.
>
> I've certainly seen them with python in, and that's what I hate about
> them...

AIUI, there was a small special case that lines starting with "import"
are executed (see the source of site.py for details). This exception
has been exploited (some would say "abused", but I'm trying to be
unbiased here) by setuptools, at least, to do path manipulations and
such.

PEP 382 does not provide the import exception: "Unlike .pth files on
the top level, lines starting with "import" are not supported in
per-package .pth files". It's not clear to me what impact this would
have on setuptools (probably none, as top-level .pth files aren't
changed).

Paul.
More information about the Python-Dev mailing list

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