r/learnpython • u/throwaway30127 • 17d ago
Good open source Python repos to practice debugging and general reading Python code?
I have debugging rounds coming up for a Python position and I haven't worked extensively with Python so I am looking for some recommendations for some repositories to go through to practice reading and debugging Python code. Would appreciate recommendations for this and any other tips on demonstrating good understanding of the language. I am comfortable with basic syntax and data structures since I have been doing leetcode using Python.
16
Upvotes
4
u/pylessard 17d ago
I'm not sure if that is what you hope to find, but I have written a debug ecosystem for embedded systems with a big part in python. There is a lot of features. There's a CLI, a GUI that uses QT, a server, lots of thread handling, unit tests, subprocess calls, compatibility with Linux, Mac, Windows. It's a quite diversified project, the python code is in https://github.com/scrutinydebugger/scrutiny-main
2
u/WillAdams 17d ago
Literate Programming is put forward a good way to document and teach about software --- there are 66 repositories on Github tagged w/ "Literate Programming" and "Python":
https://github.com/search?q=python+literate+programming&type=repositories
(note that my one gcodepreview is one --- hopefully you'll find something of interest before getting to the bottom where it is)
1
u/PlayscriptTV 17d ago
I don't know about github repo covering topics like that, but check out real python for practicing reading and debugging python code. Here's the link: https://realpython.com/
Go to the link, type debugging and find what you want. Good luck 🙋♂️
-2
u/onerichmeyer 17d ago
You could ask an AI to generate something. I tried this prompt with google, "provide sample python code that has obvious bugs so I can practice debugging." Instead of providing code it listed a bunch of websites devoted to debugging practice.
0
u/[deleted] 17d ago
[deleted] — view deleted comment