0

I'm trying to read and understand a program source code written in Python and I got confuse with one thing that appeared in some places in the source code:

class Class1(ClassA): 

This code snippet is repeated in the source code of a .py file, in a way that only "Class1" vary ("class Class1(ClassA):", "class Class2(ClassA):", "class Class3(ClassA):", etc.).

Sorry, but I can't share the source code with you guys, it's part of my friends term paper.

I appreciate any explanation, thanks!

1
  • If you want to know how a given statement or expression works, the docs have a full explanation. It's not a parameter list, it's the base classes for the class. Commented Jun 29, 2013 at 20:34

1 Answer 1

2

This syntax means that Class1 inherits from ClassA.

For further information, see the tutorial.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.