summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2020-07-09 23:41:04 +0200
committerStefan Behnel <stefan_ml@behnel.de>2020-07-09 23:41:04 +0200
commit187992df77d6a01410a1e30d2071ad3da51f484f (patch)
tree9ba69529fb69cc0a99403c15efc28dc8abf9d183
parent1bd40102c4770fd0fa3f8e2fdd1ee0e9376d9633 (diff)
downloadcython-187992df77d6a01410a1e30d2071ad3da51f484f.tar.gz
Beautify example output.
-rw-r--r--docs/examples/userguide/extension_types/c_property.pyx2
1 files changed, 1 insertions, 1 deletions
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.