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

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)

Why Python Allows To Overwrite Builtin Constants?

Although True, False are builtin constants, the following is allowed in Python. >>> True =… Read more Why Python Allows To Overwrite Builtin Constants?

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

Override List's Builtins Dynamically In Class Scope

Purely curiosity question: class Li(list): pass m, n= Li([1]), Li([2]) def r(*args, **kwargs): rais… Read more Override List's Builtins Dynamically In Class Scope

Python: Is There A Builtin That Works Similar But Opposite To .index()?

Just a forewarning: I just recently started programming and Python is my first language and only la… Read more Python: Is There A Builtin That Works Similar But Opposite To .index()?