[issue3343] Py_DisplaySourceLine is not documented

Amaury Forgeot d'Arc report at bugs.python.org
Fri Jul 11 14:20:49 CEST 2008


New submission from Amaury Forgeot d'Arc <amauryfa at gmail.com>:

This new function is not documented at all.
And I find the error handling not consistent: when filename is NULL, -1
is returned, but no exception is set.

IMO the return code should be as follow:
- return 1 if a line was printed
- return 0 if the line cannot be found
- return -1 in case of error (when calling PyFile_WriteString); an
exception is set.

----------
components: Interpreter Core
messages: 69548
nosy: amaury.forgeotdarc
severity: normal
status: open
title: Py_DisplaySourceLine is not documented
type: behavior
versions: Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3343>
_______________________________________


More information about the Python-bugs-list mailing list