Re: [Python-Dev] tp_finalize vs tp_del sematics

2015-09-04 Thread Valentine Sinitsyn
Hi Armin, On 04.09.2015 02:29, Armin Rigo wrote: Hi Valentine, On Thu, Sep 3, 2015 at 9:15 PM, Valentine Sinitsyn wrote: That does not make it ok to have del called several time, does it? That's a tricky question. If the Python documentation now says something like ``the __del__ m

Re: [Python-Dev] tp_finalize vs tp_del sematics

2015-09-03 Thread Valentine Sinitsyn
Hi Maciej, On 04.09.2015 00:08, Maciej Fijalkowski wrote: On Thu, Sep 3, 2015 at 9:23 AM, Valentine Sinitsyn wrote: Hi Armin, On 25.08.2015 13:00, Armin Rigo wrote: Hi Valentine, On 25 August 2015 at 09:56, Valentine Sinitsyn wrote: Yes, I think so. There is a *highly obscure* corner

Re: [Python-Dev] tp_finalize vs tp_del sematics

2015-09-03 Thread Valentine Sinitsyn
Hi Armin, On 25.08.2015 13:00, Armin Rigo wrote: Hi Valentine, On 25 August 2015 at 09:56, Valentine Sinitsyn wrote: Yes, I think so. There is a *highly obscure* corner case: __del__ will still be called several times if you declare your class with "__slots__=()". Even on &quo

Re: [Python-Dev] tp_finalize vs tp_del sematics

2015-08-25 Thread Valentine Sinitsyn
Hi Armin, On 25.08.2015 13:00, Armin Rigo wrote: Hi Valentine, On 25 August 2015 at 09:56, Valentine Sinitsyn wrote: Yes, I think so. There is a *highly obscure* corner case: __del__ will still be called several times if you declare your class with "__slots__=()". Even on &quo

Re: [Python-Dev] tp_finalize vs tp_del sematics

2015-08-25 Thread Valentine Sinitsyn
Hi Armin, On 25.08.2015 12:51, Armin Rigo wrote: Hi Valentine, On 24 August 2015 at 20:43, Valentine Sinitsyn wrote: So you mean that this was to keep things backwards compatible for third-party extensions? I haven't thought about it this way, but this makes sense. However, the behavi

Re: [Python-Dev] tp_finalize vs tp_del sematics

2015-08-24 Thread Valentine Sinitsyn
Hi Armin, Thanks for replying. On 23.08.2015 17:14, Armin Rigo wrote: Hi Valentine, On 19 August 2015 at 09:53, Valentine Sinitsyn wrote: why it wasn't possible to implement proposed CI disposal scheme on top of tp_del? I'm replying here as best as I understand the situation, w

[Python-Dev] tp_finalize vs tp_del sematics

2015-08-19 Thread Valentine Sinitsyn
eps/pep-0442/ 2. https://docs.python.org/3/c-api/typeobj.html -- Best regards, Valentine Sinitsyn ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/pyt