From 25c60a3aa40257c7b8a08ddfb4b9a5ca0f9b8d42 Mon Sep 17 00:00:00 2001 From: Suletta-Majo <123425681+Suletta-Majo@users.noreply.github.com> Date: Sat, 10 Feb 2024 02:20:54 +0900 Subject: [PATCH] Update old `quickstart.rst` example from Py2 to Py3 (#711) * Update quickstart.rst minimum sample's forgot bracket fix * Update quickstart.rst removed Not necessary space in print function --- docs/source/quickstart.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/quickstart.rst b/docs/source/quickstart.rst index 8981548a..a89210ff 100644 --- a/docs/source/quickstart.rst +++ b/docs/source/quickstart.rst @@ -20,8 +20,8 @@ A minimal PyJNIus example looks something like this:: stack.push('hello') stack.push('world') - print stack.pop() # --> 'world' - print stack.pop() # --> 'hello' + print(stack.pop()) # --> 'world' + print(stack.pop()) # --> 'hello' Just save it as `test.py` (or something similar) and run it with your Python interpreter. Make sure not to call your application `jnius.py` because it would