GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing mail.python.org — [Python-Dev] [Python 2.2 BUG] pickle/cPickle does not find __slots__ [Python-Dev] [Python 2.2 BUG] pickle/cPickle does not find __slots__Fred L. Drake, Jr. [email protected]Fri, 15 Feb 2002 14:35:20 -0500
Michael McLay writes:
> While my approach was patterened after the property() builtin, the
> Python Labs crowd didn't like the notation and rejected the
I'll note as well that at least some of us, if not all, don't like the
property() syntax as well. My current favorite was one of Guido's
proposals at Python 10:
class Foo(object):
property myprop:
"""A computed property on Foo objects."""
def __get__(self):
return ...
def __set__(self):
...
def __delete__(self):
...
-Fred
--
Fred L. Drake, Jr. <fdrake at acm.org>
PythonLabs at Zope Corporation
|
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |