Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Change __str__ to __repr__

nilaybhatiadfe90dddea5e
diff --git a/manim/mobject/mobject.py b/manim/mobject/mobject.py
index 0d7244a5a..b93f0d40b 100644
--- a/manim/mobject/mobject.py
+++ b/manim/mobject/mobject.py
@@ -62,6 +62,9 @@ class Mobject(Container):
self.generate_points()
self.init_colors()
+ def __repr__(self):
+ return str(self.name)
+
def reset_points(self):
self.points = np.zeros((0, self.dim))