Which Python 2.x DHT implementation is going to be easiest to port to Python 3.x?

StackOverflow https://stackoverflow.com/questions/1716526

  •  19-09-2019
  •  | 
  •  

Question

Previously I asked which DHT implementations are compatible with Python 3.x - StackOverflow's answer confirmed my worst fear: So far nobody has released a Python 3.x compatible Distributed Hash Table implementation. That means it's to roll up my sleeves and get to work myself.

My project does not necessarily require the highest performance, it simply needs to be a true DHT.

Since this feature is not core to my project (but could be truly awesome) I do not want to get bogged down tweaking ultimate performance. Nor do I want to spend a lot of time fixing somebody else's bugs.

I just want pick up the DHT implementation that's going to be the easiest to work with and then port it to 3.x. In theory this work should not require a profound knowledge of the way any spesific implementation work.

So given all of the above, which of the many python 2.x DHT implementations are going to be my best bet to start with?

Was it helpful?

Solution

Try running 2to3 on each of them, then run the resulting code. If one of them works, then it was the easiest to port. If none of them do, then take a guess based on which of their errors you understand best.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top