[Xapian-tickets] [Xapian] #346: Python 3 support
Xapian
nobody at xapian.org
Sat Jun 26 12:16:01 BST 2010
#346: Python 3 support
--------------------------------------+-------------------------------------
Reporter: olly | Owner: richard
Type: defect | Status: assigned
Priority: high | Milestone: 1.2.3
Component: Xapian-bindings (Python) | Version: SVN trunk
Severity: normal | Keywords:
Blockedby: | Platform: All
Blocking: |
--------------------------------------+-------------------------------------
Comment(by richard):
With the latest swig, most of the DeprecationWarnings disappear: running
the testsuite now only produces two. I've tracked their source down, and
both come from
the SWIG_Python_NewShadowInstance() function, where it calls
"""PyBaseObject_Type.tp_new""" (ie, calls the __new__ method on the base
"object" object). According to http://bugs.python.org/issue1683368 since
2.6 passing any arguments to object.__new__() gives a warning (see
http://www.python.org/download/releases/2.6/NEWS.txt and search for
1683368). The warning won't happen with 2.6 because SWIG only uses that
code for python 3.0 or later.
I think we could stop the warning by stopping passing args to tp_new(),
but then we wouldn't be using the args at all. I'm not quite sure what
this code is trying to do, but I'm sure it's meant to use the args
supplied to it!
--
Ticket URL: <http://trac.xapian.org/ticket/346#comment:17>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list