3 ms·
> Do people still write for 2.7 Yes. > which is the default "python" in most (all?) Linux distributions Most distributions ship both 2.x and 3.x at the same
by viraptor 13y ago
> Do people still write for 2.7
Yes.
> which is the default "python" in most (all?) Linux distributions
Most distributions ship both 2.x and 3.x at the same time. Ubuntu ported most (all?) of its tools to 3.x already.
> is it safe to write for python3 now?
What do you mean by safe? It's been stable for a long time now. As long as you verify all your dependencies work, you should be fine. The only annoying thing you may run into is a situation where only one of the versions is provided: for example if you want to drive ufw (3.x only) from salt (2.x only), you'll have to resort to some kind of IPC instead.
There was a poll about the current state a month or two ago on HN.
- wfn 13y agoAlso, python3 is the default in archlinux: https://wiki.archlinux.org/index.php/python https://wiki.archlinux.org/index.php/python
- stefantalpalaru 13y agoArch Linux is an exception because they blindly follow upstream.
- raverbashing 13y agoYes, Python 3.3 is absolutely fine, I wouldn't bet on 3.2 or anything earlier though.