Message191592
| 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)
... |
|