Back to index

python-biopython  1.60
Public Member Functions | Public Attributes
Bio.Phylo.PhyloXML.Uri Class Reference
Inheritance diagram for Bio.Phylo.PhyloXML.Uri:
Inheritance graph
Collaboration diagram for Bio.Phylo.PhyloXML.Uri:
Collaboration graph

List of all members.

Public Member Functions

def __init__
def __str__
def __repr__

Public Attributes


Detailed Description

A uniform resource identifier.

In general, this is expected to be an URL (for example, to link to an image
on a website, in which case the ``type`` attribute might be 'image' and
``desc`` might be 'image of a California sea hare').

Definition at line 1280 of file

Constructor & Destructor Documentation

def Bio.Phylo.PhyloXML.Uri.__init__ (   self,
  desc = None,
  type = None 

Definition at line 1287 of file

01288     def __init__(self, value, desc=None, type=None):
01289         self.value = value
01290         self.desc = desc
01291         self.type = type

Member Function Documentation

def Bio.Phylo.BaseTree.TreeElement.__repr__ (   self) [inherited]
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                                   ))

Definition at line 1292 of file

01293     def __str__(self):
01294         if self.value:
01295             return self.value
01296         return repr(self)

Member Data Documentation

Definition at line 1289 of file

Definition at line 1290 of file

Definition at line 1288 of file

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