Armin> But it's all quite obscure.
If this was comp.lang.python I'd nominate this for QOTW...
Skip
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/opt
Hi Michael,
On Wed, Jun 15, 2005 at 03:26:00PM +0100, Michael Hudson wrote:
> > Hum, you probably don't want to know, but it works just fine to forget
> > a Py_INCREF before PyModule_AddObject() for the following reason:
>
> No, it's more complicated than that, at least in an embedded
> scenario
Armin Rigo <[EMAIL PROTECTED]> writes:
> Hi Skip,
>
> On Wed, Jun 15, 2005 at 06:35:10AM -0700, [EMAIL PROTECTED] wrote:
>> Why this worked is a bit mystical. Perhaps it never gets freed because the
>> object just happens never to be DECREF'd (but that seems unlikely).
>> /* Add the Dial
Hi Skip,
On Wed, Jun 15, 2005 at 06:35:10AM -0700, [EMAIL PROTECTED] wrote:
> Why this worked is a bit mystical. Perhaps it never gets freed because the
> object just happens never to be DECREF'd (but that seems unlikely).
> /* Add the Dialect type */
> + Py_INCREF(&Dialect_Type);
>