aboutsummaryrefslogtreecommitdiffstats
path: root/doc/gpgme-python-howto.texi
diff options
context:
space:
mode:
authorBen McGinnes <[email protected]>2018-09-17 22:32:30 +0000
committerBen McGinnes <[email protected]>2018-09-17 22:32:30 +0000
commit362caaf02f3a25b7e626572aa30b87771c2c8f4d (patch)
treec510bee6320c6d2696f85e60c47419c5be6f5099 /doc/gpgme-python-howto.texi
parentdocs: python bindings howto (diff)
downloadgpgme-362caaf02f3a25b7e626572aa30b87771c2c8f4d.tar.gz
gpgme-362caaf02f3a25b7e626572aa30b87771c2c8f4d.zip
docs: python bindings
* Updated the Cython example code slightly, along with the corresponding explanation.
Diffstat (limited to '')
-rw-r--r--doc/gpgme-python-howto.texi10
1 files changed, 7 insertions, 3 deletions
diff --git a/doc/gpgme-python-howto.texi b/doc/gpgme-python-howto.texi
index 8073a90b..7cdce1eb 100644
--- a/doc/gpgme-python-howto.texi
+++ b/doc/gpgme-python-howto.texi
@@ -2120,8 +2120,9 @@ publist = list(pubkeys)
pubnum = len(publist)
print("""
- Number of secret keys: @{0@}
- Number of public keys: @{1@}
+ Number of secret keys: @{0@}
+ Number of public keys: @{1@}
+
""".format(secnum, pubnum))
@end example
@@ -2172,7 +2173,10 @@ On the other hand it ran in nearly half the time; taking 6 minutes and
which the CPython script alone took.
The @samp{keycount.pyx} and @samp{setup.py} files used to generate this example
-have been added to the @samp{examples/howto/advanced/cython/} directory.
+have been added to the @samp{examples/howto/advanced/cython/} directory
+The example versions include some additional options to annotate the
+existing code and to detect Cython's use. The latter comes from the
+@uref{http://docs.cython.org/en/latest/src/tutorial/pure.html#magic-attributes-within-the-pxd, Magic Attributes} section of the Cython documentation.
@node Miscellaneous work-arounds
@chapter Miscellaneous work-arounds