Skip to content

Commit 28fa67d

Browse files
committed
Remove an obsolete comment
1 parent 5c6872f commit 28fa67d

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

Python/bltinmodule.c

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2304,18 +2304,7 @@ builtin_print_impl(PyObject *module, PyObject * const *objects,
23042304
return NULL;
23052305
}
23062306
}
2307-
/* XXX: I have a couple of thoughts about how this could be handled. We could add a
2308-
PyFile_WriteObjectEx() function which would look largely like PyFile_WriteObject() but
2309-
would take a pretty printer object (or None, in which case it would just fall back to
2310-
PyFile_WriteObject()). Then we could put the logic for the (TBD) "pretty printing
2311-
protocol" in there.
2312-
2313-
For now though, let's keep things localized so all the logic is in the print() function's
2314-
implementation. Maybe a better way will come to mind as we pan this idea out.
2315-
2316-
Or, this currently calls `printer.pformat(object)` so a pretty printing protocol could
2317-
be implemented there. Or maybe we want a more generic method name.
2318-
*/
2307+
23192308
if (printer) {
23202309
PyObject *prettified = PyObject_CallMethod(printer, "pformat", "O", objects[i]);
23212310

0 commit comments

Comments
 (0)