[Zope-Checkins] CVS: Zope27/lib/python/TAL - TALInterpreter.py:1.68.26.2

Guido van Rossum guido@python.org
Mon, 09 Sep 2002 07:49:28 -0400


> Provide an opportunity for third-party products to use a full
> Unicode-aware StringIO by monkey-patching two appropriate methods
> until one is completely integrated into Zope.

What on earth is "monkey-patching"?  From the patch, it looks like you
mean "overriding a method."

> +    def StringIO(self):
> +        # Third-party products wishing to provide a full Unicode-aware
> +        # StringIO can do so by monkey-patching this method.
> +        return StringIO()
> +

> -        self.stream = stream = StringIO()
> +        self.stream = stream = self.StringIO()

--Guido van Rossum (home page: http://www.python.org/~guido/)