2 Using the until argument

If you specify until, the value can be one of many things, all intended to indicate a point in time until which to cache. The until argument accepts any one of the following:

The Python equivalent of the <:cache until=foo:> tag is:

import TimeUtil
__expiration = TimeUtil.convertUntil(foo)