This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients benjamin.peterson, brett.cannon, pitrou
Date 2013-06-21.15:11:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <321168303.104948717.1371827476523.JavaMail.root@zimbra10-e2.priv.proxad.net>
In-reply-to <CAP1=2W7+VVkHXg8GMjr4mTGd2kBJpT3fBNjbeJYjqZxD=+C7sA@mail.gmail.com>
Content
> I'm attracted to the idea of making a loader lazy by simply doing
> something
> like ``class LazySourceFileLoader(LazyMixin, SourceFileLoader):
> ...``.

But then you have to make a specific Lazy subclass for each delegated
loader implementation. With a proxy class you would simply proxy each
loader instance:

existing_loader = SourceFileLoader(...)
lazy_loader = LazyLoader(existing_loader)
...
History
Date User Action Args
2013-06-21 15:11:22pitrousetrecipients: + pitrou, brett.cannon, benjamin.peterson
2013-06-21 15:11:22pitroulinkissue18275 messages
2013-06-21 15:11:22pitroucreate