<div dir="auto">Is this something I could help support, with mentoring to begin with? It’s been a long time since I programmed for a living. I work two jobs. And I would have to keep them for now. I have bills to pay.<br clear="all"><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Elise KI6PUO</div></div></div></div><div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 19, 2024 at 8:52 AM Akkana Peck <<a href="mailto:akkana@shallowsky.com">akkana@shallowsky.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> Deirdre Saoirse Moen wrote on 2024-02-18 12:57:<br>
> > I'm just*gobsmacked* that it's taken so many people so long to jump<br>
> > from 2 to 3. Yes, the biggest change is int / int = float (instead of<br>
> > int) and the other big one is that str can't be used for both text<br>
> > and binary data.<br>
<br>
Ron / BCLUG writes:<br>
> Plus all the `print` statements need to be converted to `print()` functions.<br>
<br>
Things like print statements can be translated automatically -- I used a program called 2to3 which did a pretty good job of translating all the prints and other easily automated changes.<br>
<br>
For me, that left a few problems that couldn't be machine translated:<br>
<br>
- urllib* got rewritten/refactored, so anything that fetches or parses URLs (and didn't use the external module "requests") had to be completely rewritten;<br>
<br>
- the string/unicode change Deirdre mentioned required a fair amount of rewriting, couldn't be automated, and sometimes introduced somewhat subtle new bugs that took a while to find and fix;<br>
<br>
- there's no python3-gtk, so GTK apps had to be rewritten to use GObject introspection, which only works with gtk3, so apps also had to be rewritten in GTK3 when they were upgraded to python3 and GIO. (That got a lot easier once I found out about the pygtkcompat introspection module, though I wonder how long it will continue to be supported.)<br>
<br>
It was a hassle, no question. But I'm with Deirdre at being amazed to see projects that still haven't upgraded, long after python2 has ceased to be maintained.<br>
<br>
...Akkana<br>
<br>
_______________________________________________<br>
conspire mailing list<br>
<a href="mailto:conspire@linuxmafia.com" target="_blank">conspire@linuxmafia.com</a><br>
<a href="http://linuxmafia.com/mailman/listinfo/conspire" rel="noreferrer" target="_blank">http://linuxmafia.com/mailman/listinfo/conspire</a><br>
</blockquote></div></div>