Talin <[EMAIL PROTECTED]> writes:
> I wonder if there is a way to create an API for extension modules that
> would allow a gradual phase-out of reference counting, towards a 'pure' GC.
I believe this is possible when C code doesn't access addresses of
Python objects directly, but via handles.
h
Greg Ewing <[EMAIL PROTECTED]> writes:
> All use of weakrefs can be hidden behind a call such as
>
>register_finalizer(self, func, *args, **kwds)
It should be possible to finalize the object explicitly, given a
handle returned by this function, and possibly to kill the finalizer
without execu
On 9/25/06, Josiah Carlson <[EMAIL PROTECTED]> wrote:
>
> gabor <[EMAIL PROTECTED]> wrote:
> > Martin v. Löwis wrote:
> > > Gábor Farkas schrieb:
> > >> should he write his own slicing/whatever functions to get consistent
> > >> behaviour on linux/windows?
> > now, for this to behave correctly on
On 9/25/06, Jim Jewett <[EMAIL PROTECTED]> wrote:
As David Hopwood pointed out, to be fully correct, you already have tocreate a custom function even with bmp characters, because ofdecomposed characters. (Example: Representing a c-cedilla as a c anda combining cedilla, rather than as a single cod
Martin v. Löwis wrote:
>>> I think supporting multiple representations at run-time would really
>>> be terrible. Any API of the "give me the data" kind would either have
>>> to expose the choice of representations, or perform a copy.
>>
>> Unless you can guarantee that *all* external API:s that a
Paul Prescod wrote:
> On 9/25/06, Jim Jewett <[EMAIL PROTECTED]> wrote:
>
>> As David Hopwood pointed out, to be fully correct, you already have to
>> create a custom function even with bmp characters, because of
>> decomposed characters. (Example: Representing a c-cedilla as a c and
>> a combin
>>I've never seen an API that works like that. Have you?
>>
>>
>
>The class above shows a case where:
>
>1) There's a way to destruct the handle BEFORE __del__ is called, which would
>require killing the weakref / deregistering the finalization hook. I believe
>you agree that this is pretty co