Skip to content Skip to sidebar Skip to footer
Showing posts with the label Operator Overloading

Python - Add Days To An Existing Date

Obviously this is homework so I can't import but I also don't expect to be spoon fed the an… Read more Python - Add Days To An Existing Date

Cython: Counter-tutorial Behavior

Tutorial says .pyx and .pxd files should not have the same name unless .pyx is the realization of t… Read more Cython: Counter-tutorial Behavior

How To Overload `float()` For A Custom Class In Python?

Summary How can I overload the built-in float for my class so when I call float() on an instance of… Read more How To Overload `float()` For A Custom Class In Python?

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

Django : Case Insensitive Matching Of Username From Auth User?

Django by-default implements username as case sensitive, now for authentication I have written my o… Read more Django : Case Insensitive Matching Of Username From Auth User?