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


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

Python 2 or 3

Started byAntti J Ylikoski <antti.ylikoski@tkk.fi>
First post2011-12-03 05:54 +0200
Last post2011-12-10 12:49 +0100
Articles 1 on this page of 21 — 14 participants

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


Contents

  Python 2 or 3 Antti J Ylikoski <antti.ylikoski@tkk.fi> - 2011-12-03 05:54 +0200
    Re: Python 2 or 3 Gnarlodious <gnarlodious@gmail.com> - 2011-12-02 20:10 -0800
    Re: Python 2 or 3 Andrew Berg <bahamutzero8825@gmail.com> - 2011-12-02 22:20 -0600
    Re: Python 2 or 3 Roy Smith <roy@panix.com> - 2011-12-02 23:27 -0500
    Re: Python 2 or 3 Dan Stromberg <drsalists@gmail.com> - 2011-12-02 20:42 -0800
    Re: Python 2 or 3 Terry Reedy <tjreedy@udel.edu> - 2011-12-03 01:23 -0500
    Re: Python 2 or 3 Andrew Berg <bahamutzero8825@gmail.com> - 2011-12-03 00:37 -0600
    Re: Python 2 or 3 Andrew Berg <bahamutzero8825@gmail.com> - 2011-12-03 00:41 -0600
    Re: Python 2 or 3 jmfauth <wxjmfauth@gmail.com> - 2011-12-03 00:59 -0800
    Re: Python 2 or 3 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-12-03 10:04 +0000
      Re: Python 2 or 3 Chris Angelico <rosuav@gmail.com> - 2011-12-03 21:44 +1100
    Re: Python 2 or 3 Arnaud Delobelle <arnodel@gmail.com> - 2011-12-03 12:03 +0000
    Re: Python 2 or 3 Gelonida N <gelonida@gmail.com> - 2011-12-03 21:59 +0100
    Re: Python 2 or 3 Chris Angelico <rosuav@gmail.com> - 2011-12-04 13:52 +1100
    Re: Python 2 or 3 Terry Reedy <tjreedy@udel.edu> - 2011-12-03 21:52 -0500
    Re: Python 2 or 3 Chris Angelico <rosuav@gmail.com> - 2011-12-04 14:02 +1100
    Re: Python 2 or 3 Zaphod <zaphod@beeblebrox.net> - 2011-12-04 20:18 +0000
    Re: Python 2 or 3 Tobiah <tobiah@teranews.com> - 2011-12-06 09:33 -0800
      Re: Python 2 or 3 Enrico 'Henryx' Bianchi <henryx_b@yahoo.it> - 2011-12-10 00:16 +0100
        Re: Python 2 or 3 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-12-10 00:19 +0000
          Re: Python 2 or 3 Enrico 'Henryx' Bianchi <henryx_b@yahoo.it> - 2011-12-10 12:49 +0100

Page 2 of 2 — ← Prev page 1 [2]


#16949

FromEnrico 'Henryx' Bianchi <henryx_b@yahoo.it>
Date2011-12-10 12:49 +0100
Message-ID<jbvh0i$aje$1@tdi.cu.mi.it>
In reply to#16935
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Steven D'Aprano wrote:

> RHEL supports Python 3, it just doesn't provide Python 3.

True, but as you say later, the only method is to recompile. So, if I want 
to use Python 3 in a production environment like RHEL, I need:

 - A development environment similar to production (e.g. if I use RHEL 5 in
   production, I need at least a CentOS 5.x);
 - Compile Python 3 in a development environment;
 - Write the python app;
 - Release a *huge* package to install.

The only bright side is to freeze version of Python and the libraries, but 
every update (e.g. bug fixing on a library) is by hand

> When installing, don't use "make install", as that will replace the
> system Python, instead use "make altinstall".

Good, I didn't know this option

> Then the command "python"
> will still refer to the system Python (probably Python 2.4 or 2.5?), and
> "python3" should refer to Python 3.x.

RHEL (and CentOS) 5.x use Python 2.4

> You shouldn't be learning programming on a production server :)

Of course, but if I want to use an application written in Python 3 on a 
production environment which doesn't support it, I have to prepare at least 
a development environment similar to production (ok, ok, with a VM is 
simple, but I need to track the exception)

Enrico
P.S. an alternative may be cx_freeze, but I don't know exactly hot it works
P.P.S. I'm boring, but I would like my point of view because I've found 
precisely in this case
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEcBAEBAgAGBQJO40dHAAoJED3SMOGZLYdYIPoH/1J6OljjCJQnmR/uwjEFCrHy
TEMpfKodD40gL7lOZLMHnpJrs+Ct2Vo/1+mtAIi+vZ6rkhFG50ykBJMAlMgXkCjt
I6fkp9YLKmFX9OjRuJ9qE+2P5PliyNDPKVljyfaXMhalbrtHnn7mrL9524TzhcoG
+Ape1U9MPTu3naVULKWK0FjGa/RwhbSOdDOKX2IBmRHFEgtf3dZJ2xNYXUJnhnT8
fbfD87ykXyyVg6LS8c14PPeWnpFeeZBQappjoHg9+XZd8/Y1uH1NuP7k4cepzJB2
Car4lucChW9+llM4mz1BADQZuo4J1v71K5DR8mVXyM2usUlNWelkgR6GVWUmXE0=
=trwj
-----END PGP SIGNATURE-----

[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

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


csiph-web