3 ms·
Why? One of the interesting things about science is that your results are better if you don't change too much. So if you're using a python 2.4 to do your data a
by ChuckMcM 14y ago
Why? One of the interesting things about science is that your results are better if you don't change too much. So if you're using a python 2.4 to do your data analysis and now your re-creating your experiment from 5 years sgo, if you have a new Python and libraries and you get different results, then one of the things you will need to do is put everything back to 2.4 and see if your results changed because of the software or because of the experiment.
- blakeweb 14y agoI agree reproducibility is an important problem, but the author assumes that dropping backwards compatibility is often necessary at _some_ point in order for a language to improve, and that the improvement is at _some_ point worth it. I think in this context that's the answer to your "Why?". There are all sorts of issues with reproducibility of scientific work beyond py3k vs 2.x (virtualenv is one way to address that one) like all your packages, for instance, and all the libraries they rely on, which are necessarily going to change at some point. That's part of a bigger discussion. Hoping your work from 5 years ago is going to run just because you never upgraded to py3k is probably not going to solve the problem.
- _dps 14y agoI'd add that for the bulk of people writing software to support science, programming practices are among the least of their concerns. A data analysis program supporting a particular research project is more akin to a mathematical formula than to a piece of software engineering. Upgrading it to Python 3 would be about as motivating as going back and updating your equations in a research paper because a new font became available. Moving your current/new development to Python 3, to a scientist, sounds a lot like "So there's this new font. It sort of works like the old one. No it doesn't let you write any new equations, and it may or may not complain about being used near papers written in the older font. We know you don't particularly like fussing with typesetting, but how about you invest in this maybe-compatible thing instead of spending your time doing your science? We promise you, the professional typesetters have moved beyond that stodgy Yourfont2.7 you've been using to write your papers."
- catch23 14y agoSo maybe the best way to encourage adoption is to convince a researcher in the field to implement their new math algorithms in python 3. Anyone who wishes to use these new algorithms would be forced to upgrade.