Larry Hastings <la...@hastings.org> added the comment:

It's 12:45am, and I've already learned my New Thing for the day.  I
didn't know about PendingDeprecationWarning.  That's just exactly what
CObject should throw.

Attached is a new patch.  The two CObject constructors now throw a
PendingDeprecationWarning every time they are called.

Tested manually: I create CObjects and nothing happens.  I then run
warnings.resetwarnings() and create CObjects and see a
PendingDeprecationWarning.  Perfect!

----------
Added file: http://bugs.python.org/file13903/lch.deprecatecobject.r72374.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue5947>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to