Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #62794
| From | Ned Batchelder <ned@nedbatchelder.com> |
|---|---|
| Subject | Re: So, what's the real story on Python 2 vs Python 3? |
| Date | 2013-12-27 07:13 -0500 |
| References | <XT7vu.64127$Qi4.25759@fx11.iad> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4665.1388146756.18130.python-list@python.org> (permalink) |
On 12/27/13 12:04 AM, Travis McGee wrote: > The Python.org site says that the future is Python 3, yet whenever I try > something new in Python, such as Tkinter which I am learning now, > everything seems to default to Python 2. By this I mean that, whenever I > find that I need to install another package, it shows up as Python 2 > unless I explicitly specify Python 3. > > What's the deal? If I want to make a distributable software package, > should it be 2 or 3? Enquiring minds want to know. Choosing between 2 and 3 should be done the same way any version decision is made: examine all of your dependencies (libraries, help online, skilled helpers available, hosting options, books, etc), then choose the highest version that supports them. Some people still find that the answer is 2, but many are finding that it is now 3. There's a lot of FUD about Python 3, don't listen to it. Certainly don't be thrown by the "default" of 2. It doesn't matter what most people do, or how your operating system is configured, what matters is whether you have what you need. Note that on sensible operating systems, "python" will continue to mean Python 2, and "python3" will mean Python 3. This will help perpetuate the notion that Python 3 is the outlier, but it's the only way to keep software working properly. Don't let it color your perceptions. If you are going to support both 2 and 3, in addition to the other good suggestions in this thread, the six module on PyPI can help with the differences. -- Ned Batchelder, http://nedbatchelder.com
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
So, what's the real story on Python 2 vs Python 3? Travis McGee <nobody@nowhere.com> - 2013-12-27 00:04 -0500
Re: So, what's the real story on Python 2 vs Python 3? Roy Smith <roy@panix.com> - 2013-12-27 00:07 -0500
Re: So, what's the real story on Python 2 vs Python 3? Chris Angelico <rosuav@gmail.com> - 2013-12-27 16:14 +1100
Re: So, what's the real story on Python 2 vs Python 3? Andrew Berg <robotsondrugs@gmail.com> - 2013-12-26 23:20 -0600
Re: So, what's the real story on Python 2 vs Python 3? Grant Edwards <invalid@invalid.invalid> - 2014-01-02 16:34 +0000
Re: So, what's the real story on Python 2 vs Python 3? Dan Stromberg <drsalists@gmail.com> - 2013-12-26 21:29 -0800
Re: So, what's the real story on Python 2 vs Python 3? Rustom Mody <rustompmody@gmail.com> - 2013-12-27 11:13 +0530
Re: So, what's the real story on Python 2 vs Python 3? Chris Angelico <rosuav@gmail.com> - 2013-12-27 17:00 +1100
Re: So, what's the real story on Python 2 vs Python 3? Dan Stromberg <drsalists@gmail.com> - 2013-12-26 22:23 -0800
Re: So, what's the real story on Python 2 vs Python 3? Rustom Mody <rustompmody@gmail.com> - 2013-12-27 16:21 +0530
Re: So, what's the real story on Python 2 vs Python 3? Chris Angelico <rosuav@gmail.com> - 2013-12-27 22:06 +1100
Re: So, what's the real story on Python 2 vs Python 3? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-12-27 22:34 +1100
Re: So, what's the real story on Python 2 vs Python 3? Chris Angelico <rosuav@gmail.com> - 2013-12-27 22:46 +1100
Re: So, what's the real story on Python 2 vs Python 3? Ned Batchelder <ned@nedbatchelder.com> - 2013-12-27 07:13 -0500
Re: So, what's the real story on Python 2 vs Python 3? Grant Edwards <invalid@invalid.invalid> - 2014-01-02 16:28 +0000
csiph-web