A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-December/040819.html below:

[Python-Dev] Re: are CObjects inherently unsafe?

[Python-Dev] Re: are CObjects inherently unsafe? [Python-Dev] Re: are CObjects inherently unsafe?Fredrik Lundh fredrik at pythonware.com
Mon Dec 8 05:54:31 EST 2003
Michael Hudson wrote:

> > A string isn't the only thing that could usefully be used
> > as a descriptor.
>
> What else would you consider useful?  I'm only really aware of the
> most straightforward uses of CObjects (and wonder if the advanced uses
> actually see much use...).

the descriptor is passed to the destructor, so it can be used to hold data
associated with the object.

checking our repository, I cannot find a single example where I haven't
used the descriptor at all; the most common use is to point to a "MAGIC"
string, and there's one case where I've used it to keep a reference to a
PyObject that's related to the CObject pointer.

</F>




More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4