[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    Switching to Python 3
From:       "Philipp A." <flying-sheep () web ! de>
Date:       2013-11-10 11:51:52
Message-ID: CAN8d9gkAsdt3u9YCU7L2fQV-6=7B1ZCPDgAHHPFs-NrxFM65yQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi!

After my proposal to switch to Python3 was met more positively than
expected, it seems to be a real possible goal.
 <#>What it means for us

For us, it means that afterwards, we can drop compatibility crutches, can
use all Python stdlib features, and don't have to test 2 differently
compiled versions of Kate anymore.

It also means that Kate (when compiled with Pâté at all) depends on
libpython3.x+ (where "x" has yet to be decided, but should be at least "2"
imho, if not "3"), instead of on "that libpython which the packager feels
like linking against"
 <#>What it means for distributions

There seem to be misconceptions about what "default python version in
Ubuntu/Fedora/…" means.

It's pretty easy: It's the version delivered on the ISO which system tools
depend on.

    It's *not* the target of the symlink /usr/bin/python !!! Many
distributions will likely never link python → python3, and still call
Python 3 "default".

This means e.g. Ubuntu⁽ ⁾ and Fedora⁽ ⁾ currently *don't have a default
version*, as some system tools depend on 2 while others depend on 3. And to
them, "switching" means to eliminate the need to ship Python 2 on the
installation media, by porting all system tools to 3.
 <#>What it means, combined

This means that *currently*, any program that wants to minimize
dependencies, and depends either on Python 2 or 3 can ship any way it
wants, and *in the future*, such programs should ship depending on Python 3.

That means that we (Kate) can switch to Python 3 *right now* without
causing problems, if Ubuntu and Fedora are indicative of all distros.
------------------------------

⁽ ⁾ https://wiki.ubuntu.com/Python/3
⁽ ⁾ https://fedoraproject.org/wiki/Changes/Python_3_as_Default#Scope

[Attachment #5 (text/html)]

<div dir="ltr"><div style class="markdown-here-wrapper" \
id="markdown-here-wrapper-783989"><p style="margin:1.2em 0px!important">Hi!</p> <p \
style="margin:1.2em 0px!important">After my proposal to switch to Python3 was met \
more positively than expected, it seems to be a real possible goal.</p> <a href="#" \
name="what-it-means-for-us"></a><h2 style="margin:1.3em 0px \
1em;padding:0px;font-weight:bold;font-size:1.4em;border-bottom:1px solid \
rgb(204,204,204)" id="what-it-means-for-us">What it means for us</h2> <p \
style="margin:1.2em 0px!important">For us, it means that afterwards, we can drop \
compatibility crutches, can use all Python stdlib features, and don't have to test 2 \
differently compiled versions of Kate anymore.</p> <p style="margin:1.2em \
0px!important">It also means that Kate (when compiled with Pâté at all) depends on \
<code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px \
0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid \
rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">libpython3.x</code>+ \
(where "x" has yet to be decided, but should be at least "2" imho, if not "3"), \
instead of on "that libpython which the packager feels like linking against"</p>

<a href="#" name="what-it-means-for-distributions"></a><h2 style="margin:1.3em 0px \
1em;padding:0px;font-weight:bold;font-size:1.4em;border-bottom:1px solid \
rgb(204,204,204)" id="what-it-means-for-distributions">What it means for \
distributions</h2>

<p style="margin:1.2em 0px!important">There seem to be misconceptions about what \
"default python version in Ubuntu/Fedora/…" means.</p> <p style="margin:1.2em \
0px!important">It's pretty easy: It's the version delivered on the ISO which system \
tools depend on.</p> <p style="margin:1.2em 0px!important">    It's <em>not</em> \
the target of the symlink <code \
style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px \
0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid \
rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">/usr/bin/python</code> \
!!! Many distributions will likely never link python → python3, and still call \
Python 3 "default".</p>

<p style="margin:1.2em 0px!important">This means e.g. Ubuntu⁽ ⁾ and Fedora⁽ \
⁾ currently <em>don't have a default version</em>, as some system tools depend on \
2 while others depend on 3. And to them, "switching" means to eliminate the need to \
ship Python 2 on the installation media, by porting all system tools to 3.</p>

<a href="#" name="what-it-means-combined"></a><h2 style="margin:1.3em 0px \
1em;padding:0px;font-weight:bold;font-size:1.4em;border-bottom:1px solid \
rgb(204,204,204)" id="what-it-means-combined">What it means, combined</h2>

<p style="margin:1.2em 0px!important">This means that <em>currently</em>, any program \
that wants to minimize dependencies, and depends either on Python 2 or 3 can ship any \
way it wants, and <em>in the future</em>, such programs should ship depending on \
Python 3.</p>

<p style="margin:1.2em 0px!important">That means that we (Kate) can switch to Python \
3 <em>right now</em> without causing problems, if Ubuntu and Fedora are indicative of \
all distros.</p> <hr>
<p style="margin:1.2em 0px!important">⁽ ⁾ <a \
href="https://wiki.ubuntu.com/Python/3">https://wiki.ubuntu.com/Python/3</a><br>⁽ \
⁾ <a href="https://fedoraproject.org/wiki/Changes/Python_3_as_Default#Scope">https://fedoraproject.org/wiki/Changes/Python_3_as_Default#Scope</a></p>


</div></div>



_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic