Back to index

python3.2  3.2.2
Public Member Functions | Private Member Functions | Static Private Attributes
collections.Point Class Reference
Inheritance diagram for collections.Point:
Inheritance graph
Collaboration diagram for collections.Point:
Collaboration graph

List of all members.

Public Member Functions

def hypot
def __str__

Private Member Functions

def _replace

Static Private Attributes

tuple __slots__ = ()
tuple _make = classmethod(tuple.__new__)

Detailed Description

Definition at line 1058 of file

Member Function Documentation

def collections.Point.__str__ (   self)

Definition at line 1063 of file

01064         def __str__(self):
01065             return 'Point: x=%6.3f  y=%6.3f  hypot=%6.3f' % (self.x, self.y, self.hypot)
    for p in Point(3, 4), Point(14, 5/7.):

Here is the call graph for this function:

Here is the caller graph for this function:

def collections.Point._replace (   self,
  _map = map,
) [private]

Definition at line 1073 of file

01074         def _replace(self, _map=map, **kwds):
01075             return self._make(_map(kwds.get, ('x', 'y'), self))
    print(Point(11, 22)._replace(x=100))

Here is the caller graph for this function:

def collections.Point.hypot (   self)

Definition at line 1061 of file

01062         def hypot(self):
            return (self.x ** 2 + self.y ** 2) ** 0.5

Here is the caller graph for this function:

Member Data Documentation

tuple Point.__slots__ = () [static, private]

Definition at line 1059 of file

tuple collections.Point._make = classmethod(tuple.__new__) [static, private]

Definition at line 1072 of file

The documentation for this class was generated from the following file: