🏠 Strona Główna
Benchmarki
📊 Wszystkie benchmarki 🦖 Dinozaur v1 🦖 Dinozaur v2 ✅ Aplikacje To-Do List 🎨 Kreatywne wolne strony 🎯 FSACB - Ostateczny pokaz 🌍 Benchmark tłumaczeń
Modele
🏆 Top 10 modeli 🆓 Darmowe modele 📋 Wszystkie modele ⚙️ Kilo Code
Zasoby
💬 Biblioteka promptów 📖 Słownik AI 🔗 Przydatne linki
advanced

Legacy Python Code Refactoring

#python #refactoring #code-review #optimization

Request a comprehensive review and refactoring of a legacy Python script focusing on efficiency, readability, and modern syntax.

Analyze the following legacy Python code snippet. Identify code smells, anti-patterns, and potential performance bottlenecks. Refactor the code to adhere to PEP 8 standards, utilize Python 3.10+ features such as structural pattern matching and type hinting, and improve time complexity where applicable. Provide a side-by-side comparison of the original logic versus your optimized version, explaining the specific benefits of each change made.