Skip to content Skip to sidebar Skip to footer
Showing posts with the label Built In

Subclassing Int And Overriding The __init__ Method - Python

Possible Duplicate: inheritance from str or int Hi folks, I'm trying to subclass the int clas… Read more Subclassing Int And Overriding The __init__ Method - Python

Built-in Binary Search Tree In Python?

Are there any self-balancing binary search tree (RED-BLACK, AVL or others) built-in types in Python… Read more Built-in Binary Search Tree In Python?

User Defined __mul__ Method Is Not Commutative

I wrote a class to represent vectors in Python (as an exercise) and I'm having problems with ex… Read more User Defined __mul__ Method Is Not Commutative