Style question: Importing modules from packages
Wolfgang Maier
wolfgang.maier at biologie.uni-freiburg.de
Thu Dec 4 15:56:44 EST 2014
More information about the Python-list mailing list
Thu Dec 4 15:56:44 EST 2014
- Previous message (by thread): Style question: Importing modules from packages - 'from' vs 'as'
- Next message (by thread): Style question: Importing modules from packages - 'from' vs 'as'
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 04.12.2014 19:05, Chris Angelico wrote: > > With os.path it definitely is. With the actual code in question, it's > a Python 2.7 project that mostly uses relative imports - inside > package.module1 is "import module2" etc - and I was writing an > external script that calls on one of the modules. What ? I'm usually thinking Python 3 not 2 and I'm never sure which Python 2.x has backported which feature of 3, but I thought implicit relative imports like you seem to describe are not working in 2.7 ? Wolfgang
- Previous message (by thread): Style question: Importing modules from packages - 'from' vs 'as'
- Next message (by thread): Style question: Importing modules from packages - 'from' vs 'as'
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list