[issue5947] Deprecate CObject
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
[issue5947] Deprecate CObject
Georg Brandl ge...@python.org added the comment: Applied in r72397. -- nosy: +georg.brandl resolution: - accepted status: open - closed ___ 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
[issue5947] Deprecate CObject
New submission from Larry Hastings la...@hastings.org: With the Capsule API patch accepted, I'd like to officially deprecate CObject. This patch causes Python to emit a single runtime warning the first time a CObject is constructed in a particular Python instance. If those aren't the right semantics for a deprecation warning, please let me know and I'll fix it. -- components: Interpreter Core files: lch.deprecatecobject.r72363.diff keywords: patch messages: 87302 nosy: larry severity: normal status: open title: Deprecate CObject type: behavior versions: Python 3.1 Added file: http://bugs.python.org/file13901/lch.deprecatecobject.r72363.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