[Xapian-tickets] [Xapian] #346: Python 3 support

Xapian nobody at xapian.org
Mon Jul 20 16:13:50 BST 2009


#346: Python 3 support
-----------------------------+----------------------------------------------
 Reporter:  olly             |       Owner:  richard  
     Type:  defect           |      Status:  new      
 Priority:  high             |   Milestone:  1.1.2    
Component:  Xapian-bindings  |     Version:  SVN trunk
 Severity:  normal           |    Keywords:           
Blockedby:                   |    Platform:  All      
 Blocking:                   |  
-----------------------------+----------------------------------------------

Comment(by olly):

 This is what I'm aware of that still needs to be done:

  * The next stuff doesn't seem to work for me with Python 3, and it looks
 like it breaks Python 2 support as it currently is.  It seems we should be
 able to define both {{{next()}}} and {{{__next__()}}} methods and each of
 Python 2 and Python 3 will use its own one and ignore the other.

  * The {{{__len__()}}} stuff in the patch only needs to handle a single
 argument ever it seems to me, so this should do (I didn't check if this
 fix is compatible with Python 2, but I think it should be):

 {{{
 #!python
 MSet.__len__ = lambda self: MSet.size(self)
 }}}

  * Unicode handling needs sorting out properly and not just by commenting
 out testcases which detect the current problems!  I think Richard has some
 ideas.

  * I get lots of warnings like:

 {{{
 xapian/__init__.py:4221: DeprecationWarning: object.__new__() takes no
 parameters
 }}}

-- 
Ticket URL: <http://trac.xapian.org/ticket/346#comment:10>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list