On 8/22/06, Nick Coghlan <ncoghlan at gmail.com> wrote: > > brett.cannon wrote: > > Added: peps/trunk/pep-0362.txt > > +Relation With Other PEPs > > +======================== > > + > > +"Keyword-Only Arguments [#pep-3102]_ > > +------------------------------------ > > + > > +If keyword-only parameters come into existence, the Parameter object > > +will require modification. A ``keyword_only`` attribute will be added > > +that holds a boolean representing whether the parameter is > > +keyword-only or not. > > Why an extra attribute instead of using "x.position is None"? Unlike > default_value, None is not otherwise a legitimate value for the position > attribute. OK, talked over with Jiwon and the room here at the sprint and the preference was to keep it as-is. Reasons were it allowed the position in the signature to be kept with the object (and thus not be reliant on the Signature object to know its position in the actual output), and the possibility of disparate types being in the attribute. Plus Guido preferred the original way. =) -Brett -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/python-dev/attachments/20060822/3233101e/attachment.html
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