Message207451
Not always default value can be expressed in Python. Current docstring for the match() method says "match(string[, pos[, endpos]])". For this particular case it can be written as "match(string, pos=0, endpos=sys.maxsize)". And this is very common case (see also str.find(sub[, start[, end]]), etc). Perhaps there are cases in which the default value is not PY_SSIZE_T_MAX and None is not accepted (as for dir_fd parameter in os functions).
So as minimum Argument Clinic can support sys.maxsize, and as maximum, it should support arbitrary values. |
|
| Date |
User |
Action |
Args |
| 2014-01-06 16:18:52 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, larry |
| 2014-01-06 16:18:52 | serhiy.storchaka | set | messageid: <[email protected]> |
| 2014-01-06 16:18:52 | serhiy.storchaka | link | issue20144 messages |
| 2014-01-06 16:18:52 | serhiy.storchaka | create | |
|