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/2000-April/003519.html below:

Arbitrary attributes on funcs and methods)

[Python-Dev] Object customization (was: Arbitrary attributes on funcs and methods) [Python-Dev] Object customization (was: Arbitrary attributes on funcs and methods)M.-A. Lemburg mal@lemburg.com
Fri, 14 Apr 2000 01:05:12 +0200
Gordon McMillan wrote:
> ...
> This is nowhere near as confusing as, say, putting a module
> named X in a package named X and then saying "from X
> import *", (hi, Marc-Andre!).

Users shouldn't bother looking into packages... only at the
documented interface ;-)

The hack is required to allow sibling submodules to import
the packages main module (I could have also written import
__init__ everywhere but that wouldn't have made things
clearer), BTW. It turned out to be very convenient during
development of all those mx packages.

-- 
Marc-Andre Lemburg
______________________________________________________________________
Business:                                      http://www.lemburg.com/
Python Pages:                           http://www.lemburg.com/python/





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