Skip to content

convert

This module implements all supported formats and their converters

Authors:

  • Stijn De Weirdt (Ghent University)

Convert

Bases: Wrapper

Convert casts a string passed via the initialisation to a Convert (sub)class instance, mainly for typechecking and printing purposes.

__init__(obj)

Support the conversion of obj to something

__str__()

Convert to string

_from_string(txt)

Convert string txt to self.data in proper type

_split_string(txt, sep=None, max=0)

Split using sep, return list with results.

PARAMETER DESCRIPTION
sep

if not provided, self.SEPARATOR is tried

DEFAULT: None

max

split in max+1 elements (default: 0 == no limit)

DEFAULT: 0