search for: __repr__

Displaying 3 results from an estimated 3 matches for "__repr__".

2011 Nov 18
2
yum update fails / problem
...lib/python2.6/site-packages/yum/plugins.py", line 184, in run func(conduitcls(self, self.base, conf, **kwargs)) File "/usr/share/yum-plugins/rhnplugin.py", line 121, in prereposetup_hook str(e)) File "/usr/share/rhn/up2date_client/up2dateErrors.py", line 177, in __repr__ "The message was:\n") + self.errmsg UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 6: ordinal not in range(128) -- G?tz Reinicke IT-Koordinator Tel. +49 7141 969 420 Fax +49 7141 969 55 420 E-Mail goetz.reinicke at filmakademie.de Filmakademie...
2008 Aug 16
1
python how do i stem words in python?
...ow do i stem words before doing doc.add_posting? is there any sample hello world code in python that i can use? thanks a lot! >>> stemmer = xapian.Stem('english') >>> stemmer. stemmer.__call__ stemmer.__reduce_ex__ stemmer.__class__ stemmer.__repr__ stemmer.__delattr__ stemmer.__setattr__ stemmer.__dict__ stemmer.__str__ stemmer.__doc__ stemmer.__swig_destroy__ stemmer.__getattribute__ stemmer.__weakref__ stemmer.__hash__ stemmer.get_available_languages stemmer.__init__...
2006 Sep 13
1
[Fwd: Re: [Swig-user] wrapping enums for python]
...get: > > print swigtest.SS_MAX > SS_MAX > > So the idea was to use something like: > > %pythoncode %{ > > class Enum(int): > def __new__(cls, arg, desc ): > self = int.__new__(cls, arg) > self.desc = desc > return self > def __repr__( self ): > return self.desc > > %} > > and then somehow in the .py file > > SS_MIN = Enum(_swigtest.SS_MIN, "SS_MIN") > instead of > SS_MIN = _swigtest.SS_MIN > > But the problem is that I do not know how to do > SS_MIN = Enum(_swigtest.SS_MIN,...