From e76785f55924823beb515625da9d9b4a98b243f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Tue, 13 May 2025 00:23:47 +0200 Subject: [PATCH] Paths --- README.md | 2 +- index.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4f2da95..53bc4eb 100644 --- a/README.md +++ b/README.md @@ -1697,7 +1697,7 @@ from pathlib import Path ``` ```python - = str() # Returns path as a string. + = str() # Returns path as str. Also .as_uri(). = open() # Also .read/write_text/bytes(). ``` diff --git a/index.html b/index.html index a26d191..596c171 100644 --- a/index.html +++ b/index.html @@ -56,7 +56,7 @@
- +
@@ -1442,7 +1442,7 @@ args = p.parse_args() <iter> = <Path>.iterdir() # Returns directory contents as Path objects. <iter> = <Path>.glob('<pattern>') # Returns Paths matching the wildcard pattern. -
<str>  = str(<Path>)                # Returns path as a string.
+
<str>  = str(<Path>)                # Returns path as str. Also <Path>.as_uri().
 <file> = open(<Path>)               # Also <Path>.read/write_text/bytes(<args>).
 

#OS Commands

import os, shutil, subprocess
@@ -2945,7 +2945,7 @@ $ deactivate                # Deactivates the active