Chris

While working as a researcher in distributed systems, Dr. Christian Mayer found his love for teaching computer science students. To help students reach higher levels of Python success, he founded the programming education website Finxter.com. He's author of the popular programming book Python One-Liners (NoStarch 2020), coauthor of the Coffee Break Python series of self-published books, computer science enthusiast, freelancer, and owner of one of the top 10 largest Python blogs worldwide.
His passions are writing, reading, and coding. But his greatest passion is to serve aspiring coders through Finxter and help them to boost their skills. You can join his free email academy here.

Python __ror__() Magic Method

Syntax object.__ror__(self, other) The Python __ror__() method implements the reverse Bitwise OR | operation with reflected, swapped operands. So, when you call x | y, Python attempts to call x.__or__(y). If the method is not implemented, Python attempts to call __ror__ on the right operand and if this isn’t implemented either, it raises a TypeError. …

Python __ror__() Magic Method Read More »

Python __rmatmul__() Magic Method

Syntax object.__rmatmul__(self, other) The Python __rmatmul__() method implements the reverse matrix multiplication @ operation with reflected, swapped operands. So, when you call x @ y, Python attempts to call x.__matmul__(y). If the method is not implemented, Python attempts to call __rmatmul__ on the right operand and if this isn’t implemented either, it raises a TypeError. …

Python __rmatmul__() Magic Method Read More »

Python __rand__() Magic Method

Syntax object.__rand__(self, other) The Python __rand__() method implements the reverse Bitwise AND * operation with reflected, swapped operands. So, when you call x * y, Python attempts to call x.__and__(y). If the method is not implemented, Python attempts to call __rand__ on the right operand and if this isn’t implemented either, it raises a TypeError. …

Python __rand__() Magic Method Read More »

Python __rmul__() Magic Method

Syntax object.__rmul__(self, other) The Python __rmul__() method implements the reverse multiplication operation that is multiplication with reflected, swapped operands. So, when you call x * y, Python attempts to call x.__mul__(y). Only if the method is not implemented on the left operand, Python attempts to call __rmul__ on the right operand and if this isn’t …

Python __rmul__() Magic Method Read More »

Python __rsub__() Magic Method

Syntax object.__rsub__(self, other) The Python __rsub__() method implements the reverse subtraction operation that is subtraction with reflected, swapped operands. So, when you call x – y, Python attempts to call x.__sub__(y). Only if the method is not implemented on the left operand, Python attempts to call __rsub__ on the right operand and if this isn’t …

Python __rsub__() Magic Method Read More »

Python __radd__() Magic Method

Syntax object.__radd__(self, other) The Python __radd__() method implements the reverse addition operation that is addition with reflected, swapped operands. So, when you call x + y, Python attempts to call x.__add__(y). Only if the method is not implemented on the left operrand, Python attempts to call __radd__ on the right operand and if this isn’t …

Python __radd__() Magic Method Read More »

Python __rxor__() Magic Method

Syntax object.__rxor__(self, other) The Python __rxor__() method implements the reverse Bitwise XOR ^ operation with reflected, swapped operands. So, when you call x ^ y, Python attempts to call x.__xor__(y). If the method is not implemented, Python attempts to call __rxor__ on the right operand and if this isn’t implemented either, it raises a TypeError. …

Python __rxor__() Magic Method Read More »

Python __xor__() Magic Method

Syntax object.__xor__(self, other) The Python __xor__() method implements the built-in Bitwise XOR ^ operation. So, when you cal x ^ y, Python attempts to call x.__xor__(y). If the method is not implemented, Python first attempts to call __rxor__ on the right operand and if this isn’t implemented either, it raises a TypeError. We call this …

Python __xor__() Magic Method Read More »

Python __or__() Magic Method

Syntax object.__or__(self, other) The Python __or__() method implements the built-in Bitwise OR | operation. So, when you cal x | y, Python attempts to call x.__or__(y). If the method is not implemented, Python first attempts to call __ror__ on the right operand and if this isn’t implemented either, it raises a TypeError. We call this …

Python __or__() Magic Method Read More »

Python __and__() Magic Method

Syntax object.__and__(self, other) The Python __and__() method implements the built-in Bitwise AND & operation. So, when you cal x & y, Python attempts to call x.__and__(y). If the method is not implemented, Python first attempts to call __rand__ on the right operand and if this isn’t implemented either, it raises a TypeError. We call this …

Python __and__() Magic Method Read More »

Earn Passive and Active Income ($200/h) as a Chainlink Validator and Freelance Consultant

Just stumbled upon this opportunity and freelancing niche that could be highly profitable in the Blockchain industry, fun, and sustainable for decades to come. Do you want to grab this opportunity? References from the video: Official website Chainlink: https://chain.link/ Run a Chainlink node: https://docs.chain.link/docs/running-a-chainlink-node/ The gap — nobody on Upwork offers their focused Chainlink services: …

Earn Passive and Active Income ($200/h) as a Chainlink Validator and Freelance Consultant Read More »