Back to index

python-biopython  1.60
Public Member Functions | Static Private Attributes
Bio.Phylo.BaseTree.TreeElement Class Reference
Inheritance diagram for Bio.Phylo.BaseTree.TreeElement:
Inheritance graph

List of all members.

Public Member Functions

def __repr__

Static Private Attributes

 __str__ = __repr__

Detailed Description

Base class for all Bio.Phylo classes.

Definition at line 213 of file

Member Function Documentation

Show this object's constructor with its primitive arguments.

Definition at line 216 of file

00217     def __repr__(self):
00218         """Show this object's constructor with its primitive arguments."""
00219         def pair_as_kwarg_string(key, val):
00220             if isinstance(val, basestring):
00221                 return "%s='%s'" % (key, _sugar.trim_str(unicode(val)))
00222             return "%s=%s" % (key, val)
00223         return u'%s(%s)' % (self.__class__.__name__,
00224                             ', '.join(pair_as_kwarg_string(key, val)
00225                                   for key, val in self.__dict__.iteritems()
00226                                   if val is not None and
00227                                   type(val) in (str, int, float, bool, unicode)
00228                                   ))

Member Data Documentation

Definition at line 229 of file

The documentation for this class was generated from the following file: