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

SignatureDescription
push(item: T)Push an item onto the stack.
pop()TPop the top item from the stack.
peek()TPeek at the top item without removing it.
clear()
clone()"PsStack[T]"
to_list()list[T]Return a shallow list copy of stack items.

See Also