<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 2, 2014 at 8:46 AM, anatoly techtonik <span dir="ltr"><<a href="mailto:techtonik@gmail.com" target="_blank">techtonik@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><div class="h5">On Thu, Jan 2, 2014 at 4:28 PM, Brett Cannon <<a href="mailto:brett@python.org">brett@python.org</a>> wrote:<br>
> On Thu, Jan 2, 2014 at 7:37 AM, Tal Einat <<a href="mailto:taleinat@gmail.com">taleinat@gmail.com</a>> wrote:<br>
>> On Wed, Jan 1, 2014 at 9:01 PM, anatoly techtonik <<a href="mailto:techtonik@gmail.com">techtonik@gmail.com</a>><br>
>> wrote:<br>
>> > Fixing this thing will make my happy (or very sad if you'd like this).<br>
>> ><br>
>> > Problem is described here:<br>
>> > <a href="http://stackoverflow.com/a/6416333/239247" target="_blank">http://stackoverflow.com/a/6416333/239247</a><br>
>> > Summary:<br>
>> > 1. chdir()<br>
>> > 2. dirname(__file__)<br>
>> > 3. FAIL<br>
>> ><br>
>> > Proposal:<br>
>> > from __future__ import abs__file__<br>
>><br>
>> Anatoly, this subject was already discussed on this list, just three<br>
>> months ago, in a thread you started! [1]_<br>
>><br>
>> To quote one of Nick Coglahan's replies [2]_:<br>
>><br>
>> > Note that any remaining occurrences of non-absolute values in __file__<br>
>> > are<br>
>> > generally considered bugs in the import system. However, we tend not to<br>
>> > fix<br>
>> > them in maintenance releases, since converting relative paths to<br>
>> > absolute<br>
>> > paths runs a risk of breaking user code.<br>
>><br>
>> > We're definitely *not* going to further pollute the module namespace<br>
>> > with<br>
>> > values that can be trivially and reliably derived from existing values.<br>
><br>
><br>
> This was also changed in Python 3.4 back in October:<br>
> <a href="http://hg.python.org/cpython/rev/76184b5339f2" target="_blank">http://hg.python.org/cpython/rev/76184b5339f2</a><br>
<br>
</div></div>Thanks. That's just what I was looking for - a status update.<br>
Links in emails are not telling anything about progress being<br>
made, roadmap, problems and versions of Python. Seem like<br>
tracker is a poor tool to track this stuff too.<br></blockquote><div><br></div><div>It's not in released code yet so there is no way to really promote this in a way that is guaranteed not to change. It will be in the What's New doc for Python 3.4, though, when the final version is released: <a href="http://docs.python.org/3.4/whatsnew/3.4.html#other-language-changes">http://docs.python.org/3.4/whatsnew/3.4.html#other-language-changes</a></div>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Now in spite of recent Python 3 status update, the question is how<br>
possible to make this feature more visible and implemented in<br>
previous version as from __future__ import abs__file__?<br></blockquote><div><br></div><div>There is no chance that will ever happen.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
I'd like to ask for two perspectives:<br>
1. technical feasibility<br></blockquote><div><br></div><div>I don't see why it wouldn't be technically possible since I made it work in Python 3.4.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
2. political obstacles (backward compatibility policy / process obstacles),<br>
even if they are obvious<br></blockquote><div><br></div><div>It would be a total break in backwards-compatibility by adding a new feature in a bugfix release and that's never acceptable (and that rule has been in effect since Python 2.2.1).</div>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Also, what is the process of nominating this features to selection in<br>
Python 2.8 (or whatever comes out of this incremental development idea)?<br></blockquote><div><br></div><div>There is no future Python 2.8 release so there is no process to nominate something; PEP 404 is very clear on this: <a href="http://python.org/dev/peps/pep-0404/">http://python.org/dev/peps/pep-0404/</a> . And there is no "incremental development idea" or something that's going to change the current development process of Python so that part of the questions doesn't make sense to me.</div>
</div></div></div>