Package pywikipedia :: Module catlib :: Class CatTitleRecognition
[show private | hide private]
[frames | no frames]

Type CatTitleRecognition

object --+
         |
        CatTitleRecognition


Special object to recognize categories in a certain language.

Purpose is to construct an object using a language code, and to call the object as a function to see whether a title represents a category page.
Method Summary
  __init__(self, site)
  check(self, s)
True if s points to a category page.
    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)

Method Details

check(self, s)

True if s points to a category page.

Generated by Epydoc 2.1 on Sun Jul 03 17:07:37 2005 http://epydoc.sf.net