GithubHelp home page GithubHelp logo

maysam-gholampour / python_design_patterns Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yehuihe/python_design_patterns

1.0 0.0 0.0 113 KB

Repository for Mastering Python Design Patterns by Kamon Ayeva

Python 100.00%

python_design_patterns's Introduction

Repository for Mastering Python Design Patterns: A guide to creating smart, efficient and resuable software by Kamon Ayeva and Sakis Kasampalis

This repo is almost identical to Kamon's own repo:

https://github.com/PacktPublishing/Mastering-Python-Design-Patterns-Second-Edition

But with several error fixed in his code as well as some implementation for his suggested improvements. Also I included some of my own practices with design patterns. Supposed more improvement are yet to be implemented will have TODO notes. I followed more PEP 8 style than Kamon did.

In short. An expansion on Kamon's book which I really enjoy reading.

Important Notes

Kamon's repo is inactive for a few years. Therefore my repo serve as a continuation of his work and fixing bugs or compatibility issues I found. I posted any problems on Issues of his repo and recorded below.

  1. chapter13/interpreter.py

    line 141: arg_str = ' '.join(cmd)

    Trigger the ValueError exception.

    Should be arg_str = ' '.join(arg)

  2. chapter14

    RxPy 3.2.0 Compatibility Issue

    RxPy 3.2.0 made changes that cancelled Observer class. Therefore in chapter14 code need significant update.

    Reflexed in my code in chapter14

  3. chapter15/populate_db.py

    In both setup_db and add_quotes. db = sqlite3.connect('data/quotes.sqlite3') can't declared inside try/except statement. Doing so will raise

    UnboundLocalError: local variable 'db' referenced before assignment

    pull db declaration outside try

python_design_patterns's People

Contributors

yehuihe avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.