Search found 4 matches

by 316meng
Mon May 09, 2016 4:02 am
Forum: Other Boards
Topic: Burning program into pyboard.
Replies: 4
Views: 4130

Burning program into pyboard.

I wrote some code with python ,and now I want to know is it possible burning my code into pyboard??

PS : My target is people can use my lib but they can't see my code. like I can import pyb lib and use it ,but I can't see the pyb'source.
by 316meng
Tue May 03, 2016 1:20 am
Forum: General Discussion and Questions
Topic: Multiple inheritance in python3 with micropython
Replies: 2
Views: 3138

Re: Multiple inheritance in python3 with micropython

Is it a bug that micropython can't use super()? class A: def __init__(self): print("A.__init__") class B(A): def __init__(self): print("B.__init__") super().__init__() class C(A): def __init__(self): print("C.__init__") super().__init__() class D(B,C): def __init__(self): print("D.__init__") super()...
by 316meng
Mon May 02, 2016 3:51 pm
Forum: General Discussion and Questions
Topic: Multiple inheritance in python3 with micropython
Replies: 2
Views: 3138

Multiple inheritance in python3 with micropython

[code]class A(object): def __init__(self, a=None, b=None, *args, **kwargs): super().__init__(*args, **kwargs) print('Init {} with arguments {}'.format(self.__class__.__name__, (a, b))) print ('A') class B(object): def __init__(self, q=None, *args, **kwargs): super().__init__(*args, **kwargs) print('...
by 316meng
Mon Apr 18, 2016 2:33 pm
Forum: General Discussion and Questions
Topic: pyboard’s filesystem problem
Replies: 2
Views: 2405

pyboard’s filesystem problem

My board’s filesystem gets corrupted ,the file boot.py become 0kb and can't be edited.
My board don't have a USR switch ,how do you guys sove this problem.

need help Thanks!!