Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #82487
| References | (1 earlier) <341920B4-12B5-499D-95FC-5572338AE602@stufft.io> <CAN-Kwu2mFEr61qNiC1oZf6qgapngcRN73J2CxZRUBmp6y+MB_A@mail.gmail.com> <CAPJVwBmW7paDFFPgV3=RvnVwXeHreMRmWSCkvg6QyKz1x_aC4w@mail.gmail.com> <mailman.16849.1418286001.18130.python-list@python.org> <m6hn98$mae$1@reader1.panix.com> |
|---|---|
| From | Zachary Ware <zachary.ware+pylist@gmail.com> |
| Date | 2014-12-13 11:47 -0600 |
| Subject | Re: [Python-Dev] Python 2.x and 3.x use survey, 2014 edition |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.16936.1418492883.18130.python-list@python.org> (permalink) |
On Sat, Dec 13, 2014 at 9:51 AM, Grant Edwards <invalid@invalid.invalid> wrote: > On 2014-12-10, Bruno Cauet <brunocauet@gmail.com> wrote: > >> Nathaniel, I'm not sure about that: even if the code is 2- and 3-compatible >> you'll pick one runtime. > > Why do you say that? > > I have both installed. I use both. Sometimes it depends on which > OS/distro I'm running, sometimes other reasons prevail. Just to give another anecdote, I wrote myself a little tool last night for visualizing healthcare scenarios to help my family decide which insurance plan to choose this year. I didn't realize until I added 'subTest's to the tests and mistakenly invoked them as "python -m test" instead of "python3 -m test" that I'd accidentally written it to be 2/3 compatible! I took the subTest back out, and tests pass with both interpreters. -- Zach (If such a tool could be useful to anyone, I can post it on BitBucket/GitHub. Its support for all possibilities is far from complete, but it helped us a bit. Also, I make no guarantees that you won't want to gouge your eyes out reading the code, but that *shouldn't* happen ;)
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [Python-Dev] Python 2.x and 3.x use survey, 2014 edition Bruno Cauet <brunocauet@gmail.com> - 2014-12-10 18:32 +0100
Re: [Python-Dev] Python 2.x and 3.x use survey, 2014 edition Grant Edwards <invalid@invalid.invalid> - 2014-12-13 15:51 +0000
Re: [Python-Dev] Python 2.x and 3.x use survey, 2014 edition Zachary Ware <zachary.ware+pylist@gmail.com> - 2014-12-13 11:47 -0600
csiph-web