<p dir="ltr"><br>
On 30 Sep 2013 05:14, "Terry Reedy" <<a href="mailto:tjreedy@udel.edu">tjreedy@udel.edu</a>> wrote:<br>
><br>
> On 9/29/2013 1:36 PM, anatoly techtonik wrote:<br>
>><br>
>> On Sun, Sep 29, 2013 at 9:15 AM, Nick Coghlan <<a href="mailto:ncoghlan@gmail.com">ncoghlan@gmail.com</a>> wrote:<br>
>>><br>
>>> On 29 September 2013 13:28, INADA Naoki <<a href="mailto:songofacandy@gmail.com">songofacandy@gmail.com</a>> wrote:<br>
>>>><br>
>>>> os.path.abspath(__file__) returns wrong path after chdir.<br>
>>>> So I don't think abspath of module can be trivially and reliably derived<br>
>>>> from existing values.<br>
>>><br>
>>><br>
>>> Hence the part about any remaining instances of non-absolute __file__<br>
>>> values being considered a bug in the import system.<br>
>><br>
>><br>
>> Bug that will not be fixed, i.e. a wart.<br>
><br>
><br>
> Nick said "we tend not to fix them in maintenance releases", which I take to mean we can fix in new versions.</p>
<p dir="ltr">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.</p>
<p dir="ltr">Cheers,<br>
Nick.<br></p>
<p dir="ltr">><br>
><br>
>> And as a result we don't have a way to reliably reference filename<br>
>> of the current script and its directory. Hence the proposal.<br>
><br>
><br>
> The proposed addition would not happen in maintenance releases either.<br>
><br>
> -- <br>
> Terry Jan Reedy<br>
><br>
><br>
> _______________________________________________<br>
> Python-ideas mailing list<br>
> <a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>
> <a href="https://mail.python.org/mailman/listinfo/python-ideas">https://mail.python.org/mailman/listinfo/python-ideas</a><br>
</p>