kivy / kivy/oscpy

Clarify blob handling.

Open
#56 12 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
114
Forks
26
PR merge metrics
No merged PRs in 30d

Description

In Python, the only semantic difference between `bytes` and `bytearray` data structures, is that the former are immutable and the latter are mutable. It is similar to the difference between tuples and lists.

However, in oscpy, bytes are treated as as an OSC-String and bytesarrays are treated as an OSC-Blob. They are treated differently as to whether they go through an encoding/decoding stage,

This distinction is not obvious nor intuitive.

Please consider treating `bytes` as OSC-Blobs, to make then consistent. Unicode strings should continue to be treated as strings and encoded/decoded.

Failing that please consider documenting this in the Gotcha section.

Contributor guide

Open the contributing guide

Research direction

The issue names no files or tests. Start by locating oscpy's handling of bytes, bytearray, OSC-String, and OSC-Blob, then review the Gotcha documentation. Done means either bytes are treated as OSC-Blobs while Unicode strings retain encoding and decoding, or the distinction is explicitly documented there.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
networking
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.