Skip to content Skip to sidebar Skip to footer
Showing posts with the label Operators

What Are Built-in Python 3 Types That Can Be Compared To Each Other?

In Python 2, it was possible to compare objects of different types such as int to str by having an … Read more What Are Built-in Python 3 Types That Can Be Compared To Each Other?

Simple Assignment Operator Become Complicated In Python

I have declared four variables [a=1,b=2,c=3,d=0] in python and swapping them in one line code using… Read more Simple Assignment Operator Become Complicated In Python

The ,= Operator

While looking at some Python code I noticed usage of what looked like ,= operator: a ,= b After ex… Read more The ,= Operator

Operator Overloading In Python: Handling Different Types And Order Of Parameters

I have a simple class that helps with mathematical operations on vectors (i.e. lists of numbers). M… Read more Operator Overloading In Python: Handling Different Types And Order Of Parameters

Python Commutative Operator Override

Hi I was wondering if there is a way to do a symmetric operator override in Python. For example, le… Read more Python Commutative Operator Override