-----BEGIN PGP SIGNED MESSAGE-----
Chris Withers wrote:
> Tres Seaver wrote:
>> Note that I have just figured out that we can make DeprecationWarnings
>> more useful by passing the 'stacklevel' argument to 'warnings.warn';
>> passing a value of 2 for that argument causes the warning to be reported
>> against the *caller* of the code issuing the warning, which makes it
>> possible to find and remove the deprecated use.
> Oooh, coool. Reckon it'd be a good idea if I changed all the deprecation
> warnings in Zope to do the same?
> I've always found them totally useless 'cos they don't tell you where
> they come from and so you can't fix them...
> Bit like the random ZODB errors when it no longer has the class for some
> long-forgotten object burried deep in an opaque pickled data structure
> which you have no hope of ever finding and deleting... but I digress ;-)
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
Zope-CMF maillist - Zope-CMF@lists.zope.org
See http://collector.zope.org/CMF for bug reports and feature requests