[Tutor] Are you allowed to shoot camels? [kinda OT]
Alan Gauld
alan.gauld at freenet.co.uk
Tue Feb 8 19:24:29 CET 2005
> That's no good. You still get something printed out. In this case:
>
> None
Of course, silly me, p will return the default value None, you need
to replace the pass with return '' or, I guess use the lambda...
> ftable = { 'a' : lambda: 'a',...
> 'd' : lambda: ''}
Now it should work and is consistent again! But only for this
trivial case of printing a label...
Alan G.
More information about the Tutor
mailing list