MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / __new__

Method __new__

Python/Turtle.py:148–149  ·  view source on GitHub ↗
(cls, x, y)

Source from the content-addressed store, hash-verified

146 a.rotate(angle) rotation
147 """
148 def __new__(cls, x, y):
149 return tuple.__new__(cls, (x, y))
150 def __add__(self, other):
151 return Vec2D(self[0]+other[0], self[1]+other[1])
152 def __mul__(self, other):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected