Possible PEP: Improve classmethod/staticmethod syntax

Steven Taschuk staschuk at telusplanet.net
Wed Jun 4 14:33:40 EDT 2003


Quoth Aahz:
  [...]
> No, Guido will insist on requiring a definition of a set function that
> raises an exception if you want to make it read-only.

For general descriptors, sure.  But the existing property built-in
doesn't require any such function to be provided explicitly; that
is its default behaviour when fset=None.  It would be reasonable
for a special syntax for properties to have the same defaults.

-- 
Steven Taschuk             "The world will end if you get this wrong."
staschuk at telusplanet.net     -- "Typesetting Mathematics -- User's Guide",
                                 Brian Kernighan and Lorrinda Cherry





More information about the Python-list mailing list