[Python-ideas] AST Transformation Hooks for Domain Specific Languages

Nick Coghlan ncoghlan at gmail.com
Fri Apr 8 14:58:29 CEST 2011


On Fri, Apr 8, 2011 at 9:32 PM, Nick Coghlan <ncoghlan at gmail.com> wrote:
>  get_cookie() - Magic cookie to add to PYC files containing instances
> of the DSL (allows recompilation to be forced if the DSL is updated)

An alternative might be to require that the cookie be provided when
the DSL is registered. That would make cookie validity checking
faster. That kind of implementation detail is in the noise though,
compared to the possible implications of the overall idea.

Cheers,
Nick.

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



More information about the Python-ideas mailing list