PyWart: Module access syntax
nicholas.cole at gmail.com
Sat Jan 12 13:16:20 CET 2013
On Fri, Jan 11, 2013 at 6:01 AM, Rick Johnson
<rantingrickjohnson at gmail.com>wrote:
> Python's module/package access uses dot notation.
> Like many warts of the language, this wart is not so apparent when first
> learning the language. The dot seems innocently sufficient, however, in
> truth it is woefully inadequate! Observe:
I find it reassuring to have these kinds of questions on the list, because
they actually remind me how brilliantly designed Python is.
As the user of a module I shouldn't care about the internal arrangement of
objects and files. I don't care. More than that, as the writer of a
module I should be free to refactor the internals of a module without
breaking existing code.
There is absolutely nothing wrong at all with the syntax. In fact, it's
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list