PsStack
Overview
PsStack is a class in Aspose.Page FOSS for Python.
Simple stack implementation for PostScript execution.
This class provides 6 methods for working with PsStack objects in Python programs.
Available methods include: clear, clone, peek, pop, push, to_list.
All public members are accessible to any Python application after installing the Aspose.Page FOSS for Python package.
Methods
| Signature | Description |
|---|---|
push(item: T) | Push an item onto the stack. |
pop() → T | Pop the top item from the stack. |
peek() → T | Peek at the top item without removing it. |
clear() | |
clone() → "PsStack[T]" | |
to_list() → list[T] | Return a shallow list copy of stack items. |