This is a development version (9.18.0.dev) and may be unstable.Go to latest (9.17.0)
{ } Raw JSON

bundles / IPython 9.18.0.dev / IPython / utils / text / SList

class

IPython.utils.text:SList

source: /IPython/utils/text.py:93

Signature

class SList(iterable = (), /)

Members

Summary

List derivative with a special access attributes.

Extended Summary

These are normal lists, but with the special attributes:

  • .l (or .list)value as list (the list itself).

  • .n (or .nlstr): value as a string, joined on newlines.

  • .s (or .spstr): value as a string, joined on spaces.

  • .p (or .paths): list of pathlib.Path objects (existing files only)

Any values which require transformations are computed only once and cached.

Aliases

  • IPython.core.interactiveshell.SList

Referenced by

This package