Re: [Python-Dev] [Python-checkins] PyCapsule backport

2010-03-25 Thread Larry Hastings
Just a reply to one part of your message, as I really need to get back to work for now. Antoine Pitrou wrote: I think solution #1 would be the best one. #2 looks too complicated. #2 is a seven-line diff, below. /larry/ Index: cobject.c =

Re: [Python-Dev] [Python-checkins] PyCapsule backport

2010-03-25 Thread Antoine Pitrou
Hello Larry, > You're right, my changes aren't backwards compatible. I thought it was > reasonable for four reasons: > > 1. The CObject API isn't safe. It's easy to crash Python 2.6 in just a > few lines by mixing and matching CObjects. Switching Python to capsules > prevents a class of ex