Wrapping paper, anyone ?

r0g aioe.org at technicalbloke.com
Wed Dec 16 08:36:32 EST 2009


Peter Otten wrote:
> simon wrote:
> 
> Nice :)
> 
> --- stars.py    2009-12-16 10:52:49.553505036 +0100
> +++ stars_fixed.py      2009-12-16 10:53:32.545786454 +0100
> @@ -48,7 +48,9 @@
>      def __init__(self):
>          self.calls = []
> 
> -    __getattr__ = ScribeCall
> +    def __getattr__(self, name):
> +        return ScribeCall(self, name)
> +
>      def run(self, ctx):
>          for call in self.calls:
>              #print "ctx.%s(%s)" % (call.name, ', '.join(str(x) for x in 
> call.args))
> 
> Peter


Nice :) Now all I need is an A0 printer, maybe Santa will bring me one!

Roger.



More information about the Python-list mailing list