From 187992df77d6a01410a1e30d2071ad3da51f484f Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 9 Jul 2020 23:41:04 +0200 Subject: Beautify example output. --- docs/examples/userguide/extension_types/c_property.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/examples/userguide/extension_types/c_property.pyx b/docs/examples/userguide/extension_types/c_property.pyx index a545398fe..b759ceec1 100644 --- a/docs/examples/userguide/extension_types/c_property.pyx +++ b/docs/examples/userguide/extension_types/c_property.pyx @@ -17,4 +17,4 @@ cdef extern from "complexobject.h": def cprint(complex c): - print(f"{c.real}+{c.imag}j") # uses C calls to the above property methods. + print(f"{c.real :.4f}{c.imag :+.4f}j") # uses C calls to the above property methods. -- cgit v1.2.1