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

Xapian nobody at xapian.org
Fri Oct 11 06:22:59 BST 2013


#346: Python 3 support
--------------------------------------+------------------------------
 Reporter:  olly                      |             Owner:  richard
     Type:  defect                    |            Status:  assigned
 Priority:  highest                   |         Milestone:  1.3.2
Component:  Xapian-bindings (Python)  |           Version:  SVN trunk
 Severity:  normal                    |        Resolution:
 Keywords:                            |        Blocked By:
 Blocking:                            |  Operating System:  All
--------------------------------------+------------------------------
\
\
\
\
\
\

Old description:

> This is what I'm aware of that still needs to be done:
>
> As of r17524, the python3 tests all pass (but we've disabled
> "postingsource" under threads because it segfaults for currently unknown
> reasons - all the testcases are run without threads and pass, and then
> again with threads and we get this failure).
>
>  * Check and update examples
>  * Check and update docs
>  * Resolve why postingsource testcase segfaults under threads
>
> ----
>
> In ["ToDoFor1.1.0"], Richard wrote:
> > Support for python 3.  May already work, but needs testing, and may
> > need some tweaking.  Could do with someone going through all the
> > places where strings are supplied and returned, and deciding
> > whether the API should expect byte strings or unicode strings (or
> > both).
>
> Assigning to you, since you added it to the list and I don't really know
> what to look for...

New description:

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

 As of r17524, the python3 tests all pass (but we've disabled
 "postingsource" under threads because it segfaults for currently unknown
 reasons - all the testcases are run without threads and pass, and then
 again with threads and we get this failure).

  * Check and update examples
  * Resolve why postingsource testcase segfaults under threads

 ----

 In ["ToDoFor1.1.0"], Richard wrote:
 > Support for python 3.  May already work, but needs testing, and may
 > need some tweaking.  Could do with someone going through all the
 > places where strings are supplied and returned, and deciding
 > whether the API should expect byte strings or unicode strings (or
 > both).

 Assigning to you, since you added it to the list and I don't really know
 what to look for...

--
\
\

Comment (by olly):

 And r17565 updates the documentation (and converts it to .rst).  I'd
 appreciate a review by people with a better grasp of Python than me:

 http://trac.xapian.org/browser/svn/trunk/xapian-
 bindings/python3/docs/index.rst

 Also, do we want to keep both:

 {{{
   for t in document:
     print(t.term)
 }}}

 and:

 {{{
   for t in document.termlist():
     print(t.term)
 }}}

 (and the other methods which duplicate {{{__iter__}}} on the same object).
\
\
\

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



More information about the Xapian-tickets mailing list