Edgewall Software

Changes between Initial Version and Version 1 of Ticket #11600, comment 32


Ignore:
Timestamp:
May 26, 2014, 5:14:41 PM (6 years ago)
Author:
Ryan J Ollos

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11600, comment 32

    initial v1  
    1 The pattern in the use of relative imports I see is that relative imports are used to import from modules within the same parent module. For example, importing from a module in `trac.wiki` while in another module of `trac.wiki`, relative imports would be used. So we could go the other direction and make sure this relative import pattern is implemented everywhere. I wonder though, what the advantages might be.
     1The pattern in the use of relative imports I see is that relative imports are used to import from modules //within the same packages//. For example, importing from a module in `trac.wiki` to another module of `trac.wiki`, relative imports would be used. So we could go the other direction and make sure this relative import pattern is implemented everywhere. I wonder though, what the advantages might be.