MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / push

Method push

lib/matplotlib/cbook.py:693–701  ·  view source on GitHub ↗

Push *o* to the stack after the current position, and return *o*. Discard all later elements.

(self, o)

Source from the content-addressed store, hash-verified

691 return self()
692
693 def push(self, o):
694 """
695 Push *o* to the stack after the current position, and return *o*.
696
697 Discard all later elements.
698 """
699 self._elements[self._pos + 1:] = [o]
700 self._pos = len(self._elements) - 1
701 return o
702
703 def home(self):
704 """

Callers 3

homeMethod · 0.95
push_currentMethod · 0.45
push_currentMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected