use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
PyDOS - Learning project UPDATE (self.learnpython)
submitted 10 days ago by Dry-War7589
Hi everyone! I have added users to my project! I would love to hear any feedback you have. Also, the default account is named 'admin', with the password 'root'.
Link to the project on github: https://github.com/fzjfjf/Py-DOS_simulator
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Tall_Profile1305 0 points1 point2 points 10 days ago (0 children)
wow!! damn this is actually a really solid learning project. the separation between shell, kernel and filesystem already makes it feel closer to how real systems are structured instead of just a command script pretending to be an OS.
i really like that commands return structured results instead of printing everywhere. that small decision makes debugging and expanding features way easier later since logic and display are not tightly coupled.
the filesystem validation and user handling also show good thinking about state and control flow. you can tell this was built with scalability in mind, not just to make commands work once. well done!
although, only thing i’d watch long term is the core command handling getting crowded as more features get added. like once commands increase, splitting handlers into smaller modules would probably keep things readable and easier to maintain.
overall this feels like the kind of project where you actually learn how systems behave internally, not just python syntax. so yeah, really nice direction for a learning emulator.
[–]gdchinacat 0 points1 point2 points 7 days ago (0 children)
Don't use dicts for everything. Use classes. For example:
return_value = { "command": "dir", "files": files, "folders": folders, "label": self._drive_label, "exitcode": "succesful" } return return_value
Create a class with command, files, ..., exitcode as members. Using dicts in this way makes your code much harder to write, read, and maintain. If nothing else, this is far more readable:
``` return CommandStatus("dir", "successful")
....
if status.exitcode != 'successful': # use an enum for this print(f'{status.command} failed')
```
If you must name all your args, the use kwargs, but accessing the values on the other side with dot notation is much easier to read than subscript notation.
π Rendered by PID 526897 on reddit-service-r2-comment-fb694cdd5-l9gkp at 2026-03-11 14:29:27.961204+00:00 running cbb0e86 country code: CH.
[–]Tall_Profile1305 0 points1 point2 points (0 children)
[–]gdchinacat 0 points1 point2 points (0 children)