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-February/033103.html below:

[Python-Dev] Python 2.3a1's mandatory use of cyclic GC causes existing applications to fail

[Python-Dev] Python 2.3a1's mandatory use of cyclic GC causes existing applications to fail [Python-Dev] Python 2.3a1's mandatory use of cyclic GC causes existing applications to failKevin Jacobs jacobs@penguin.theopalgroup.com
Thu, 6 Feb 2003 14:31:29 -0500 (EST)
On Thu, 6 Feb 2003, Guido van Rossum wrote:
> Can you suggest a concrete syntax to do this?  Maybe setting __slots__
> to a dictionary mapping names to type specifiers would do it -- and it
> would even be backwards compatible: currently, if __slots__ is a dict,
> its keys are used as slot names and its values are ignored, by virtue
> of the way the type constructor iterates over __slots__.

I already use __slots__ assigned to dictionaries where the values are not
ignored.  They are interpreted by a metaclass to apply type conversion
operators and type/value enforcement predicates to slots.  I hope that
future versions of Python will not tread on this feature.  (Though I'd
happily trade in this feature in exchange for having __slots__ be immutable)

Meta-regards,
-Kevin

-- 
--
Kevin Jacobs
The OPAL Group - Enterprise Systems Architect
Voice: (216) 986-0710 x 19         E-mail: jacobs@theopalgroup.com
Fax:   (216) 986-0714              WWW:    http://www.theopalgroup.com




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