This repository was archived by the owner on Nov 20, 2025. It is now read-only.
WIP: Upgrade to Python 3#86
Draft
leikin wants to merge 1 commit into
Draft
Conversation
This commit mostly just fixes compiler errors that popped out after changing Python version. I managed to get the radiotelephone display (scripts/koliber.py) working after converting the scripts to Python 3. I haven't tried to build this on Windows yet. It probably won't work.
Contributor
Author
|
Boring as it may be, I feel like upgrading the scripts is the easiest part. I'd be happy to tackle it, as it won't require too much focus (again, attention span of a puppy ;)). I'll need some guidance in the beginning---I already have cloned the SVN repository, but I had trouble starting the simulator (also it took very long, because I have no idea (yet) how to convert t3d to e3d). For now, I made a local Git repository on top of my clone of the SVN and started versioning the upgraded Python scripts in that. |
Contributor
|
DM me on discord - I'll provide you with all the necessary information. My username: hirek_exe |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Alright, I started working on this, but then Life Happened (and the attention span of a dog), so I'm just leaving it here for now. Maybe someone picks it up (myself or otherwise), maybe someone tells me I'm wasting my time ;)
Getting Python 2.7 on Linux is getting increasingly annoying, and I doubt it's going to get improve. I wanted to see how much work would have to be done to update MaSzyna to Python 3. Turns out---not much, but the devil is in the details.
For now, I've got the simulator to build with GCC. Haven't tried building on Windows yet, I have to get a VM for that and install Visual Studio. Which I kind of dread, but YGDWYGD. I've left a few TODOs in the comments, too.
I've also tried porting a few of the scripts to Python 3. Thankfully, most of them are stupid simple, so it was mostly a matter of changing the
printsyntax and replacingsys.maxintwithsys.maxsize.