o19s / relevant-search-book

Code and Examples for Relevant Search

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Any plan to upgrade to python 3.x?

mfkilgore opened this issue · comments

I have made a few changes myself as required, but would be nice to have 3.x supported too.

Thanks,

I agree it would be nice to have support for 3.x, though it's difficult because I don't want the distinction between 2.x and 3.x to be a cause of confusion itself. Do you see any place where the code is currently 2.x compatible and not 3.x compatible but can easily be made compatible with both?

I'm guessing this would mostly be print statements...

On Tuesday, January 19, 2016, John Berryman notifications@github.com
wrote:

I agree it would be nice to have support for 3.x, though it's difficult
because I don't want the distinction between 2.x and 3.x to be a cause of
confusion itself. Do you see any place where the code is currently 2.x
compatible and not 3.x compatible but can easily be made compatible with
both?


Reply to this email directly or view it on GitHub
#10 (comment)
.

True most of the changes are print statements and simple to fix. There are a couple of others like iteritems -> items, but mostly easy.

I've been porting to Python 3 and Elasticsearch 6 in my own fork but I'm taking full liberties to rename and remove stuff so I don't think I'll ever actually make a PR.

But yes, the effort is very small. Mostly print statements and iteritems for python, and mostly get parameters that became json parameters or string -> text types on the ES side. Besides the classic similarity metric being completely deprecated in 6.3.0.