diff --git a/README.md b/README.md index b412520..1e4e0b3 100644 --- a/README.md +++ b/README.md @@ -1995,7 +1995,7 @@ Struct ```python from struct import pack, unpack = pack('', [, ...]) # Packages arguments or raises struct.error. - = unpack('', ) # Use iter_unpack() for iterator of tuples. + = unpack('', ) # Use iter_unpack() to get iterator of tuples. ``` ```python @@ -2055,7 +2055,7 @@ Memory View = [] # Returns an int or a float. = [] # Mview with rearranged elements. = .cast('') # Casts memoryview to the new format. -.release() # Releases the object's memory buffer. +.release() # Releases memory buffer of target object. ``` ```python @@ -2291,7 +2291,7 @@ Introspection = vars() # Dict of writable attributes. Also .__dict__. = hasattr(, '') # Checks if getattr() raises an AttributeError. value = getattr(, '') # Default value can be passed as the third argument. -setattr(, '', value) # Only works on objects with '__dict__' attribute. +setattr(, '', value) # Only works on objects with __dict__ attribute. delattr(, '') # Same. Also `del .`. ``` diff --git a/index.html b/index.html index 28db245..c83ce2a 100644 --- a/index.html +++ b/index.html @@ -1649,7 +1649,7 @@ CompletedProcess(args=['bc', from struct import pack, unpack <bytes> = pack('<format>', <el_1> [, ...]) # Packages arguments or raises struct.error. -<tuple> = unpack('<format>', <bytes>) # Use iter_unpack() for iterator of tuples. +<tuple> = unpack('<format>', <bytes>) # Use iter_unpack() to get iterator of tuples. @@ -1703,7 +1703,7 @@ CompletedProcess(args=['bc', # Returns an int or a float. <mview> = <mview>[<slice>] # Mview with rearranged elements. <mview> = <mview>.cast('<typecode>') # Casts memoryview to the new format. -<mview>.release() # Releases the object's memory buffer. +<mview>.release() # Releases memory buffer of target object. @@ -1891,7 +1891,7 @@ CRITICAL:my_module:Running out of disk space. <dict> = vars(<object>) # Dict of writable attributes. Also <obj>.__dict__. <bool> = hasattr(<object>, '<attr_name>') # Checks if getattr() raises an AttributeError. value = getattr(<object>, '<attr_name>') # Default value can be passed as the third argument. -setattr(<object>, '<attr_name>', value) # Only works on objects with '__dict__' attribute. +setattr(<object>, '<attr_name>', value) # Only works on objects with __dict__ attribute. delattr(<object>, '<attr_name>') # Same. Also `del <object>.<attr_name>`.
<Sig>  = inspect.signature(<function>)     # Function's Signature object.