[Python-Dev] Questionable AST wibbles

Nick Coghlan ncoghlan at gmail.com
Fri Oct 21 23:43:01 CEST 2005


Jeremy Hylton wrote:
> I would like to keep them separate.  The compiler produces code
> objects, but consumers of code objects don't need to know anything
> about the compiler.

Please do keep these separate - the only reason I've ever had to muck with 
code objects is to check if a function is a generator or not, and including 
the entire compiler header just for that seemed like overkill.

It's not a huge issue for me, but the separate header files do give better 
'separation of concerns'.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://boredomandlaziness.blogspot.com


More information about the Python-Dev mailing list