All Questions
Tagged with inheritance python-2.x
4 questions
3
votes
1
answer
111
views
Emulating super() in Python 3.x using Python 2.7
Depending on the name of the first argument, self.__sup or cls.__sup behaves like super() in ...
1
vote
2
answers
312
views
Class inheritance testing
I'm just messing around with class inheritance. I originally had a separate goal in mind but I ended up here, and my new goal was to have a parent that was completely ignorant of it's self, i.e. no ...
8
votes
1
answer
1k
views
Extending the functionality of lxml.etree
I wrote a class to slightly customize the behavior of lxml.etree.ElementTree and I use it quite extensively. It works great, but there are a few methods that I'm ...
7
votes
1
answer
233
views
Out of order class resequencer
I got bored recently and wrote a tool to re-order out of order classes in Python files. This can occur with some auto-generation code tools for databases and the like; these files can sometimes be ...