colorsys.hsv_to_rgb()

colorsys.hsv_to_rgb(h, s, v) Convert the color from HSV coordinates to RGB coordinates.

colorsys.hls_to_rgb()

colorsys.hls_to_rgb(h, l, s) Convert the color from HLS coordinates to RGB coordinates.

collections.UserString

class collections.UserString([sequence]) Class that simulates a string or a Unicode string object. The instance’s content is kept in a regular string object, which is accessible via the data attribute of UserString instances. The instance’s contents are initially set to a copy of sequence. The sequence can be an instance of bytes, str, UserString (or a subclass) or an arbitrary sequence which can be converted into a string using the built-in str() function. Changed in version 3.5: New metho

collections.UserList.data

data A real list object used to store the contents of the UserList class.

collections.UserList

class collections.UserList([list]) Class that simulates a list. The instance’s contents are kept in a regular list, which is accessible via the data attribute of UserList instances. The instance’s contents are initially set to a copy of list, defaulting to the empty list []. list can be any iterable, for example a real Python list or a UserList object. In addition to supporting the methods and operations of mutable sequences, UserList instances provide the following attribute: data A real

collections.UserDict.data

data A real dictionary used to store the contents of the UserDict class.

collections.UserDict

class collections.UserDict([initialdata]) Class that simulates a dictionary. The instance’s contents are kept in a regular dictionary, which is accessible via the data attribute of UserDict instances. If initialdata is provided, data is initialized with its contents; note that a reference to initialdata will not be kept, allowing it be used for other purposes. In addition to supporting the methods and operations of mappings, UserDict instances provide the following attribute: data A real

collections.somenamedtuple._source

somenamedtuple._source A string with the pure Python source code used to create the named tuple class. The source makes the named tuple self-documenting. It can be printed, executed using exec(), or saved to a file and imported. New in version 3.3.

collections.somenamedtuple._replace()

somenamedtuple._replace(kwargs) Return a new instance of the named tuple replacing specified fields with new values: >>> p = Point(x=11, y=22) >>> p._replace(x=33) Point(x=33, y=22) >>> for partnum, record in inventory.items(): ... inventory[partnum] = record._replace(price=newprices[partnum], timestamp=time.now())

collections.somenamedtuple._make()

classmethod somenamedtuple._make(iterable) Class method that makes a new instance from an existing sequence or iterable. >>> t = [11, 22] >>> Point._make(t) Point(x=11, y=22)