Modify ↓
Ticket #148 (new defect)
Opened 3 years ago
relative imports required for inter-package imports
| Reported by: | anonymous | Owned by: | xi |
|---|---|---|---|
| Priority: | normal | Component: | pyyaml |
| Severity: | normal | Keywords: | |
| Cc: |
Description
I ran into a case where the line
from parser import *
in loader.py referenced an external module. Such imports really should be relative:
from .parser import *
This is especially important in view of [PEP328 http://www.python.org/dev/peps/pep-0328/] since absolute imports are being phased out.
Attachments
Note: See
TracTickets for help on using
tickets.
