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

[Python-Dev] [Python 2.2 BUG] pickle/cPickle does not find __slots__

[Python-Dev] [Python 2.2 BUG] pickle/cPickle does not find __slots__ [Python-Dev] [Python 2.2 BUG] pickle/cPickle does not find __slots__Kevin Jacobs jacobs@penguin.theopalgroup.com
Fri, 15 Feb 2002 13:08:39 -0500 (EST)
On Fri, 15 Feb 2002, john coppola wrote:
> Hi Kevin.  I'm with you slots have great potential.
> First of all, I think it is a very bad idea that slots
> could be mutable.

They don't have to be mutable -- its more a relic of the implementation.
e.g.:

class A(object):
  __slots__ = ('a','b')

A.__slots__.append('c')

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
AttributeError: 'tuple' object has no attribute 'append'

Of course, I think that this is something of a mistake, though I'll reserve
final justment until after I've heard Guido's reasoning.  Its clear that he
has bigger plans for both the syntax and semantics (especially if you heard
some of his off-hand remarks at IPC10).

-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