An open API service indexing awesome lists of open source software.

https://github.com/dori-dev/python-descriptors

Python descriptors to solving the problems of property(getter)
https://github.com/dori-dev/python-descriptors

descriptors python

Last synced: 4 months ago
JSON representation

Python descriptors to solving the problems of property(getter)

Awesome Lists containing this project

README

          

# Python Descriptors

Python descriptors to solving the problems of property(getter)

#

## What is the Problem?

Using **property(getter)**, setter, deleter for all variables,
It creates similar(it repeats itself) code and the code is not clean!


The problem source code: [problem.py](problem.py)

#

## What is the Solution?

By using **descriptors** and creating classes for similar variable types,
It creates clean code and doesn't repeat itself


The solution source code: [solution.py](solution.py)

#

## Links

Download Source Code: [Click Here](https://github.com/dori-dev/python-descriptors/archive/refs/heads/master.zip)

My Github Account: [Click Here](https://github.com/dori-dev/)