4 ms·
One caution that this document does not mention is that the new formatting is available only in recent versions of Python. One of my projects runs on a CentOS
by japaget 12y ago
One caution that this document does not mention is that the new formatting is available only in recent versions of Python. One of my projects runs on a CentOS 5.x server, which has Python 2.4, so I had to convert all of the new style formatting to old in order to get it to run there.
- huxley 12y agoWow, Python 2.4 was last updated on October 18, 2006. Since Centos 5 still has about 2 years of life but fewer and fewer Python packages support 2.4, it might be worth looking at Pyenv: https://github.com/yyuu/pyenv https://github.com/yyuu/pyenv Good overview of what it lets you do: http://fgimian.github.io/blog/2014/04/20/better-python-version-and-environment-management-with-pyenv/ http://fgimian.github.io/blog/2014/04/20/better-python-versi...
- hobarrera 12y agoNo it's not. It's available on quite old versions of python. Python 2.4 is actually pretty ancient. To put it into perspective, it's from when we had things Firefox 2.0, and IE6 was the latest IE.