Skip to content
Snippets Groups Projects
Commit 63a7f0d8 authored by jkerdreu's avatar jkerdreu
Browse files

Added Tag type check



git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2701 b32b6428-25c9-4566-ad07-03861ab6144f
parent c67abdc3
Branches
No related tags found
No related merge requests found
......@@ -10,6 +10,8 @@ data = ["foobar",2,{"device":uuid, "url":url}]
tmp = cbor.dumps(data)
print(f"{data} => {tmp}")
data = cbor.loads(tmp)
print(f"{tmp} => {data}")
dec = cbor.loads(tmp)
print(f"{tmp} => {dec}")
print(f"UUID: {type(dec[2]['device'])}")
print(f"URL: {type(dec[2]['url'])}")
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment