On 2012-06-22, at 4:20 PM, Terry Reedy wrote: > On 6/22/2012 3:24 PM, Yury Selivanov wrote: >> On 2012-06-22, at 3:18 PM, Guido van Rossum wrote: > >>> Hardly, because that's not valid syntax. I'd write name(arg1, *, >>> arg2=<default>). >> >> Like >> >> replace(*, name=<default>, kind=<default>, default=<default>, >> annotation=<default>) -> Parameter >> >> or >> >> replace(*, name=<optional>, kind=<optional>, default=<optional>, >> annotation=<optional>) -> Parameter > > I do not undertand the 'or'. I hope you mean default argument expressions in the standard manner rather than '<default>' or '<optional>'. It's now in the updated PEP. We use '<optional>' notation just to specify that the parameter is optional, i.e. can (or in some cases should) be omitted. - Yury
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