Search found 21 matches
- Tue Jul 07, 2020 6:10 pm
- Forum: Programs, Libraries and Tools
- Topic: TypeError: 'bytearray' object doesn't support item deletion
- Replies: 9
- Views: 6703
Re: TypeError: 'bytearray' object doesn't support item deletion
It is being used to read streaming tcp data from the server. At the low level data reading, it is unstructured.
- Mon Jul 06, 2020 10:20 pm
- Forum: Programs, Libraries and Tools
- Topic: TypeError: 'bytearray' object doesn't support item deletion
- Replies: 9
- Views: 6703
Re: TypeError: 'bytearray' object doesn't support item deletion
That would work, but I am trying to avoid the object copy.
This is a data buffer which can contain huge data/bytes. The ideal is to remove in-line.
This is a data buffer which can contain huge data/bytes. The ideal is to remove in-line.
- Mon Jul 06, 2020 7:25 pm
- Forum: Programs, Libraries and Tools
- Topic: TypeError: 'bytearray' object doesn't support item deletion
- Replies: 9
- Views: 6703
TypeError: 'bytearray' object doesn't support item deletion
It appears the del on bytearray is not supported.
I am getting TypeError: 'bytearray' object doesn't support item deletion
Any idea for workaround?
-aha
I am getting TypeError: 'bytearray' object doesn't support item deletion
Any idea for workaround?
-aha
Code: Select all
buffer = bytearray()
...
del buffer[0:i + 1]
- Sun Jul 05, 2020 2:53 am
- Forum: Programs, Libraries and Tools
- Topic: Flashing firmware: accessing USB port from WSL environment
- Replies: 0
- Views: 1820
Flashing firmware: accessing USB port from WSL environment
I have configured my WSL/Linux environment for building upython. I can build the firmware successfully. Great job to upython dev team for supporting WSL env! Currently I still need to go back to windows env to flash the firmware. I am having issues with the /dev/ttyS3 which is supposed to be mapped ...
- Sat Jul 04, 2020 9:33 pm
- Forum: ESP32 boards
- Topic: Looking for LoRaWan board
- Replies: 2
- Views: 1682
- Sat Jul 04, 2020 6:31 pm
- Forum: ESP32 boards
- Topic: Looking for LoRaWan board
- Replies: 2
- Views: 1682
Looking for LoRaWan board
Hello,
I am looking for esp32-based board with LoRaWan capability which runs upython.
If you know one, please share it. I would like to hear the experience.
Thanks
a-ha
I am looking for esp32-based board with LoRaWan capability which runs upython.
If you know one, please share it. I would like to hear the experience.
Thanks
a-ha
- Sat Jul 04, 2020 6:28 pm
- Forum: ESP32 boards
- Topic: TTGO T-WATCH-2020
- Replies: 87
- Views: 110496
Re: TTGO T-WATCH-2020
True. But I would treat it as affordable compact dev board with plenty of extra goodies:
- ample flash/sram (16MB/8MB)
- accelerator
- small touch screen screen
- ample flash/sram (16MB/8MB)
- accelerator
- small touch screen screen
- Sat Jul 04, 2020 7:48 am
- Forum: Programs, Libraries and Tools
- Topic: Getting error when using 'with' on socket
- Replies: 2
- Views: 2890
Re: Getting error when using 'with' on socket
Thanks for raising the issue! I appreciated this.
- Sat Jul 04, 2020 7:15 am
- Forum: ESP32 boards
- Topic: TTGO T-WATCH-2020
- Replies: 87
- Views: 110496
TTGO T-WATCH-2020
Has anyone experienced using this esp32 watch with micropython? I suppose this is indeed supported with the generic esp32 firmware. Could someone confirm please? Thanks a-ha Details: https://www.tindie.com/products/ttgo/lilygor-ttgo-t-watch-2020/ https://hackaday.com/2020/05/22/is-that-an-esp32-on-y...
- Sat Jul 04, 2020 12:11 am
- Forum: Programs, Libraries and Tools
- Topic: Getting error when using 'with' on socket
- Replies: 2
- Views: 2890
Getting error when using 'with' on socket
Hello,
I am getting error when using the following construct (which runs fine on pc python):
socket.socket(with socket.AF_INET, socket.SOCK_STREAM) as s:
The error says:
AttributeError: 'socket' object has no attribute '__exit__'
/a-ha
I am getting error when using the following construct (which runs fine on pc python):
socket.socket(with socket.AF_INET, socket.SOCK_STREAM) as s:
The error says:
AttributeError: 'socket' object has no attribute '__exit__'
/a-ha