Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #82350 > unrolled thread

Re: [Python-Dev] Python 2.x and 3.x use survey, 2014 edition

Started byBruno Cauet <brunocauet@gmail.com>
First post2014-12-10 18:32 +0100
Last post2014-12-13 11:47 -0600
Articles 3 — 3 participants

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  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

#82350 — Re: [Python-Dev] Python 2.x and 3.x use survey, 2014 edition

FromBruno Cauet <brunocauet@gmail.com>
Date2014-12-10 18:32 +0100
SubjectRe: [Python-Dev] Python 2.x and 3.x use survey, 2014 edition
Message-ID<mailman.16849.1418286001.18130.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

Remarks heard & form updated.
Nathaniel, I'm not sure about that: even if the code is 2- and 3-compatible
you'll pick one runtime. 2 others questions now mention writing polyglot
code.

By the way I published the survey on HN, /r/programming & /r/python:
https://news.ycombinator.com/item?id=8730156 http://redd.it/2ovlwm
http://redd.it/2ovls4
Feel free to publish it anywhere else, to get as many answers as possible.

Bruno

2014-12-10 18:24 GMT+01:00 Nathaniel Smith <njs@pobox.com>:

> On 10 Dec 2014 17:16, "Ian Cordasco" <graffatcolmingov@gmail.com> wrote:
> >
> > On Wed, Dec 10, 2014 at 11:10 AM, Donald Stufft <donald@stufft.io>
> wrote:
> > >
> > > On Dec 10, 2014, at 11:59 AM, Bruno Cauet <brunocauet@gmail.com>
> wrote:
> > >
> > > Hi all,
> > > Last year a survey was conducted on python 2 and 3 usage.
> > > Here is the 2014 edition, slightly updated (from 9 to 11 questions).
> > > It should not take you more than 1 minute to fill. I would be pleased
> if you
> > > took that time.
> > >
> > > Here's the url: http://goo.gl/forms/tDTcm8UzB3
> > > I'll publish the results around the end of the year.
> > >
> > > Last year results: https://wiki.python.org/moin/2.x-vs-3.x-survey
> > >
> > >
> > > Just going to say http://d.stufft.io/image/0z1841112o0C is a hard
> question
> > > to answer, since most code I write is both.
> > >
> >
> > The same holds for me.
>
> That question appears to have just grown a "compatible with both" option.
>
> It might make sense to add a similar option to the following question
> about what you use for personal projects.
>
> -n
>
> _______________________________________________
> Python-Dev mailing list
> Python-Dev@python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe:
> https://mail.python.org/mailman/options/python-dev/brunocauet%40gmail.com
>
>

[toc] | [next] | [standalone]


#82484

FromGrant Edwards <invalid@invalid.invalid>
Date2014-12-13 15:51 +0000
Message-ID<m6hn98$mae$1@reader1.panix.com>
In reply to#82350
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.

-- 
Grant

[toc] | [prev] | [next] | [standalone]


#82487

FromZachary Ware <zachary.ware+pylist@gmail.com>
Date2014-12-13 11:47 -0600
Message-ID<mailman.16936.1418492883.18130.python-list@python.org>
In reply to#82484
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 ;)

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web