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

Method __getnewargs__

Python/Turtle.py:173–174  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

171 c, s = math.cos(angle), math.sin(angle)
172 return Vec2D(self[0]*c+perp[0]*s, self[1]*c+perp[1]*s)
173 def __getnewargs__(self):
174 return (self[0], self[1])
175 def __repr__(self):
176 return "(%.2f,%.2f)" % self
177

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected