[PEAK] DeprecationWarning under python 2.6

Kyle VanderBeek kylev at kylev.com
Tue Jul 14 19:32:43 EDT 2009


On Tue, Jul 14, 2009 at 3:31 PM, Sergey Schetinin <maluke at gmail.com> wrote:

> I think it would be better to apply that patch to PEAK-Rules -- create
> a new AddOn subclass with that __new__ method and use it as a
> baseclass for the classes that cause the warning.
>
> Most AddOn subclasses in other packages don't redefine __new__ and
> don't need the fix.
>

Actually, I just noticed that peak.util.addons.Registry is a descendant of
AddOn that redefines __new__ as well, and uses super().  It'll have similar
problems if we don't fix it down at the AddOn level as I've proposed.

-- 
kylev at kylev.com
 Some people have a way with words, while others... erm... thingy.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.eby-sarna.com/pipermail/peak/attachments/20090714/24015456/attachment.html


More information about the PEAK mailing list