[Python-ideas] Rosetta Code on Python.org site?
Jason Schwerberg
jason at schwerberg.com
Thu Oct 15 19:37:47 CEST 2015
At risk of completely going off topic from the mission of Python-Ideas,
I'd almost rather see a delineation between Python 2 and Python 3, like
RC has done with Perl 5 (http://rosettacode.org/wiki/Category:Perl) and
Perl 6 (http://rosettacode.org/wiki/Category:Perl_6).
From RC:
> Though it resembles previous versions of Perl to no small degree,
Perl 6 is substantially a new language; by design, it isn't
backwards-compatible with Perl 5.
And from https://wiki.python.org/moin/Python2orPython3
> Guido van Rossum (the original creator of the Python language)
decided to clean up Python 2.x properly, with less regard for backwards
compatibility than is the case for new releases in the 2.x range.
While there are many ways to make 'good' code, compatible with both
Python 2 and 3, I think that the most terse, efficient code would be
better demonstrated by segregating Python 2.x from Python 3.x.
On 10/15/2015 6:19 AM, Steve Dower wrote:
> FWIW, that comment is from five years ago and was written by someone
> who claims to have been using Python far longer than that (and has
> enough contributions for that to be believable). It reads more to me
> like a preemptive apology to "The Haters" than a dismissal of Python 3.
>
> I'm sure any contributor to the site can easily reword it to better
> reflect that not all examples are as terse as they could be if they
> avoided the 2/3 straddle.
>
> Cheers,
> Steve
>
> Top-posted from my Windows Phone
> ------------------------------------------------------------------------
> From: Andrew Barnert via Python-ideas <mailto:python-ideas at python.org>
> Sent: 10/14/2015 19:03
> To: Terry Reedy <mailto:tjreedy at udel.edu>
> Cc: python-ideas at python.org <mailto:python-ideas at python.org>
> Subject: Re: [Python-ideas] Rosetta Code on Python.org site?
>
> On Oct 14, 2015, at 18:03, Terry Reedy <tjreedy at udel.edu> wrote:
> >
> > The page you reference seems a bit hostile to Python 3. It equates
> 'Python' with 'Python 2' and calls code that also works with Python 3
> 'unidiomatic Python', and makes no mention of the possibility of
> submitting Python 3.
>
> It also seems to imply that widespread use of reduce is pythonic,
> apologizing for the unpythonic need to check for and import it in case
> of Python 3, which makes me wonder how pythonic the code is even for a
> decade ago…
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20151015/c05624df/attachment.html>
More information about the Python-ideas
mailing list