diff --git a/README.md b/README.md index 18072d6..2c4122f 100644 --- a/README.md +++ b/README.md @@ -679,8 +679,8 @@ def f(): # def f(x, y): def f(): # def f(x=0, y=0): def f(, ): # def f(x, y=0): ``` -* **A function has its default values evaluated when it's first encountered in the scope.** -* **Any changes to default values that are mutable will persist between invocations.** +* **Value of a default argument is evaluated when function is first encountered in the scope.** +* **If this value is a mutable object, then all its mutations will persist between invocations.** Splat Operator @@ -1814,8 +1814,8 @@ import csv = list() # Returns a list of remaining rows. ``` * **File must be opened with a `'newline=""'` argument, or newlines embedded inside quoted fields will not be interpreted correctly!** -* **For XML and binary Excel files (xlsx, xlsm and xlsb) use [Pandas](#dataframe-plot-encode-decode) library.** * **To print the table to the console use [Tabulate](#table) library.** +* **For XML and binary Excel files (xlsx, xlsm and xlsb) use [Pandas](#dataframe-plot-encode-decode) library.** ### Write ```python diff --git a/index.html b/index.html index d4ef62a..f4b1821 100644 --- a/index.html +++ b/index.html @@ -54,7 +54,7 @@
- +
@@ -601,8 +601,8 @@ to_exclusive = <range>.stop
    -
  • A function has its default values evaluated when it's first encountered in the scope.
  • -
  • Any changes to default values that are mutable will persist between invocations.
  • +
  • Value of a default argument is evaluated when function is first encountered in the scope.
  • +
  • If this value is a mutable object, then all its mutations will persist between invocations.

#Splat Operator

Inside Function Call

Splat expands a collection into positional arguments, while splatty-splat expands a dictionary into keyword arguments.

args   = (1, 2)
 kwargs = {'x': 3, 'y': 4, 'z': 5}
@@ -1513,8 +1513,8 @@ CompletedProcess(args=['bc', 'newline=""' argument, or newlines embedded inside quoted fields will not be interpreted correctly!
-
  • For XML and binary Excel files (xlsx, xlsm and xlsb) use Pandas library.
  • To print the table to the console use Tabulate library.
  • +
  • For XML and binary Excel files (xlsx, xlsm and xlsb) use Pandas library.
  • Write

    <writer> = csv.writer(<file>)       # Also: `dialect='excel', delimiter=','`.
     <writer>.writerow(<collection>)     # Encodes objects using `str(<el>)`.
    @@ -2902,7 +2902,7 @@ $ pyinstaller script.py --add-data '<path>:.'  
      
     
       
     
    diff --git a/pdf/remove_links.py b/pdf/remove_links.py
    index 49c3e37..92bed96 100755
    --- a/pdf/remove_links.py
    +++ b/pdf/remove_links.py
    @@ -17,7 +17,7 @@ MATCHES = {
         'Generators returned by the generator functions and generator expressions.': 'Generators returned by the generator functions (p. 4) and generator expressions (p. 11).',
         'File objects returned by the open() function, etc.': 'File objects returned by the open() function (p. 22), etc.',
         'Functions report OS related errors by raising either OSError or one of its subclasses.': 'Functions report OS related errors by raising OSError or one of its subclasses (p. 23).',
    -    'To print the table to console use Tabulate library.': 'To print the table to console use Tabulate library (p. 34).',
    +    'To print the table to the console use Tabulate library.': 'To print the table to the console use Tabulate library (p. 34).',
         'For XML and binary Excel files (xlsx, xlsm and xlsb) use Pandas library.': 'For XML and binary Excel files (xlsx, xlsm and xlsb) use Pandas library (p. 46).',
         'Bools will be stored and returned as ints and dates as ISO formatted strings.': 'Bools will be stored and returned as ints and dates as ISO formatted strings (p. 9).',
         'An object with the same interface called ProcessPoolExecutor provides true parallelism by running a separate interpreter in each process. All arguments must be pickable.': 'An object with the same interface called ProcessPoolExecutor provides true parallelism by running a separate interpreter in each process. All arguments must be pickable (p. 25).',