filmov
tv
Python Tutorial Guide #15 - Decorators, Closures, & Properties with Getters and Setters!

Показать описание
Decorators: 0:00
Closures: 16:16
Properties (W/ Getters and Setters): 22:08
Hello Guys!
Python Tutorial Guide #15 - Decorators, Closures, & Properties with Getters and Setters!
Today I have this mammoth of a python video, detailing how to use Decorators in python, Closures in python, as well as properties in python that will also cover how to create getters and setters for your variables in Python.
Decorators: Python has an interesting feature called decorators to add
functionality to an existing code.This is also called meta-programming as a part of the program tries to modify another part of the program at compile time.
Closures: Closures can avoid the use of global values and provides some form of data hiding. When there are few methods (one method in most cases) to be implemented in a class, closures can provide an alternate and more elegant solutions. But when the number of attributes and methods get larger, better implement a class.
Properties: You will learn about Python @property; the python way to use getters and setters. These allow us to create code that can be rewritten by other authors without breaking our original code, also allows for backwards compatibility!
Music by Royalty Free Music:
Royalty Free Music | No Copyright Sounds | Undefeated - Hip Hop Beat Rap Instrumental
I hope you guys enjoy!
Closures: 16:16
Properties (W/ Getters and Setters): 22:08
Hello Guys!
Python Tutorial Guide #15 - Decorators, Closures, & Properties with Getters and Setters!
Today I have this mammoth of a python video, detailing how to use Decorators in python, Closures in python, as well as properties in python that will also cover how to create getters and setters for your variables in Python.
Decorators: Python has an interesting feature called decorators to add
functionality to an existing code.This is also called meta-programming as a part of the program tries to modify another part of the program at compile time.
Closures: Closures can avoid the use of global values and provides some form of data hiding. When there are few methods (one method in most cases) to be implemented in a class, closures can provide an alternate and more elegant solutions. But when the number of attributes and methods get larger, better implement a class.
Properties: You will learn about Python @property; the python way to use getters and setters. These allow us to create code that can be rewritten by other authors without breaking our original code, also allows for backwards compatibility!
Music by Royalty Free Music:
Royalty Free Music | No Copyright Sounds | Undefeated - Hip Hop Beat Rap Instrumental
I hope you guys enjoy!