autolist#

class autolist(*args)[source]#

Bases: list

A simple extension to a list that defines add methods to simplify appending and extension.

Examples:

ls = sc.autolist(3) # Quickly convert a scalar to a list

ls = sc.autolist()
for i in range(5):
    ls += i # No need for ls += [i]

Methods

__add__(obj=None)[source]#

Allows non-lists to be concatenated