[Python-Dev] question/comment about documentation of relative imports

Darren Dale dsdale24 at gmail.com
Tue Oct 5 22:19:57 CEST 2010


On Tue, Oct 5, 2010 at 3:37 PM, Terry Reedy <tjreedy at udel.edu> wrote:
> On 10/5/2010 2:21 PM, Guido van Rossum wrote:
>>
>> On Tue, Oct 5, 2010 at 11:17 AM, Darren Dale<dsdale24 at gmail.com>  wrote:
>>>
>>> The issue is implementing a PEP with nice support for relative
>>> imports, and then documenting that it should never be used.
>>
>> Isn't this mostly historical? Until the new relative-import syntax was
>> implemented there were various problems with relative imports. The
>> short-term solution was to recommend not using them. The long-term
>> solution was to implement an unambiguous syntax. Now it is time to
>> withdraw the anti-recommendation. Of course, without going overboard
>> -- I still find them an acquired taste; but they have their place.
>
> Darren, if you have not yet done so, open a tracker that quotes the above
> and gives your recommended changes at which locations.

Done: http://bugs.python.org/issue10031

Darren


More information about the Python-Dev mailing list