Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[python] multiple inheritance is not allowed #2650

Open
ajira86 opened this issue Aug 12, 2024 · 2 comments
Open

[python] multiple inheritance is not allowed #2650

ajira86 opened this issue Aug 12, 2024 · 2 comments

Comments

@ajira86
Copy link

ajira86 commented Aug 12, 2024

Hello !

I tried to declare a multiple inheritance for one of my class but receive a syntax error because i used a , in my class inheritance declaration.

# script: python

class Parent1:
 pass
 
class Parent2:
 pass
 
class Child(Parent1,Parent2):
 pass

def TIC():
 cls(5)
 print("HELLO WORLD!",84,84)

As I can see micropython should support multiple inheritance. Is there an issue with it ?

Thanks in advance this project is awesome 😊

@ajira86
Copy link
Author

ajira86 commented Aug 12, 2024

But if you are working with pocketpy, this is not implemented yet : https://pocketpy.dev/features/differences/#unimplemented-features (point 6)

@Gaiko-sw
Copy link
Contributor

It is indeed pocketpy. I think adding this would require switching python implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants