diff --git a/README.md b/README.md index 39fde71..ce97b3f 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ if __name__ == '__main__': # Skips next line if file was imported. List ---- ```python - = [, , ...] # Creates new list. Also list(). + = [, , ...] # Creates a list object. Also list(). ``` ```python @@ -1664,7 +1664,7 @@ from pathlib import Path = os.scandir(path='.') # Returns DirEntry objects located at the path. = .path # Returns the whole path as a string. = .name # Returns final component as a string. - = open() # Opens the file and returns a file object. + = open() # Opens the file and returns its file object. ``` ### Path Object diff --git a/index.html b/index.html index 475643d..0cd45a5 100644 --- a/index.html +++ b/index.html @@ -56,7 +56,7 @@
- +
@@ -111,7 +111,7 @@ const browser_prefers_dark = window.matchMedia('(prefers-color-scheme: dark)').m main() # Runs `def main(): ...` function. -

#List

<list> = [<el_1>, <el_2>, ...]  # Creates new list. Also list(<collection>).
+

#List

<list> = [<el_1>, <el_2>, ...]  # Creates a list object. Also list(<collection>).
 
<el>   = <list>[index]          # First index is 0. Last -1. Allows assignments.
@@ -1414,7 +1414,7 @@ args  = p.parse_args()                                            DirEntry

Unlike listdir(), scandir() returns DirEntry objects that cache isfile, isdir, and on Windows also stat information, thus significantly increasing the performance of code that requires it.

<iter> = os.scandir(path='.')       # Returns DirEntry objects located at the path.
 <str>  = <DirEntry>.path            # Returns the whole path as a string.
 <str>  = <DirEntry>.name            # Returns final component as a string.
-<file> = open(<DirEntry>)           # Opens the file and returns a file object.
+<file> = open(<DirEntry>)           # Opens the file and returns its file object.
 
@@ -2940,7 +2940,7 @@ $ deactivate # Deactivates the active