Re: [Yade-dev] Python 2 removal

2018-06-05 Thread Václav Šmilauer
Hi guys, for inspiration, you can check out commit https://github.com/woodem/woo/commit/e25623325d8fd0a5dcc9f94a7b78249e36bff449 and quite a few afterwards (between Oct 18 2015 and Nov 10 2015, some of them). The hardest part definitely was str/bytes distinction, plus testing. The more tests

Re: [Yade-dev] Python 2 removal

2018-06-05 Thread Bruno Chareyre
Hi, I also browsed a little and could not find any big change (provided that replacing "print 'hi'" by "print('hi')" can be automatic). It doesn't mean no problem will emerge though, on needs to try. For a IT student internship the problem would be that if things go well the job could be

Re: [Yade-dev] Python 2 removal

2018-06-04 Thread Anton Gladky
Hello Jerome, thank you for you answer. I am not sure, how difficult could it be to switch the Yade or to add a support of Python3. The syntax of python 2 and 3 is not so different. One can find a lot of such migration tutorials. It would probably be more problematic two support both versions

Re: [Yade-dev] Python 2 removal

2018-05-31 Thread Jerome Duriez
Hi Anton, I'd consider this idea, ie I have some time and motivation, and no knowledge.. :-) Moreover / instead possible personal efforts, I could also look into the possibility proposing a dedicated internship to some IT (with an emphasis on the "I") student. Since I do not have a precise

[Yade-dev] Python 2 removal

2018-05-07 Thread Anton Gladky
Dear Yade developers, Python 2 reaches end of life and will probably removed soon from Debian [1] and then most probably from Ubuntu-Mint etc archives too. It is only the question of time. I think it will unlikely happen till the Buster release (mid 2019), but it will probably happen at the end