Re: [Python-3000] Transitional GC?

2006-09-25 Thread Marcin 'Qrczak' Kowalczyk
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

Re: [Python-3000] Removing __del__

2006-09-25 Thread Marcin 'Qrczak' Kowalczyk
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

Re: [Python-3000] How will unicode get used?

2006-09-25 Thread Jim Jewett
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

Re: [Python-3000] How will unicode get used?

2006-09-25 Thread Paul Prescod
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

Re: [Python-3000] How will unicode get used?

2006-09-25 Thread Fredrik Lundh
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

Re: [Python-3000] How will unicode get used?

2006-09-25 Thread David Hopwood
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

Re: [Python-3000] Removing __del__

2006-09-25 Thread Raymond Hettinger
>>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