A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/attachments/20110302/81fd9e9c/attachment.html below:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 01/03/2011 21:19, Kerrick Staley wrote:
    <blockquote
      cite="mid:AANLkTikTfD9MRnonUeyA1MhBh4_EhR7SaOiodRq_X6ry@mail.gmail.com"
      type="cite">Hello,
      <div>There is a need for the default Python2 install to place a
        symlink at /usr/bin/python2 that points to /usr/bin/python, or
        for the documentation to recommend that packagers ensure that
        python2 is defined. Also, all documentation should be changed to
        recommend that "#!/usr/bin/env python2" be used as the shebang
        for Python 2 scripts.</div>
      <div>This is needed because some distributions (Arch Linux, in
        particular), point /usr/bin/python to /usr/bin/python3, while
        others (including Slackware, Debian, and the BSDs, probably
        more) do not even define the python2 command. This means that a
        script has no way of achieving cross-platform compatibility. The
        point at which many distributions begin to alias /usr/bin/python
        to /usr/bin/python3 is due soon, and for the next couple of
        years, it would be best to use a python2 or python3 shebang in
        all scripts, making no assumptions about plain python, which
        should only be invoked interactively. This email from about 3
        years ago seems relevant: : <a moz-do-not-send="true"
href="http://mail.python.org/pipermail/python-3000/2008-March/012421.html">http://mail.python.org/pipermail/python-3000/2008-March/012421.html</a></div>
      <div>Again, this issue needs to be addressed by the Python
        developers themselves so that different *nix distributions will
        handle it consistently, allowing Python scripts to continue to
        be cross-platform.</div>
    </blockquote>
    <br>
    +1 <br>
    <br>
    Note that a PEP will need to address what we do for Windows and Mac
    OS X. Less of an issue for Windows where we don't put python.exe on
    the PATH (which we *should*), but we still need to decide whether we
    will add python2 / python3 binaries.<br>
    <br>
    Michael Foord<br>
    <br>
    <blockquote
      cite="mid:AANLkTikTfD9MRnonUeyA1MhBh4_EhR7SaOiodRq_X6ry@mail.gmail.com"
      type="cite">
      <div>Thanks,</div>
      <div>Kerrick Staley</div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Python-Dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Python-Dev@python.org">Python-Dev@python.org</a>
<a class="moz-txt-link-freetext" href="http://mail.python.org/mailman/listinfo/python-dev">http://mail.python.org/mailman/listinfo/python-dev</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="http://mail.python.org/mailman/options/python-dev/fuzzyman%40voidspace.org.uk">http://mail.python.org/mailman/options/python-dev/fuzzyman%40voidspace.org.uk</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.voidspace.org.uk/">http://www.voidspace.org.uk/</a>

May you do good and not evil


May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.
-- the sqlite blessing <a class="moz-txt-link-freetext" href="http://www.sqlite.org/different.html">http://www.sqlite.org/different.html</a>
</pre>
  </body>
</html>

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4