Table of Contents

Class: NullOp Martel/Expression.py

does nothing

Base Classes   
Expression
Methods   
__add__
__init__
__or__
__str__
_select_names
copy
  __add__ 
__add__ ( self,  other )

  __init__ 
__init__ ( self )

()

Doesn't match anything. This is a null operation. It's useful if you want a valid initial object from which to build, as in:

exp = NullOp() for c in string.split(line): exp = exp + Str(c)

(That's contrived
see Time.py for a real use.)
  __or__ 
__or__ ( self,  other )

Exceptions   
TypeError( "Cannot 'or' a NullOp with anything (only 'and')" )
  __str__ 
__str__ ( self )

  _select_names 
_select_names ( self,  names )

  copy 
copy ( self )


Table of Contents

This document was automatically generated on Mon Jul 1 12:03:20 2002 by HappyDoc version 2.0.1