From e665c81a2dcd7e08991c657f586421a8f6852820 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 8 Mar 2024 23:59:39 +0100 Subject: [PATCH] python/link,stdlib --- rtfd/public/python3/snippets.rst | 12 ++++++++++-- rtfd/public/python3/syntax.rst | 7 +++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/rtfd/public/python3/snippets.rst b/rtfd/public/python3/snippets.rst index 162f558..9d355f4 100644 --- a/rtfd/public/python3/snippets.rst +++ b/rtfd/public/python3/snippets.rst @@ -9,8 +9,16 @@ Hello world if __name__ == "__main__": print("Hello, world!") -Directories ------------ +Files +----- + +Links +^^^^^ + +.. code-block:: python3 + + os.symlink('target', 'tmp_path') + os.replace('tmp_path', 'path') Remove ^^^^^^ diff --git a/rtfd/public/python3/syntax.rst b/rtfd/public/python3/syntax.rst index 978f0a9..cad0973 100644 --- a/rtfd/public/python3/syntax.rst +++ b/rtfd/public/python3/syntax.rst @@ -18,3 +18,10 @@ first/module.py → second/module.py ---------------------------------- * first + +Modules +======= + +.. code-block:: python3 + + 'name' in sys.stdlib_module_names