On 09/29/2015 08:31 AM, Markus Armbruster wrote: > > To really cut the verbosity, I figure we'd have to do something more > radical, like having cgen() recognize a (short!) pattern and replace it > with a full-blown error check. Not sure that's actually a good idea, > though :)
Another radical idea would be write the python code to not care about whitespace or indentation discrepancies, because we instead run things through 'indent' as part of the code generation. Then we can emit ugly code without caring about indentation or multi-line, if it makes the python easier to write, and the output would still be nicely formatted. I'm not sure I want to do that, though. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature