Search found 8 matches
- Sat May 23, 2020 12:41 pm
- Forum: ESP8266 boards
- Topic: espnow esp8266 1.9.4
- Replies: 7
- Views: 3788
Re: espnow esp8266 1.9.4
I did some corrections in code to use ESP-NOW on MicroPython 1.12 with ESP-IDF 4.0, but plain to change logic to make it easy to use
- Sat Mar 09, 2019 5:39 am
- Forum: General Discussion and Questions
- Topic: eval() method - error inside function usage
- Replies: 3
- Views: 1042
Re: eval() method - error inside function usage
In MicriPython differences from CPython I found: Code running in eval() function doesn’t have access to local variables Cause: MicroPython doesn’t maintain symbolic local environment, it is optimized to an array of slots. Thus, local variables can’t be accessed by a name. Effectively, eval(expr) in ...
- Fri Mar 08, 2019 11:21 am
- Forum: General Discussion and Questions
- Topic: Not stable __getattr__ __setattr__ in micropython/tests/basics/class_delattr_setattr.py
- Replies: 4
- Views: 1144
- Fri Mar 08, 2019 4:27 am
- Forum: General Discussion and Questions
- Topic: eval() method - error inside function usage
- Replies: 3
- Views: 1042
Re: eval() method - error inside function usage
Yes, I know this solution, that why I lost several days testing my code. I want to separate modules and not to use Global data in my project Smart Manor . One of solution I done, using code like CASE operator in C++ def case( dev, **kwargs ): return { ‘RELAY’ : dev_Relay, ‘DS18X20’ : dev_temps, ‘DHT...
- Thu Mar 07, 2019 2:50 pm
- Forum: General Discussion and Questions
- Topic: eval() method - error inside function usage
- Replies: 3
- Views: 1042
eval() method - error inside function usage
I try to use eval() method in my practice, but in simple case code work, 1 def foo(**kwargs): 2 print('From foo: ',kwargs) 3 return True 4 5 dev_no = [{'name':'dev1','exec':'foo'}, 6 {'name':'dev2','exec':'foo'}] 7 print('-----------------------') 8 print(eval(dev_no[0]['exec']+'(**dev_no[0])')) 9 1...
- Thu Feb 28, 2019 11:04 am
- Forum: Programs, Libraries and Tools
- Topic: asyncio: sinchronization in async programming
- Replies: 0
- Views: 617
asyncio: sinchronization in async programming
Here is short research possibilities of async programming mostly for understanding some key definitions and solusions In sequential programming, I constantly encounter an obvious desire not to stop the program at the moment when the goal of individual tasks (processes) has periodic actions - for exa...
- Wed Feb 27, 2019 8:21 am
- Forum: General Discussion and Questions
- Topic: Not stable __getattr__ __setattr__ in micropython/tests/basics/class_delattr_setattr.py
- Replies: 4
- Views: 1144
Re: It looks like a bug to me
I'll be glad if this issue help to do source betterpythoncoder wrote: ↑Wed Feb 27, 2019 6:46 amAs far as I can see you're right. I've raised this issue.
- Tue Feb 26, 2019 5:16 am
- Forum: General Discussion and Questions
- Topic: Not stable __getattr__ __setattr__ in micropython/tests/basics/class_delattr_setattr.py
- Replies: 4
- Views: 1144
Not stable __getattr__ __setattr__ in micropython/tests/basics/class_delattr_setattr.py
Trying to understand __getattr__ and __setattr__ I use test modules from Micropython, but by fact it's work as __dict__ and not as written in standart, and when value go to __dict__, __getattr__ and __setattr__ not worked at all. I use Micropython 1.10 In comments - reaction of print() May be I do s...