[issue5947] Deprecate CObject

2009-05-06 Thread Georg Brandl
Georg Brandl added the comment: Applied in r72397. -- nosy: +georg.brandl resolution: -> accepted status: open -> closed ___ Python tracker ___ _

[issue5947] Deprecate CObject

2009-05-06 Thread Larry Hastings
Larry Hastings 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 t

[issue5947] Deprecate CObject

2009-05-05 Thread Larry Hastings
New submission from Larry Hastings : 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 deprec