filmov
tv
Spyder IDE: Introduction to Python and the Python Datamodel
Показать описание
This video is a Python beginner tutorial which introduces the Python Datamodel using the visual aspects of the Spyder IDE. Python is an Object Orientated Programming (OOP) Language and uses the Python Datamodel as a consistent design pattern. This tutorial gives a beginner overview of the design pattern. It is recommended for a Python learner to get an early feeling for the design pattern as it will make it easier to learn the Builtin Python classes which each follow the design pattern and make concepts of OOP intuitive.
Spyder IDE Playlist:
0:00:00 Launching Spyder
0:00:17 The IPython Console
0:01:12 The Assignment Operator, the Variable Explorer and the Object Explorer
0:04:48 The Object Name (Variable Name or Label)
0:05:48 Defining a Function, Referencing a Function and Calling a Function
0:06:56 The Return Value of a Function
0:07:28 The Functions Input Parameters
0:08:12 Positional vs Named Input Parameters
0:08:40 Function, Method, Datamodel Method and Builtins Function or Operator
0:10:03 Positional Only / Named Input Parameters
0:12:22 The Script Editor and a Python Module
0:12:44 Running vs Importing a Python Module
0:13:37 Module vs Main Namespace
0:14:33 Module Datamodel Attributes (__doc__, __file__ and __name__)
0:15:30 Printing a String and Processing Escape Characters
0:16:57 If Module Executed (if name == '__main__')
0:18:08 Importing an Object or Everything (*) from a Module
0:20:08 The Module Initialisation File (__init__.py)
0:21:56 The Package Datamodel Attribute (__package__)
0:22:24 Import Module as Alias
0:23:00 Looking up a Functions Docstring in the Help Pane
0:25:25 A Function Return Statement vs the Print Statement
0:27:00 Calling a Method from Self "This Instance" vs the Class and Providing "This Instance" Self
0:29:50 The Directory Datamodel (__dir__) and Builtins (dir)
0:32:19 Identifiers in the IPython Console Input History (In and _ih), Output History (Out and _oh), Directory History (_dh), input values (_i1, _i2, _i3), last input values (_i, _ii, _iii) and last output values (_, __, __)
0:35:44 Restarting the IPython Console (exit and quit)
0:35:49 Builtins Identifiers and The Python Datamodel
0:38:40 Operators
0:39:20 Datamodel Attribute (__doc__) and Operator (?)
0:40:13 Instantiation of a Builtins Class (Creating an Instance and Providing the Required Instance Data)
0:43:04 Using the Class Name as a Casting Function
0:43:50 Formal and Informal String Representation Datamodel Methods (__repr__ and __str__) and Builtins Functions (repr and str)
0:45:34 The Standard Module fractions and Fraction Class
0:47:49 Defining a Custom Coordinate Class
0:49:03 The Datamodel Constructor (__new__) and Initialiser (__init__)
0:53:50 Instance Attributes vs Class Attributes
0:54:33 The Method Resolution Order
0:57:15 The Datamodel Identifier (__class__) and Builtins (type)
0:57:39 The Datamodel Comparison Methods (__eq__, __ne__, __lt__, __gt__, __le__, __ge__) and Comparison Operators (==, !+, <, >, &le, &ge)
01:00:33 Hashable Value of Immutable Instances, the Datamodel Method (__hash__) and Builtins (hash)
01:02:20 The Get, Set and Delete Datamodel Methods (__getattribute__, __setattr__, __delattr) and Builtins (getattr, setattr, delattr)
01:07:26 The Pickle Datamodel Methods (__getstate__, __reduce__, __reduce_ex__)
01:08:52 The Subclassing Datamodel Methods (__init_subclass__ and __subclasshook__)
01:14:58 Using the help Function for a Class Overview
01:17:50 Python Enhance Protocol 8 (PEP8) and the Formatters AutoPEP8 and Black
#spyder #python #datamodel #oop #dunder #programming #objectorientedprogramming #datascience
Spyder IDE Playlist:
0:00:00 Launching Spyder
0:00:17 The IPython Console
0:01:12 The Assignment Operator, the Variable Explorer and the Object Explorer
0:04:48 The Object Name (Variable Name or Label)
0:05:48 Defining a Function, Referencing a Function and Calling a Function
0:06:56 The Return Value of a Function
0:07:28 The Functions Input Parameters
0:08:12 Positional vs Named Input Parameters
0:08:40 Function, Method, Datamodel Method and Builtins Function or Operator
0:10:03 Positional Only / Named Input Parameters
0:12:22 The Script Editor and a Python Module
0:12:44 Running vs Importing a Python Module
0:13:37 Module vs Main Namespace
0:14:33 Module Datamodel Attributes (__doc__, __file__ and __name__)
0:15:30 Printing a String and Processing Escape Characters
0:16:57 If Module Executed (if name == '__main__')
0:18:08 Importing an Object or Everything (*) from a Module
0:20:08 The Module Initialisation File (__init__.py)
0:21:56 The Package Datamodel Attribute (__package__)
0:22:24 Import Module as Alias
0:23:00 Looking up a Functions Docstring in the Help Pane
0:25:25 A Function Return Statement vs the Print Statement
0:27:00 Calling a Method from Self "This Instance" vs the Class and Providing "This Instance" Self
0:29:50 The Directory Datamodel (__dir__) and Builtins (dir)
0:32:19 Identifiers in the IPython Console Input History (In and _ih), Output History (Out and _oh), Directory History (_dh), input values (_i1, _i2, _i3), last input values (_i, _ii, _iii) and last output values (_, __, __)
0:35:44 Restarting the IPython Console (exit and quit)
0:35:49 Builtins Identifiers and The Python Datamodel
0:38:40 Operators
0:39:20 Datamodel Attribute (__doc__) and Operator (?)
0:40:13 Instantiation of a Builtins Class (Creating an Instance and Providing the Required Instance Data)
0:43:04 Using the Class Name as a Casting Function
0:43:50 Formal and Informal String Representation Datamodel Methods (__repr__ and __str__) and Builtins Functions (repr and str)
0:45:34 The Standard Module fractions and Fraction Class
0:47:49 Defining a Custom Coordinate Class
0:49:03 The Datamodel Constructor (__new__) and Initialiser (__init__)
0:53:50 Instance Attributes vs Class Attributes
0:54:33 The Method Resolution Order
0:57:15 The Datamodel Identifier (__class__) and Builtins (type)
0:57:39 The Datamodel Comparison Methods (__eq__, __ne__, __lt__, __gt__, __le__, __ge__) and Comparison Operators (==, !+, <, >, &le, &ge)
01:00:33 Hashable Value of Immutable Instances, the Datamodel Method (__hash__) and Builtins (hash)
01:02:20 The Get, Set and Delete Datamodel Methods (__getattribute__, __setattr__, __delattr) and Builtins (getattr, setattr, delattr)
01:07:26 The Pickle Datamodel Methods (__getstate__, __reduce__, __reduce_ex__)
01:08:52 The Subclassing Datamodel Methods (__init_subclass__ and __subclasshook__)
01:14:58 Using the help Function for a Class Overview
01:17:50 Python Enhance Protocol 8 (PEP8) and the Formatters AutoPEP8 and Black
#spyder #python #datamodel #oop #dunder #programming #objectorientedprogramming #datascience
Комментарии