This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients larry, serhiy.storchaka
Date 2014-01-06.16:18:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1389025132.28.0.310067978279.issue20144@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-01-06 16:18:52serhiy.storchakasetrecipients: + serhiy.storchaka, larry
2014-01-06 16:18:52serhiy.storchakasetmessageid: <1389025132.28.0.310067978279.issue20144@psf.upfronthosting.co.za>
2014-01-06 16:18:52serhiy.storchakalinkissue20144 messages
2014-01-06 16:18:52serhiy.storchakacreate