# Classes don't work (python)

**URL:** https://forum.makecode.com/t/classes-dont-work-python/6988
**Category:** micro:bit
**Created:** [March 25, 2021, 3:18pm UTC](https://forum.makecode.com/t/classes-dont-work-python/6988 "2021-03-25T15:18:06Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dog](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@dog](https://forum.makecode.com/u/dog)
#### Post date: [March 25, 2021, 3:18pm UTC](https://forum.makecode.com/t/classes-dont-work-python/6988/1 "2021-03-25T15:18:06Z")

</div>

The way classes work is very flawed.  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/4/42bf0e9446318b149b29393e2997782669481ca2.png)  
When trying to define a constructor for a class I get this error, probably because of the underscores in the function name.  
Also when I don’t do that and try to construct a class without a constructor I get an error “cannot find function x” when the class is defined.

---

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [March 25, 2021, 4:12pm UTC](https://forum.makecode.com/t/classes-dont-work-python/6988/2 "2021-03-25T16:12:24Z")

</div>

This is being tracked:

> <https://github.com/microsoft/pxt-arcade/issues/2286>
>
> Describe the bug
> Defining a class in Python on MakeCode Arcade throws a cryptic syntax error that seems to come from when...

---

<div class="post-metadata">

### Author: ![dog](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@dog](https://forum.makecode.com/u/dog)
#### Post date: [March 29, 2021, 2:38pm UTC](https://forum.makecode.com/t/classes-dont-work-python/6988/3 "2021-03-29T14:38:20Z")

</div>

I see, shame they haven’t gotten around to it after all this time.
