Intermediate Python
Muhammad Yasoob Ullah Khalid
Computers & Technology
Intermediate Python
Free
Description
Contents
Reviews

Python is an amazing language with a strong and friendly community of pro- grammers. However, there is a lack of documentation on what to learn after getting the basics of Python down your throat. Through this book I aim to solve this problem. I would give you bits of information about some interesting topics which you can further explore.



The topics which are discussed in this book open up your mind towards some nice corners of Python language. This book is an outcome of my desire to have something like this when I was beginning to learn Python.


If you are a beginner, intermediate or even an advanced programmer there is something for you in this book.

Read online at Python Tips or get the donation version at Gumroad.

Language
English
ISBN
Unknown
Intermediate Python
*args and **kwargs
Usage of *args
*args and **kwargs
Usage of **kwargs
Using *args and **kwargs to call a function
When to use them?
Debugging
Generators
Iterable
Iterator
Iteration
Generators
Generators
Map & Filter
Map
Filter
Map & Filter
set Data Structure
Ternary Operators
Decorators
Everything in python is an object:
Defining functions within functions:
Returning functions from within functions:
Giving a function as an argument to another function:
Writing your first decorator:
Writing your first decorator:
Use-cases:
Authorization
Logging
Decorators
Global & Return
Global & Return
Multiple return values
Mutation
__slots__ Magic
Virtual Environment
Collections
defaultdict
counter
deque
namedtuple
enum.Enum (Python 3.4+)
Collections
Enumerate
Object introspection
dir
type and id
inspect module
Object introspection
Comprehensions
list comprehensions
dict comprehensions
set comprehensions
Comprehensions
Exceptions
Handling multiple exceptions:
Handling multiple exceptions:
finally clause
try/else clause
Exceptions
Lambdas
One-Liners
For - Else
else clause:
For - Else
Open function
Targeting Python 2+3
Coroutines
Function caching
Python 3.2+
Python 2+
Function caching
Context managers
Implementing Context Manager as a Class:
Handling exceptions
Implementing a Context Manager as a Generator
Context managers
The book hasn't received reviews yet.