[Xapian-tickets] [Xapian] #346: Python 3 support
Xapian
nobody at xapian.org
Wed Sep 25 15:57:19 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
--------------------------------------+------------------------------
\
\
\
\
\
\
Comment (by richard):
After reviewing this discussion and thinking for a bit, I think the only
safeish option for input is to accept both bytes and str, and
automatically encode str as utf8. The sole exception would be for
sortable_unserialise(), which should error if given a str.
For ease of explanation, implementation, and to avoid having to maintain
lots of custom wrappers, I think all return values should be bytes. We
should simply document this, and people can do ".decode('utf8')" for those
return values where they expect that to work; eg, they can do this for a
returned term if they're only storing UTF8 term values in the database.
\
\
\
--
Ticket URL: <http://trac.xapian.org/ticket/346#comment:59>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list