python advance Syllabus
python advance Syllabus
֍ OOP’s Part
# What is Class?
# How to define a Class?
# What is Object?
# What is Reference Variable?
# Self Variable
# Constructor Concept
# Differences between Methods and Constructors
# Types of Variables
➤ Instance Variables (Object Level Variables)
➤ Static Variables (Class Level Variables)
➤ Local variables (Method Level Variables)
# Static Variables
# Instance Variable vs Static Variable
# Various Places to declare Static Variables
# How to access Static Variables
# Where we can modify the Value of Static Variable
# How to Delete Static Variables of a Class
# Local Variables
# Types of Methods
➤ Instance Methods
➤ Class Methods
➤ Static Methods
# Setter and Getter Methods
# Passing Members of One Class to Another Class
# Inner Classes
# Garbage Collection
# How to enable and disable Garbage Collector in our Program
# Destructors
# How to find the Number of References of an Object
֍ OOP’s Part – 2
# Inheritance
➤ By Composition (Has-A Relationship)
➤ By Inheritance (IS-A Relationship
# Types of Inheritance
➤ Single Inheritance
➤ Multi Level Inheritance
➤ Hierarchical Inheritance
➤ Multiple Inheritance
➤ Hybrid Inheritance
➤ Cyclic Inheritance
֍ OOP’s Part – 4
# Abstract Method
# Abstract class
# Interface
# Concreate class vs Abstract Class vs Inteface
# Public,Private and Protected Members
# str () Method
# Difference between str() and repr() functions
# Small Banking Application
֍ Exception Handling
# Syntax Errors
# Runtime Errors
# What is Exception
# Default Exception Handing in Python
# Python's Exception Hierarchy
# Customized Exception Handling by using try-except
# Control Flow in try-except
# How to Print Exception Information
# try with Multiple except Blocks
# Single except Block that can handle Multiple Exceptions
# Default except Block
# finally Block
# Control Flow in try-except-finally
# Nested try-except-finally Blocks
# Control Flow in nested try-except-finally
# else Block with try-except-finally
# Various possible Combinations of try-except-else-finally
# Types of Exceptions
➤ Predefined Exceptions
➤ User Definded Exceptions
# How to Define and Raise Customized Exceptions
֍ File Handling
# Types of Files
➤ Text Files
➤ Binary Files
# Opening a File
# Closing a File
# Various Properties of File Object
# Writing Data to Text Files
➤ write(str)
➤ writelines(list of lines)
# Reading Character Data from Text Files
➤ read() To Read Total Data from the File
➤ read(n) To Read 'n' Characters from the File
➤ readline() To Read only one Line
➤ readlines() To Read all Lines into a List
# The with Statement
# The seek() and tell() Methods
# How to check a particular File exists OR not
# Handling Binary Data
# Handling CSV Files
# Writing Data to CSV File
# Reading Data from
CSV File # Zipping and
Unzipping Files # To
Create Zip File
# Working with Directories
# Running Other Programs from Python Program
# How to get Information about a File
# Pickling and Unpickling of Object
֍ Multi Threading
# Multi Tasking
➤ Process based Multi Tasking
➤ Thread based Multi Tasking
# The ways of Creating Thread in
Python
➤ Creating a Thread without using any class
➤ Creating a Thread by extending Thread class
➤ Creating a Thread without extending Thread class
# Setting and Getting Name of
a Thread # Thread
Identification Number (ident) #
enumerate() Function
# isAlive() Method
# join() Method
# Daemon Threads
# Default Nature
# Synchronization
➤ Lock
➤ RLock
➤ Semaphore
# Synchronization By using Lock Concept
# Problem with Simple Lock
# Demo Program for Synchronization by using RLock
# Difference between Lock
and RLock #
Synchronization by using
Semaphore # Bounded
Semaphore
# Difference between Lock and Semaphore
# Inter Thread Communication
# Inter Thread Communication by using Event Objects
# Methods of Event Class
➤ set()
➤ clear()
➤ isSet()
➤ wait()|wait(seconds)
# Inter Thread Communication by using Condition Object
# Methods of Condition
➤ acquire()
➤ release()
➤ wait()|wait(time)
➤ notify()
➤ notifyAll()
# Case Study
# Inter Tread Communication by using Queue
# Important Methods of Queue
➤ put()
➤ get()
# Types of Queues
➤ FIFO Queue
➤ LIFO Queue
➤ Priority Queue
# Good Programming Practices with usage of Locks
֍ Decorator Functions
Decorator Chaining
֍ Generator Functions
# Advantages of Generator Functions
# Generators vs Normal Collections wrt Performance
# Generators vs Normal Collections wrt Memory Utilization
֍ Assertions
# Debugging Python Program by using assert Keyword
# Types of assert Statements
➤ Simple Version
> Augmented Version
# Exception Handling vs Assertions
9096055557 PYSPIDERS
DECCAN