Jorge Vargas wrote: > now I'm wondering is there a way to set kid to thread missing > variables as None? or a better implementation then this? how will you > do it in plain kid?
As Evelind already suggested, use defined() and value_of(). Ignoring undefined values has been suggested sometimes, but in the end the consensus was that it is more pythonic not to suppress NameErrors. It seems Genshi did this, but now they are also abandoning it. -- Chris ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ kid-template-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/kid-template-discuss
