A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2004-April/044355.html below:

[Python-Dev] slots, properties, descriptors, and pydoc

[Python-Dev] slots, properties, descriptors, and pydocGuido van Rossum guido at python.org
Sat Apr 17 13:33:04 EDT 2004
> >     3) extend the __slots__ handler to set the descriptor's doc string 
> > to dictionary values if the slot's value is a dictionary.
> 
> I haven't implemented this, because I don't know a thing about Python's 
> C interface.  If someone more able would knock off a prototype, I would 
> be grateful.

If I understand this proposal correctly (the dict values would provide
the docstrings for the slots) I'd rather not make this default
behavior; different metaclasses may want to use the dict value for
different purposes, and subsuming it by default for the doc string
would make that harder to do.

--Guido van Rossum (home page: http://www.python.org/~guido/)

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