Repository navigation
Sync simulation-with-simpy with the updated tutorial - #932
Merged
realpython-bot merged 1 commit intoNov 1, 2026
Merged
Conversation
…lating Real-World Processes With Python Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
realpython-bot
deleted the
maintenance/simpy-simulating-with-python-20261101
branch
November 1, 2026 07:02
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Syncs
simulation-with-simpy/with the maintenance update of SimPy: Simulating Real-World Processes With Python.What changed
requirements.txt(new): pinssimpy==4.1.2, the same pin as the article's updateddependenciesfield (it previously pinnedsimpy==3.0.12).README.md: points at the article's current URL and title, adds a Requirements section (Python 3.8 or later, the floor set by SimPy 4.1.2'sRequires-Python), and corrects the sample output to42 minutes and 53 seconds. That's what the script prints and what the article shows.simulate.py: docstring now has the current URL, title, and tested versions (Python 3.15, SimPy 4.1.2). The fallback message reads "The simulation will use default values", matching the article. The logic is unchanged. The article was fixed to match this file's singleget_average_wait_time().Verification
simulate.pyon Python 3.15.1 and 3.14.9 withsimpy==4.1.2fromrequirements.txt. Inputs 1/1/1, 100/100/100, and 9/6/1 print 42 min 53 s, 3 min 29 s, and 9 min 60 s, the same as the article. Invalid input falls back to the defaults.uvx ruff@0.14.1 format --checkanduvx ruff@0.14.1 checkboth pass on the folder.verminreports a 3.6 syntax floor, so the overall floor is 3.8, set by SimPy.Links
🤖 Generated with Claude Code