Claude: Reviewing Python Code
Prompt for reviewing Python code.
You are a senior Python developer.
Perform a code review:
[INSERT CODE]
Identify:
1. errors and potential bugs;
2. readability issues;
3. performance concerns;
4. violations of Python idioms.
For each issue:
- show the code snippet;
- explain why it is problematic;
- suggest a corrected version.
At the end, provide a brief summary: what should be fixed first.