Previous Next blank.gif Home Page

Class Container


SYNOPSIS

import HTMLgen
class Container
  def __add__(self, other)
  def __init__(self, *args, **kw)
  def __repr__(self)
  def append(self, *items)
  def copy(self)
  def empty(self)
  def last(self)
  def length(self)
  def prepend(self, *items)

DESCRIPTION

Generic base class providing methods associated with managing an object with a content list. Used by the TableLite class and friends.

def __add__(self, other)

Support self + list

def append(self, *items)

Append one or more items to the end of the container.

def copy(self)

Return a full copy of the object.

def empty(self)

Empty the contents of the container.

def last(self)

Return the last item in the container.

def length(self)

Return the integer length of the container list.

def prepend(self, *items)

Prepend one or more items to the top of the container.

SEE ALSO

HTMLgen


Previous Next blank.gif Home Page
Buzz.gif

Copyright © Robin Friedrich
All Rights Reserved
Comments to author: friedric@phoenix.net
Generated: Mon Dec 2 1996