diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2020-07-09 23:41:04 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2020-07-09 23:41:04 +0200 |
commit | 187992df77d6a01410a1e30d2071ad3da51f484f (patch) | |
tree | 9ba69529fb69cc0a99403c15efc28dc8abf9d183 | |
parent | 1bd40102c4770fd0fa3f8e2fdd1ee0e9376d9633 (diff) | |
download | cython-187992df77d6a01410a1e30d2071ad3da51f484f.tar.gz |
Beautify example output.
-rw-r--r-- | docs/examples/userguide/extension_types/c_property.pyx | 2 |
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. |