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