A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-December/041133.html below:

[Python-Dev] Relative import

[Python-Dev] Relative import [Python-Dev] Relative importGreg Ewing greg at cosc.canterbury.ac.nz
Wed Dec 17 17:36:36 EST 2003
Nick Coghlan <ncoghlan at iinet.net.au>:

> A: from __absolute__.dotted.name import foo
> B: from __relative__.dotted.name import bar
> C: from __heirarchy__.dotted.name import foobar
> D: from dotted.name import barfoo
> 
> Then Guido's migration plan would apply to the progression of the D 
> semantics from the Python 2.3 model to being a shorthand for the 
> absolute semantics.
> 
> And once _that_ has happened, then we could get rid of the 
> '__absolute__' version in the name of TOOWTDI.

That's where I disagree - I think that type C semantics should
be the default/least ugly/easiest to get, not type A.

But I wouldn't like any of the others to be as ugly as those,
either.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg at cosc.canterbury.ac.nz	   +--------------------------------------+

More information about the Python-Dev mailing list

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