Damien George

Results 1057 comments of Damien George

> Can the error message be improved? Making better error messages is sometimes difficult and increases code size as well. For the case here, it's probably cheaper (in code size)...

You are correct that it does not work! In fact, the special method `__del__` is not implemented for user-defined classes.

> I am wondering why `MicroPython` have so many inconsistencies with standard `CPython` ? Considering the size of the language (excluding the libraries) I'd say MicroPython is highly consistent with...

> Seems like it is a good answer that could be add to syntax differences page for clarification Agreed. The documentation of those differences could do with some updating and...

IMO `micropython-hmac` should be changed so that it doesn't need to make a copy of the underlying hash object.

What hardware are you using? I'm guessing that you have a board that does not have a USB connector on GPIO19/20, and instead uses a UART REPL. > For whatever...

Yes, this is simply not implemented, mainly because the same thing can be achieved in pure Python. As a workaround the following can be used: ```python def iter2(c, s): while...

> it is unfortunate that this is not explicitly called out in the documentation as a difference from python's core syntax. It's not really a syntax difference, rather the fact...

This would be a good candidate for #5025.

Looking at this again after many years, I see that the difference in implementation between 1-arg `next` and 2-arg `next` is very small. I made a comment long ago: >...