[Xapian-tickets] [Xapian] #346: Python 3 support
Xapian
nobody at xapian.org
Sun Jun 17 15:08:14 BST 2012
#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 | Keywords:
Blockedby: | Platform: All
Blocking: |
--------------------------------------+-------------------------------------
Comment(by james):
Hmm, your 80-20 is different to mine, suggesting it's more like a 50-50
split. However if we emit bytes and accept bytes + str (UTF-8 encoding),
except for directors & internal places like the serialisation API, that's
not incompatible with either explicit `_utf8()` functions or some other
approach in the future. I'm still worried that people are going to feel
the "need" to write wrappers, but we can tackle that later once we have
some clear feedback from people running into problems.
I *think* that it'll be possible to write code that's compatible with both
py2 and py3 if we return bytes, because you want to do all your encoding
in client code for py2 anyway. (This is important for things like django-
haystack, where the community seems to be about getting py3 compatibility
without needing forks.)
--
Ticket URL: <http://trac.xapian.org/ticket/346#comment:36>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list