4 ms·
Heads up to anyone wanting to go through this book and use the code samples: they're all in Python 2. Don't let it deter you though, it's a fantastic book.
by packetlost 6y ago
Heads up to anyone wanting to go through this book and use the code samples: they're all in Python 2.
Don't let it deter you though, it's a fantastic book.
- idolaspecus 6y agoMy 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.
- packetlost 6y agoThe book has a ton of C code snippets, and some other code examples, but all of the 'homework' problems are in Python.
- TeamTeaTime 6y agoI'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/master/threads-intro/x86.py https://github.com/remzi-arpacidusseau/ostep-homework/blob/m... is written to run under either 2 or 3.
- packetlost 6y agoHmm, 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.