From 380ec207e85c04fc02b05814f8e78e51b1efe77b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Thu, 19 Dec 2024 02:58:26 +0100 Subject: [PATCH] Open, Operator --- README.md | 4 ++-- index.html | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 26fd401..83d9755 100644 --- a/README.md +++ b/README.md @@ -1566,7 +1566,7 @@ args = p.parse_args() # Exits on par Open ---- -**Opens the file and returns a corresponding file object.** +**Opens a file and returns the corresponding file object.** ```python = open(, mode='r', encoding=None, newline=None) @@ -2103,7 +2103,7 @@ from collections import deque Operator -------- -**Module of functions that provide the functionality of operators. Functions are ordered and grouped by operator precedence, from least to most binding. Logical and arithmetic operators in rows 1, 3 and 5 are ordered by precedence also within a group.** +**Module of functions that provide the functionality of operators. Functions are ordered and grouped by operator precedence, from least to most binding. Logical and arithmetic operators in lines 1, 3 and 5 are also ordered by precedence within their own group.** ```python import operator as op ``` diff --git a/index.html b/index.html index 24faa76..ef1b7e3 100644 --- a/index.html +++ b/index.html @@ -55,7 +55,7 @@
- +
@@ -1323,7 +1323,7 @@ args = p.parse_args() 'default=<obj>' to set option's or optional argument's default value.
  • Use 'type=FileType(<mode>)' for files. Accepts 'encoding', but 'newline' is None.
  • -

    #Open

    Opens the file and returns a corresponding file object.

    <file> = open(<path>, mode='r', encoding=None, newline=None)
    +

    #Open

    Opens a file and returns the corresponding file object.

    <file> = open(<path>, mode='r', encoding=None, newline=None)
     
    @@ -1724,7 +1724,7 @@ CompletedProcess(args=['bc', 1) # Last element becomes first. <el> = <deque>.popleft() # Raises IndexError if deque is empty.
    -

    #Operator

    Module of functions that provide the functionality of operators. Functions are ordered and grouped by operator precedence, from least to most binding. Logical and arithmetic operators in rows 1, 3 and 5 are ordered by precedence also within a group.

    import operator as op
    +

    #Operator

    Module of functions that provide the functionality of operators. Functions are ordered and grouped by operator precedence, from least to most binding. Logical and arithmetic operators in lines 1, 3 and 5 are also ordered by precedence within their own group.

    import operator as op
     
    @@ -2924,7 +2924,7 @@ $ deactivate # Deactivates the active