On 10/31/07, Phillip J. Eby <pje at telecommunity.com> wrote: > At 11:09 AM 10/31/2007 -0700, Guido van Rossum wrote: > >Yes, though I think that if prop.fdel is None, we could use func in > >both slots. > > Eh? Isn't prop.fdel supposed to be a single-argument function? ISTM > that C is the only place where fset and fdel are the same thing. Given how rarely supporting deletions matters enough to write extra code, we can just say that *when using @propset* your setter function needs to have a default value for the argument or otherwise support being called with one or two arguments. -- --Guido van Rossum (home page: http://www.python.org/~guido/)
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