Package musicbrainz2 :: Module wsxml :: Class ArtistResult
[frames | no frames]

Type ArtistResult

object --+
         |
        ArtistResult


Represents an artist result.

An ArtistResult consists of a score and an artist. The score is a number between 0 and 100, where a higher number indicates a better match.
Method Summary
  __init__(self, artist, score)
  getArtist(self)
Returns an Artist object.
  getScore(self)
Returns the result score.
  setArtist(self, artist)
  setScore(self, score)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Property Summary
  artist: An Artist object.
  score: The relevance score.

Method Details

getArtist(self)

Returns an Artist object.
Returns:
a musicbrainz2.model.Artist object

getScore(self)

Returns the result score.

The score indicates how good this result matches the search parameters. The higher the value, the better the match.
Returns:
an int between 0 and 100 (both inclusive), or None

Property Details

artist

An Artist object.
Get Method:
getArtist(self)
Set Method:
setArtist(self, artist)

score

The relevance score.
Get Method:
getScore(self)
Set Method:
setScore(self, score)

Generated by Epydoc 2.1 on Wed Dec 20 18:19:28 2006 http://epydoc.sf.net