[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: rev 3363 - trunk/subversion/tests/clients/cmdline/svntest

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-10-14 12:50:40 CEST

On Mon, Oct 14, 2002 at 02:41:34AM -0500, brane@tigris.org wrote:
>...
> +++ trunk/subversion/tests/clients/cmdline/svntest/testcase.py Mon Oct 14 02:41:33 2002
> @@ -30,9 +30,11 @@
>
> def __init__(self, func):
> if isinstance(func, _Predicate):
> - self.func = func.func
> - self.cond = func.cond
> - self.text = func.text
> + # Whee, this is better than blessing objects in Perl!
> + # For the unenlightened: What we're doing here is adopting the
> + # identity *and class* of 'func'
> + self.__dict__ = func.__dict__
> + self.__class__ = func.__class__

Euh... are you sure that is doable in Python 2.0? So far, we've said the
test suite only requires 2.0. I've a sneaky feeling the above code may
require 2.1 or 2.2.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Oct 14 12:49:05 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.