diff --git a/README.md b/README.md index 05a0e60..5e57833 100644 --- a/README.md +++ b/README.md @@ -1046,7 +1046,7 @@ class : ``` * **Objects can be made sortable with `'order=True'` and immutable with `'frozen=True'`.** * **For object to be hashable, all attributes must be hashable and frozen must be True.** -* **Function field() is needed because `': list = []'` would make a list that is shared among all instances. Argument 'default_factory' can be any [callable](#callable).** +* **Function field() is needed because `': list = []'` would make a list that is shared among all instances. Its 'default_factory' argument can be any [callable](#callable).** * **For attributes of arbitrary type use `'typing.Any'`.** #### Inline: @@ -1906,7 +1906,7 @@ with : # Exits the block with commit() # $ pip3 install mysql-connector from mysql import connector = connector.connect(host=, …) # `user=, password=, database=`. - = .cursor() # Only cursor has execute method. + = .cursor() # Only cursor has execute() method. .execute('') # Can raise a subclass of connector.Error. .execute('', ) # Replaces '%s's in query with values. .execute('', ) # Replaces '%()s's with values. @@ -2951,7 +2951,7 @@ while all(event.type != pg.QUIT for event in pg.event.get()): = pg.Rect(x, y, width, height) # Floats get truncated into ints. = .x/y/centerx/centery/… # Top, right, bottom, left. Allows assignments. = .topleft/center/… # Topright, bottomright, bottomleft. Same. - = .move((x, y)) # Use move_ip() to move in place. + = .move((x, y)) # Use move_ip() to move in-place. ``` ```python diff --git a/index.html b/index.html index 4c415c7..af84aeb 100644 --- a/index.html +++ b/index.html @@ -226,7 +226,7 @@ pre.prettyprint {
- +
@@ -1040,7 +1040,7 @@ Z = dataclasses.make_dataclass('Z', [
  • Objects can be made sortable with 'order=True' and immutable with 'frozen=True'.
  • For object to be hashable, all attributes must be hashable and frozen must be True.
  • -
  • Function field() is needed because '<attr_name>: list = []' would make a list that is shared among all instances. Argument 'default_factory' can be any callable.
  • +
  • Function field() is needed because '<attr_name>: list = []' would make a list that is shared among all instances. Its 'default_factory' argument can be any callable.
  • For attributes of arbitrary type use 'typing.Any'.
  • Inline:

    from dataclasses import make_dataclass
    @@ -1734,7 +1734,7 @@ CompletedProcess(args=['bc', MySQL

    Has a very similar interface, with differences listed below.

    # $ pip3 install mysql-connector
     from mysql import connector
     <conn>   = connector.connect(host=<str>, …)     # `user=<str>, password=<str>, database=<str>`.
    -<cursor> = <conn>.cursor()                      # Only cursor has execute method.
    +<cursor> = <conn>.cursor()                      # Only cursor has execute() method.
     <cursor>.execute('<query>')                     # Can raise a subclass of connector.Error.
     <cursor>.execute('<query>', <list/tuple>)       # Replaces '%s's in query with values.
     <cursor>.execute('<query>', <dict/namedtuple>)  # Replaces '%(<key>)s's with values.
    @@ -2543,7 +2543,7 @@ rect = pg.Rect(240, 2
     

    Rectangle

    Object for storing rectangular coordinates.

    <Rect> = pg.Rect(x, y, width, height)           # Floats get truncated into ints.
     <int>  = <Rect>.x/y/centerx/centery/…           # Top, right, bottom, left. Allows assignments.
     <tup.> = <Rect>.topleft/center/…                # Topright, bottomright, bottomleft. Same.
    -<Rect> = <Rect>.move((x, y))                    # Use move_ip() to move in place.
    +<Rect> = <Rect>.move((x, y))                    # Use move_ip() to move in-place.
     
    @@ -3020,7 +3020,7 @@ $ pyinstaller script.py --add-data '<path>:.'
    - +
    diff --git a/pdf/index_for_pdf.html b/pdf/index_for_pdf.html index 3593efe..338c4ed 100644 --- a/pdf/index_for_pdf.html +++ b/pdf/index_for_pdf.html @@ -64,7 +64,7 @@

    I

    image, 35, 39-40, 42-43
    imports, 12
    -inline, 11-12, 15, 20
    +inline, 11, 15, 20
    input function, 22
    introspection, 31
    ints, 4, 7, 8, 28
    diff --git a/pdf/index_for_pdf_print.html b/pdf/index_for_pdf_print.html index 1720a96..9f1157a 100644 --- a/pdf/index_for_pdf_print.html +++ b/pdf/index_for_pdf_print.html @@ -64,7 +64,7 @@

    I

    image, 35, 39-40, 42-43
    imports, 12
    -inline, 11-12, 15, 20
    +inline, 11, 15, 20
    input function, 22
    introspection, 31
    ints, 4, 7, 8, 28