On Mon, May 10, 2004, Greg Ewing wrote: > Nick Coghlan <ncoghlan at iinet.net.au>: >> >> The other point in favour of the current way is that a bare import >> statement is *always* absolute, which further encourages absolute >> imports as the standard approach. > > I don't understand why absolute imports should be regarded as the > "standard approach". Absolute imports are appropriate for some things, > relative imports are appropriate for other things. You can't say that > one is "standard" and the other isn't. The way I'd put it is that relative imports are used only by experts: people building chunks of Python code large enough to require packages. Therefore absolute imports make more sense as the default. -- Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/ Adopt A Process -- stop killing all your children!
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4