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

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

Itertools.ifilter Vs. Filter Vs. List Comprehensions

I am trying to become more familiar with the itertools module and have found a function called ifil… Read more Itertools.ifilter Vs. Filter Vs. List Comprehensions

How Can I See Python's __builtins__ Source Code?

Can I get python to print the source code for __builtins__ directly? OR (more preferably): What is… Read more How Can I See Python's __builtins__ Source Code?

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

Override __repr__ Or Pprint For Int

Is there any way of changing the way a int-type object is converted to string when calling repr or … Read more Override __repr__ Or Pprint For Int

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?

Two Conflicting Meanings Of Builtins In Python 3 (python 3.1, Python 3k, Python3000)

I just posted below query to comp.lang.python, but i feel this kind of question has some kind of ri… Read more Two Conflicting Meanings Of Builtins In Python 3 (python 3.1, Python 3k, Python3000)