Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

oop

What are the differences between type() and isinstance()?

August 22, 2022 by Magenaut

What are the differences between these two code snippets?

Categories Python, Q&A Tags inheritance, oop, python, types Leave a comment

What are metaclasses in Python?

August 22, 2022 by Magenaut

What are metaclasses? What are they used for?

Categories Python, Q&A Tags metaclass, oop, python, python-class, python-datamodel Leave a comment

Static class variables and methods in Python

August 22, 2022 by Magenaut

How do I create static class variables or methods in Python?

Categories Python, Q&A Tags class, class-variables, oop, python, static Leave a comment

Adding a method to an existing object instance

August 22, 2022 by Magenaut

I’ve read that it is possible to add a method to an existing object (i.e., not in the class definition) in Python.

Categories Python, Q&A Tags methods, monkeypatching, oop, python Leave a comment

Why do Python classes inherit object?

August 22, 2022 by Magenaut

Why does the following class declaration inherit from object?

Categories Python, Q&A Tags class, inheritance, object, oop, python Leave a comment

What is the difference between old style and new style classes in Python?

August 22, 2022 by Magenaut

What is the difference between old style and new style classes in Python? When should I use one or the other?

Categories Python, Q&A Tags class, new-style-class, oop, python, types Leave a comment

Meaning of @classmethod and @staticmethod for beginner?

August 22, 2022 by Magenaut

when should I use them, why should I use them, and how should I use them?

Categories Python, Q&A Tags class-method, oop, python, static-methods Leave a comment

Difference between @staticmethod and @classmethod

August 22, 2022 by Magenaut

What is the difference between a function decorated with @staticmethod and one decorated with @classmethod?

Categories Python, Q&A Tags methods, oop, python, python-decorators Leave a comment

What is a mixin and why is it useful?

August 22, 2022 by Magenaut

In Programming Python, Mark Lutz mentions the term mixin. I am from a C/C++/C# background and I have not heard the term before. What is a mixin?

Categories Python, Q&A Tags mixins, multiple-inheritance, oop, python Leave a comment

What does ‘super’ do in Python? – difference between super().__init__() and explicit superclass __init__()

August 22, 2022 by Magenaut

What’s the difference between:

Categories Python, Q&A Tags inheritance, multiple-inheritance, oop, python, super Leave a comment
Older posts
Newer posts
← Previous Page1 Page2 Page3 … Page8 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress