Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1001223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:38:08+00:00 2026-05-16T07:38:08+00:00

Hello Stack Overflow contributers, I’m a novice programmer learning Python right now, and I

  • 0

Hello Stack Overflow contributers,

I’m a novice programmer learning Python right now, and I came upon this site which helps explain object-oriented paradigms. I know that metaclasses are classes of classes (like how meta-directories are directories of directories, etc. etc.), but I’m having trouble with something: What is the actual difference between a metaclass and a parameterized class, according to the website’s definition?

If you can, please include code examples in Python that illustrate the differences between the two. Thank you for your help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T07:38:09+00:00Added an answer on May 16, 2026 at 7:38 am

    Python doesn’t have (or need) “parameterized classes”, so it’s hard to provide examples of them in Python;-). A metaclass is simply “the class of a class”: normally type (as long, in Py2, as you remember to make the class new-style by inheriting from object, or some other built-in type or other new-style class — old-style classes are a legacy artefact in Py2, fortunately disappeared in Py3, and you should ideally just forget about them). You can make a custom metaclass (usually subclassing type) for several advanced purposes, but it’s unlikely that you’ll ever need to (esp. considering that, since python 2.6, much of what used to require a custom metaclass can now be done more simply with a class decorator).

    Given any class C, type(C) is its metaclass.

    A parameterized class is a completely different concept. Closest you can come to it in Python is probably a factory function that makes and returns a class based on its arguments:

    def silly(n):
        class Silly(object):
            buh = ' '.join(n * ['hello'])
        return Silly
    
    Silly1 = silly(1)
    Silly2 = silly(2)
    a = Silly1()
    print(a.buh)
    b = Silly2()
    print(b.buh)
    

    will print

    hello
    hello hello
    

    Again, it’s definitely not something you’ll need often — making several classes that differ just by one or a few arguments. Anyway, as you can see, it has absolutely nothing to do with the classes’ class (AKA metaclass), which is always type in this example (and in almost every more realistic example I could think of — I just chose to give a simple example, where the point of doing this is hard to discern, rather than a realistic and therefore necessarily very complex one ;-).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 497k
  • Answers 497k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Are you thinking of these backslashes here? If so, you… May 16, 2026 at 11:57 am
  • Editorial Team
    Editorial Team added an answer Have you tried a switch statement? = Switch( Fields!StateProvinceId.value=1,"Ontario", Fields!StateProvinceId.value=2,"Quebec",… May 16, 2026 at 11:56 am
  • Editorial Team
    Editorial Team added an answer You might try body { overflow:hidden; } in your CSS… May 16, 2026 at 11:56 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

Hello stack overflow I need help with this problem. Ok, I have a flat
First off - hello, this is my first Stack Overflow question so I'll try
Hello Stack Overflow Experts, i have need of your expertice: I am trying to
According to another Stack Overflow post the drain message is an Apple-only call: NSAutoreleasePool
Hello I know all about http://www.php.net/manual/en/function.http-build-query.php to do this however I have a little
this seems very simple and im puzzled as to why its not working...I want
Hello there fellow Stackers! I wonder if anybody could tell me what the following
I`ve created simple hello world-like plugin which draws red box. Аfter embedding into xulrunner
NSString *myString = @Hello; NSString *myString = [NSString stringWithString:@Hello]; I understand that using method
Hello! There is a controller and an action which receives one param through GET,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.