diff --git a/README.md b/README.md index 7a035fb..0341d30 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ Dictionary ```python = .keys() # Coll. of keys that reflects changes. = .values() # Coll. of values that reflects changes. - = .items() # Coll. of key-value tuples. + = .items() # Coll. of key-value tuples that reflects chgs. ``` ```python @@ -246,8 +246,8 @@ Type * **Type and class are synonymous.** ```python - = type() # Or: .__class__ - = isinstance(, ) # Or: issubclass(type(), ) + = type() # Or: .__class__ + = isinstance(, ) # Or: issubclass(type(), ) ``` ```python @@ -368,11 +368,11 @@ import re ### Match Object ```python - = .group() # Whole match. Also group(0). - = .group(1) # Part in first bracket. - = .groups() # All bracketed parts. - = .start() # Start index of a match. - = .end() # Exclusive end index of a match. + = .group() # Returns whole match. Also group(0). + = .group(1) # Returns part in first bracket. + = .groups() # Returns all bracketed parts. + = .start() # Returns start index of a match. + = .end() # Returns exclusive end index of a match. ``` ### Special Sequences @@ -474,8 +474,8 @@ Format ### Ints ```python {90:c} # 'Z' -{90:X} # '5A' {90:b} # '1011010' +{90:X} # '5A' ``` diff --git a/index.html b/index.html index 6413b82..0b27754 100644 --- a/index.html +++ b/index.html @@ -258,7 +258,7 @@ index = <list>.index(<el>) # Returns

#Dictionary

<view> = <dict>.keys()                          # Coll. of keys that reflects changes.
 <view> = <dict>.values()                        # Coll. of values that reflects changes.
-<view> = <dict>.items()                         # Coll. of key-value tuples.
+<view> = <dict>.items()                         # Coll. of key-value tuples that reflects chgs.
 
value  = <dict>.get(key, default=None)          # Returns default if key is missing.
@@ -378,8 +378,8 @@ to_exclusive   = <range>.stop
 
  • Everything is an object.
  • Every object has a type.
  • Type and class are synonymous.
  • -
    <type> = type(<el>)                # Or: <el>.__class__
    -<bool> = isinstance(<el>, <type>)  # Or: issubclass(type(<el>), <type>)
    +
    <type> = type(<el>)                          # Or: <el>.__class__
    +<bool> = isinstance(<el>, <type>)            # Or: issubclass(type(<el>), <type>)
     
    @@ -473,11 +473,11 @@ to_exclusive = <range>.stop
  • Use r'\1' or '\\1' for backreference.
  • Add '?' after an operator to make it non-greedy.
  • -

    Match Object

    <str>   = <Match>.group()                      # Whole match. Also group(0).
    -<str>   = <Match>.group(1)                     # Part in first bracket.
    -<tuple> = <Match>.groups()                     # All bracketed parts.
    -<int>   = <Match>.start()                      # Start index of a match.
    -<int>   = <Match>.end()                        # Exclusive end index of a match.
    +

    Match Object

    <str>   = <Match>.group()                      # Returns whole match. Also group(0).
    +<str>   = <Match>.group(1)                     # Returns part in first bracket.
    +<tuple> = <Match>.groups()                     # Returns all bracketed parts.
    +<int>   = <Match>.start()                      # Returns start index of a match.
    +<int>   = <Match>.end()                        # Returns exclusive end index of a match.
     

    Special Sequences

      @@ -558,8 +558,8 @@ to_exclusive = <range>.stop +---------------+-----------------+-----------------+-----------------+-----------------+

    Ints

    {90:c}                                # 'Z'
    -{90:X}                                # '5A'
     {90:b}                                # '1011010'
    +{90:X}                                # '5A'
     

    #Numbers

    Types

    <int>      = int(<float/str/bool>)    # Or: math.floor(<float>)