Advanced Python With VM Internals
3.6 (13 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
94 students enrolled
Wishlisted Wishlist

Please confirm that you want to add Advanced Python With VM Internals to your Wishlist.

Add to Wishlist

Advanced Python With VM Internals

Learn Advanced Python with Virtual Machine Insights
3.6 (13 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
94 students enrolled
Created by Vivek Saxena
Last updated 9/2016
English
Curiosity Sale
Current price: $10 Original price: $20 Discount: 50% off
30-Day Money-Back Guarantee
Includes:
  • 2 hours on-demand video
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • Start contributing to live commercial Python project within 1-2 days
  • System level knowledge of Classes Functions Closures and Decorators
  • Implement Python design patterns and make effective use of Python Decorators. This course is mandatory to be able to do a code walkthrough of commercial Python softwares like Open Stack
View Curriculum
Requirements
  • Practice a little bit writing simples python code on interactive shell
Description


A course on Python is useless if it doesn't answer following questions.
1. Why is Python slow 
2. How do you add more functionality to standard Python sdk
3. How do you sell propreity software written in Python and still keep it propreity.
4. How do you integrate your Python source code with your code written in other languages.

This course answers all these questions plus lot more

I am sure Meta Class may sound confusing and even scary to the best of us. Decorators look mysterious and intimidating. But before you start learning them you have to recall the first principal of Python language design and which is simplicity . Apart from that while designing Python lots of focus is given to readability and avoidance of complicated things. Python is simple (All chapters) readable, explicit and may be a bit complex but never complicated. Keeping these things in mind you have to approach learning Python because an over kill can confuse you needlessly. After keeping these things in mind only I created these lectures and have arranged subtopics that you come to know first things first, in correct order, clear and never take too long.

This course is to be taken after you are familiar with basics like data model, data types, loops and controls and you are a able to write small pieces of code. You have to be aware of and in practice of using Python Interactive Shell. You also have to know modules and how do we use them in various ways, be familiar with directives like import, import..from , import..from..as etc.

I have also used disassembler for demonstrating the Python byte code in action but it is not necessary to know them in depth and in advance.

Who is the target audience?
  • You must take this course if you intend to work on opens stack or are about to embark on learning open stack
  • You want to be able to write test automation code without repeating any percentage of code
  • You want to implement design patterns in more than one ways, other than you have been already doing
Students Who Viewed This Course Also Viewed
Curriculum For This Course
14 Lectures
02:09:12
+
Advanced Python
14 Lectures 02:09:12

  1. Python Data Model
  2. Objects 
  3. References
  4. "is" Operator
  5. "type" , "id" Operators
  6. Copy and Assignment
  7. Module "Copy"
  8. Equality and Comparison
  9. Value, Identity, Memory
  10. Types
Python Data Model
10:13

  1. Functions in Virtual Machine
  2. Function Environment
  3. Function Header
    1. Positional Arguments
    2. Variable arguments list
    3. Default arguments
    4. Key Word Only arguments
    5. Dictionary Arguments
    6. Variable key-value pairs list
  4. Function Call


Preview 09:21

Function Closures

  • What is a closure
  • How closures relate to functions
  • Internals of a Closure
  • State Retention using closures
  • global and non-local keywords
  • Understand "Functions", "Stack Frame", "Code" and "Byte Code" relationship and related VM structures
Preview 09:54

This section covers

  • Python Classes introduction
  • Difference and commonalities between Python Classes and C++ classes
  • Class statement and equivalent "type" statement
  • "type"object as metaclass of all python types
  • Meta Classes : __metaclass__ attribute
  • Write your own meta class
  • __new__ , __init__ , __call__
  • Classes as a callable
  • Instances are a callable too
  • Two step instance construction : Creation and Initialization
  • Singleton class using a Meta Class
  • Special Methods : "Static Methods" , "Class Methods" , "Instance Methods"
  • Class attributes and Methods
  • Instance Attributes
  • Inheritance
  • Multiple Inheritance : Diamond Structure


Preview 12:13

  • Attributes and Function Lookup : Python 2 and Python 3
  • Method Overriding : Built Methods and User defined Methods overriding
  • Class internals while inheriting
  • Class dictionary and Instance dictionary
Python Classes -- Part Two
15:10

  1. What is an Iterator
  2. Iterator Protocol
  3. Write your own Iterator
  4. Iterators and Iterable
  5. "in" Operator and Iterator


Iterators and List Comprehensions
09:14

  1. What is a Generator Function
  2. Generator Function and Generator Object
  3. Iterator and Generator relationship


Generators
08:32

  1. Generator Expression
  2. List Comprehension and Generator Expression
  3. Syntax and Operation
  4. Similarities and Differences
  5. Compare Generator and LC Byte Codes disassembly
  6. Performance Comparison : Memory, Code


Generator Expressions & List Comprehension and Comprison
09:15

This course is a single lecture and covers the following

  • What is a Decorator
  • Types of Decorator
  • The Decorator and the Decorated Callables
  • Function Decorators
  • Class Decorators
  • Method Decorators
  • Decorator with Parameters
  • Implementing function call logging using decorator
  • Implementing Singleton using Decorator
  • Implementing "Private and Public attributes" in a Python Class
Decorators -- Part One
19:16

Decorators -- Part Two
11:18

  1. try-except
  2. try-except-else
  3. try-except-else-finaly
  4. Your Own Exception Class
  5. Variable Scope
  6. Order of Except block evaluation
Exception Handling Introduction and Demo
04:01

Exception Handling -2
02:25

Exception Handling -- Polymorphic Exceptions
05:31
About the Instructor
Vivek Saxena
3.6 Average rating
13 Reviews
94 Students
1 Course

I am a software specialist into  consulting business since many years. I have been working on cloud computing , mobile e-commerce , embedded devices and cloud infrastructure. I have been hands on in JAVA C++ Python Android and Linux and Hypervisors and Software Defined Networks. 

My areas of interest are Virtual Machines, Cloud Computing, Processor Architecture and Mobile Devices. Soon there will be more courses on all of these topics.

In order to learn a technology or programming language, for instance Python, what you do is to refer the best books available. Simply reading online content does not suffice. Knowledge of such a nature is not complete and does not stay with you for long. My intention is to present you a summary of whatever is there to know from many books articles and my own field experience in the respective subject, in a to the point yet detailed manner thereby save your time and put you up to speed ready to contribute to the live projects asap.

Any questions or concerns regarding the course can be also be shared with me directly, find me on LinkedIn.