[Import-SIG] One last try: "virtual packages"

Nick Coghlan ncoghlan at gmail.com
Tue Jul 12 10:07:31 CEST 2011

On Tue, Jul 12, 2011 at 11:01 AM, P.J. Eby <pje at telecommunity.com> wrote:
> Anyway, this'll be my last attempt at coming up with a markerless approach,
> but I do hope you'll take the time to read it carefully, as it has very
> different semantics and performance impacts from my previous proposals, even
> though it may sound quite similar on the surface.

My first reaction is "I like it". It's the only one of the proposals
put forward that will make "Why aren't my packages working?" questions
on Stack Overflow go away. Boilerplate is bad, empty __init__.py files
are boilerplate, and this change would let them die off gracefully.

__init__.py would essentially become the package equivalent of
__slots__ (i.e. declaring that the package was limited to that one

My second reaction is a work in progress. Going to need to think about
this one for a while :)


Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia

More information about the Import-SIG mailing list