Re:Operating Systems: Three Easy Pieces
by TeamTeaTime on Saturday February 06, 2021 @11:14PM
(#26052578)
I'm working through this now and have been able to run all the Python code I've come across so far with Python 3. For example https://github.com/remzi-arpacidusseau/ostep-homework/blob/m... is written to run under either 2 or 3.
Re:Operating Systems: Three Easy Pieces
by packetlost on Saturday February 06, 2021 @11:46PM
(#26052724)
Hmm, perhaps I somehow ended up with a really old copy of the code. I downloaded a tar.gz or zip file with a bunch of Python 2-only code (it definitely did not run under Python 3, I ran it under `2to3` without issue) directly from the wisc.edu site.
Re:Operating Systems: Three Easy Pieces
by idolaspecus on Saturday February 06, 2021 @10:43PM
(#26052457)
My memory was telling me the examples were all in C, so I went just now and picked a few random chapters, and the examples I saw were in C.
Re:Operating Systems: Three Easy Pieces
by packetlost on Saturday February 06, 2021 @11:37PM
(#26052682)
The book has a ton of C code snippets, and some other code examples, but all of the 'homework' problems are in Python.
Don't let it deter you though, it's a fantastic book.