[issue29924] Useless argument in call to PyErr_Format

2017-03-27 Thread STINNER Victor
STINNER Victor added the comment: Thank you SylvainDe, I merged your fix! About the GCC __attribute__ idea: I'm not sure, since Python uses some extra formatters (I don't recall which one). If you succeed to write something working, please open a new issue! Since the initial bug is fixed, I c

[issue29924] Useless argument in call to PyErr_Format

2017-03-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset d67a103702cf57de90a62c90f7ae969c23d96218 by Victor Stinner (Sylvain) in branch 'master': bpo-29924: Remove useless argument (#854) https://github.com/python/cpython/commit/d67a103702cf57de90a62c90f7ae969c23d96218 -- nosy: +haypo ___

[issue29924] Useless argument in call to PyErr_Format

2017-03-27 Thread SylvainDe
SylvainDe added the comment: Seems to be introduced via 250e4b0063fab35770719b64d1e36209c4aa2596 in January this year. -- ___ Python tracker ___

[issue29924] Useless argument in call to PyErr_Format

2017-03-27 Thread Larry Hastings
Changes by Larry Hastings : -- nosy: -larry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue29924] Useless argument in call to PyErr_Format

2017-03-27 Thread Larry Hastings
Larry Hastings added the comment: This is not an Argument Clinic issue. -- components: +Interpreter Core -Argument Clinic ___ Python tracker ___ _

[issue29924] Useless argument in call to PyErr_Format

2017-03-27 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +755 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue29924] Useless argument in call to PyErr_Format

2017-03-27 Thread SylvainDe
SylvainDe added the comment: http://julio.meroh.net/2011/06/validating-format-strings-in-custom-c.html -- ___ Python tracker ___ ___ P

[issue29924] Useless argument in call to PyErr_Format

2017-03-27 Thread SylvainDe
SylvainDe added the comment: I forgot to copy the link but here is a description of what I had in mind for the first idea. -- ___ Python tracker ___

[issue29924] Useless argument in call to PyErr_Format

2017-03-27 Thread SylvainDe
New submission from SylvainDe: Very uninteresting issue I've found while looking at the code. In Objects/call.c, in _PyMethodDef_RawFastCallDict(PyMethodDef *method, PyObject *self, PyObject **arg...), we have no_keyword_error: PyErr_Format(PyExc_TypeError, "%.20