OSDN Git Service

Slightly more efficient to just print the string.
authorSimon Forman <sforman@hushmail.com>
Sun, 17 May 2020 18:51:59 +0000 (11:51 -0700)
committerSimon Forman <sforman@hushmail.com>
Sun, 17 May 2020 18:51:59 +0000 (11:51 -0700)
joy/gui/world.py

index 48cbbdd..4712f86 100644 (file)
@@ -167,7 +167,7 @@ class StackWorld(StackDisplayWorld):
                self.viewer.update_stack(self.stack)
 
        def print_stack(self):
-               print('%s . ' % stack_to_string(self.stack), end='')
+               print(stack_to_string(self.stack), '•', end=' ')
                if self.viewer:
                        self.viewer.update_stack(self.stack)