[Python-ideas] 'from os.path import FILE, DIR' or internal structure of filenames
ncoghlan at gmail.com
Mon Sep 30 00:18:41 CEST 2013
On 30 Sep 2013 05:14, "Terry Reedy" <tjreedy at udel.edu> wrote:
> On 9/29/2013 1:36 PM, anatoly techtonik wrote:
>> On Sun, Sep 29, 2013 at 9:15 AM, Nick Coghlan <ncoghlan at gmail.com> wrote:
>>> On 29 September 2013 13:28, INADA Naoki <songofacandy at gmail.com> wrote:
>>>> os.path.abspath(__file__) returns wrong path after chdir.
>>>> So I don't think abspath of module can be trivially and reliably
>>>> from existing values.
>>> Hence the part about any remaining instances of non-absolute __file__
>>> values being considered a bug in the import system.
>> Bug that will not be fixed, i.e. a wart.
> Nick said "we tend not to fix them in maintenance releases", which I take
to mean we can fix in new versions.
Correct, it's the kind of arguably backwards incompatible bug fix that
users will generally tolerate in a feature release but would be justifiably
upset about in a maintenance release.
>> And as a result we don't have a way to reliably reference filename
>> of the current script and its directory. Hence the proposal.
> The proposed addition would not happen in maintenance releases either.
> Terry Jan Reedy
> Python-ideas mailing list
> Python-ideas at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas