RSSAmplifier

Blog

Intermediate Pythonista

intermediatepythonista.comRSS feed ↗10 posts

Latest posts

How to Land Your First Python Developer Job: Skills, Projects, and Where to Look

Getting your first Python developer role can feel like a mountain climb — many junior developers wonder: “Do I have enough experience? What should I build? Where even are these jobs?” The good news: with the right approach, you can break in. This guide walks you through the essential skills, project ideas, and job-search strategies [ ]

The Function II: Python Function Decorators

Function decorators enable the addition of new functionality to a function without altering the function’s original functionality. Prior to reading this post, it is important that you have read and understood the first installment on python functions. The major take away from that tutorial is that python functions are first class objects; a result of this is [ ]

Python Comprehensions

Python comprehensions are syntactic constructs that enable sequences to be built from other sequences in a clear and concise manner. Python comprehensions are of three types namely: list comprehensions, set comprehensions and dict comprehensions. List comprehension constructs have been part of python since python 2.0 while set and dict comprehensions have been part of python [ ]

Classes and Objects I

In python, everything is an object. Classes provide the mechanism for creating new kinds of objects. In this tutorial, we ignore the basics of classes and object oriented programming and focus on topics that provide a better understanding of object oriented programming in python. It is assumed that we are dealing with new style classes. [ ]

Classes and Objects III: Metaclasses, Abstract Base Classes and Class Decorators

Metaclasses Everything in python is an object including classes; if a class is an object then such class must have another class from which it is created. Consider, an instance, f, of a user defined class Foo; we can find out the type/class of the instance, f by using the inbuilt method, type and in this case it seen that the [ ]

Intermediate Pythonista table of contents

Table of Contents Python comprehensions Introduction to Python Generators The Function The Function II: Python Function Decorators Classes and Objects Classes and Objects II: Descriptors Classes and Objects III: Types and Metaclasses Intermezzo I: A little Python History What is this all about? I have been working with python for close to five years and [ ]

Classes and Objects II: Descriptors

Descriptors are an esoteric but integral part of the python programming language. They are used widely in the core of the python language and a good grasp of descriptors provides a python programmer with an extra trick in his or her toolbox. To set the stage for the discussion of descriptors I describe some scenarios [ ]

Classes and Objects I

In python, everything is an object. Classes provide the mechanism for creating new kinds of objects. In this tutorial, we ignore the basics of classes and object oriented programming and focus on topics that provide a better understanding of object oriented programming in python. It is assumed that we are dealing with new style classes. [ ]

Introduction to Python Generators

Generators are a very fascinating concept in python; generators have a wide range of applications from simple lazy evaluation to mind-blowing advanced concurrent execution of tasks (see David Beazley). Before we dive into the fascinating world of python generators, we take a little detour to explain python iterators, a concept that I feel is integral to grasping [ ]

The Function

Python functions are either named or anonymous set of statements or expressions. In python, functions are first class objects. This means that there is no restriction on the usage of functions. Python functions can be used just like any other python value such as strings and numbers. Python functions have attributes that can be introspected on using the [ ]