Message208410
Here (http://docs.python.org/2/c-api/arg.html), the documentation for "t#" says:
t# (read-only character buffer) [char *, int]...
while the documentation for "w#" says:
w# (read-write character buffer) [char *, Py_ssize_t]...
However, from getargs.c, it looks like they're handled the same with respect to the size type.
At a minimum, it seems like it might make sense to change these docs to match, and if "w#" and "t#" are actually handled similarly to "s#", it would be even better to just change their docs to match (or refer to) "s#"'s which are more detailed, i.e. they mention the PY_SSIZE_T_CLEAN issues, etc.
Thanks |
|
Date |
User |
Action |
Args |
2014-01-18 19:22:50 | rlb | set | recipients:
+ rlb, docs@python |
2014-01-18 19:22:50 | rlb | set | messageid: <1390072970.58.0.165278841581.issue20296@psf.upfronthosting.co.za> |
2014-01-18 19:22:50 | rlb | link | issue20296 messages |
2014-01-18 19:22:50 | rlb | create | |
|