Re: Could somebody change the alioth documentation, have a buster roadmap and know what's missing to move to python 3 entirely.

2018-06-07 Thread Ben Finney
Ondrej Novy  writes:

> do I understand you correctly that there is no default Python in
> Debian? :)

:-) Hopefully a little polite repetition will help the point become
clearer, though Andrey said it plainly in the initial response.

Shirish, now that we've established there is no “default Python” in
Debian, you may want to know that there *is* a concept of the default
interpreter for *a specific Python major version*.

You can ask the Debian system. First choose which Python major version
(currently Python 2 or Python 3) you want, then run the command to ask
what interpreter command to use:

$ pyversions --default  # What is the name of the default Python 2 
interpreter command?
python2.7

$ py3version --default  # What is the name of the default Python 3 
interpreter command?
python3.6

Note that you can *only* ask about the default within a specific Python
major version. Each of those commands is installed by a completely
separate Python environment, and neither of them care about the other:

$ dpkg --search $(which pyversions py3versions)
python-minimal: /usr/bin/pyversions
python3-minimal: /usr/bin/py3versions

The ‘pyversions’ command asks *only* about Python 2. The ‘py3versions’
commandasks *only* about Python 3.

The answer you get for “default interpreter” depends which Python major
version you choose to interrogate; there's no default choice.

-- 
 \ “If you pick up a starving dog and make him prosperous, he will |
  `\  not bite you. This is the principal difference between a dog |
_o__)and a man.” —Mark Twain, _Pudd'n'head Wilson_ |
Ben Finney



Re: Could somebody change the alioth documentation, have a buster roadmap and know what's missing to move to python 3 entirely.

2018-06-07 Thread Ondrej Novy
Hi,

2018-06-07 11:03 GMT+02:00 Ben Finney :
>
> There is no “default Python” in Debian
> ...
> There is no command in Debian for “the default Python”,
> ...
> There is no “default Python” in Debian.
>

do I understand you correctly that there is no default Python in Debian? :)

Just kiddin', thanks for explanation.

-- 
Best regards
 Ondřej Nový

Email: n...@ondrej.org
PGP: 3D98 3C52 EB85 980C 46A5  6090 3573 1255 9D1E 064B


Re: Could somebody change the alioth documentation, have a buster roadmap and know what's missing to move to python 3 entirely.

2018-06-06 Thread Andrey Rahmatullin
On Wed, Jun 06, 2018 at 10:20:13PM +0530, shirish शिरीष wrote:
> Maybe it would have been better to say that right now python gives
> 
> $ python --version
> Python 2.7.15
> 
> To be more precise,  I meant to know if 'Bullseye' i.e Debian 11 would
> have python 3.0 as default or not.
/usr/bin/python will, too, never be a Python 3 executable.

-- 
WBR, wRAR


signature.asc
Description: PGP signature


Re: Could somebody change the alioth documentation, have a buster roadmap and know what's missing to move to python 3 entirely.

2018-06-06 Thread shirish शिरीष
at bottom :-

On 06/06/2018, shirish शिरीष  wrote:
> Dear Friends,
>
> I was just looking for documentation about what's keeping us from
> getting to python 3 but couldn't find anything which I could lay my
> finger on.
>
> I did find some obsolete documentation though on the wiki. The entries
> can be seen at -
>
> https://wiki.debian.org/Python
>
> and
>
> https://wiki.debian.org/Python/Python3Port
>
> The list addresses are of alioth glven therein. I am guessing most of
> those mails have been submerged in debian-python debian mailing list
> (i.e. here) probably.
>
> I was also looking for a BusterRoadmap on lines of the Stretch roadmap
> and the Jessie roadmap from before but didn't find anything :(
>
> https://wiki.debian.org/Python/StretchRoadmap
> https://wiki.debian.org/Python/JessieRoadmap
>
> I have also been trying to understand which packages/modules are
> remaining for python 3 to be the default-python
>
> $ apt-cache policy python
> python:
>   Installed: 2.7.15~rc1-1
>   Candidate: 2.7.15~rc1-1
>   Version table:
>  *** 2.7.15~rc1-1 500
> 500 http://cdn-fastly.deb.debian.org/debian buster/main amd64
> Packages
> 100 http://cdn-fastly.deb.debian.org/debian unstable/main amd64
> Packages
> 100 /var/lib/dpkg/status
>
> Look forward to answers. I do remember of times reading documentation
> when the stdlib did not have all the libraries of a particular 3.x
> version. I also remember reading somewhere that we still used lot of
> python 2 scripts. Another could be that 2.7 will have support till
> 2020.
>
> In either way having a roadmap would be nice.
>

I just read Andrey's mail at
https://lists.debian.org/debian-python/2018/06/msg00024.html . Please
CC me if somebody replies.

Maybe it would have been better to say that right now python gives

$ python --version
Python 2.7.15

To be more precise,  I meant to know if 'Bullseye' i.e Debian 11 would
have python 3.0 as default or not.

-- 
  Regards,
  Shirish Agarwal  शिरीष अग्रवाल
  My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
EB80 462B 08E1 A0DE A73A  2C2F 9F3D C7A4 E1C4 D2D8



Could somebody change the alioth documentation, have a buster roadmap and know what's missing to move to python 3 entirely.

2018-06-06 Thread shirish शिरीष
Dear Friends,

I was just looking for documentation about what's keeping us from
getting to python 3 but couldn't find anything which I could lay my
finger on.

I did find some obsolete documentation though on the wiki. The entries
can be seen at -

https://wiki.debian.org/Python

and

https://wiki.debian.org/Python/Python3Port

The list addresses are of alioth glven therein. I am guessing most of
those mails have been submerged in debian-python debian mailing list
(i.e. here) probably.

I was also looking for a BusterRoadmap on lines of the Stretch roadmap
and the Jessie roadmap from before but didn't find anything :(

https://wiki.debian.org/Python/StretchRoadmap
https://wiki.debian.org/Python/JessieRoadmap

I have also been trying to understand which packages/modules are
remaining for python 3 to be the default-python

$ apt-cache policy python
python:
  Installed: 2.7.15~rc1-1
  Candidate: 2.7.15~rc1-1
  Version table:
 *** 2.7.15~rc1-1 500
500 http://cdn-fastly.deb.debian.org/debian buster/main amd64 Packages
100 http://cdn-fastly.deb.debian.org/debian unstable/main amd64 Packages
100 /var/lib/dpkg/status

Look forward to answers. I do remember of times reading documentation
when the stdlib did not have all the libraries of a particular 3.x
version. I also remember reading somewhere that we still used lot of
python 2 scripts. Another could be that 2.7 will have support till
2020.

In either way having a roadmap would be nice.

-- 
  Regards,
  Shirish Agarwal  शिरीष अग्रवाल
  My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
EB80 462B 08E1 A0DE A73A  2C2F 9F3D C7A4 E1C4 D2D8