You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the above more or less in 717d8a8cff8367cb9ebd2. can't really lose the has_def() and hasattr() calls. some runsnakerun profiling revealed the biggest hit as not using StringIO anymore (4737c26) and to get rid of that builtin copy (6c06a32). we're within 10% of jinja2 in that particular test now.
Migrated issue, originally created by Michael Bayer (@zzzeek)
its time to get around to this.
the "file" and "module" arguments to <%namespace> become mutually exclusive. one or the other.
Namespace
breaks intoTemplateNamespace
,ModuleNamespace
, andNamespace
which still is used if there's no template or module.__getattr__
can now be broken down to not require the "has_def()" and "hasattr()" calls, just catch attributeerror and re-raise.more importantly,
__getattr__
should put the resolved method into__dict__
.when we do the lambda *args, **kwargs:callable_(context, *args, **kwargs), lets use functools.partial . its native
inline _get_star(), plus the partial, should speed it up a bit
The text was updated successfully, but these errors were encountered: