Skip to main content

popNamePrefix

Pops a prefix from the name stack. See pushNamePrefix for how name stacks are used.

Syntax

sst.popNamePrefix()

Parameters

  • returns none

Example

import sst

comp0 = sst.Component("c0", "simpleElementExample.example0") # Name is 'c0'

sst.pushNamePrefix("base")

comp1 = sst.Component("c1", "simpleElementExample.example0") # Name is 'base.c1'

sst.popNamePrefix()

comp2 = sst.Component("c2", "simpleElementExample.example0") # Name is 'c2'

Import

import sst