iotile / iotile/typedargs

newstr object instead of str object python2.7

Open
#51 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1
Forks
2
PR merge metrics
No merged PRs in 30d

Description

When I am using `param` to get a string inside proxy object, I can't directly receive a str object, I am receiving an object with type.
My proxy object:
```
from iotile.core.hw.proxy.proxy import TileBusProxyObject
from iotile.core.utilities.typedargs.annotate import context, param

@context("DemoProxy1")
class DemoProxyObject(TileBusProxyObject):

@classmethod
def ModuleName(cls):
return 'Demo01'

@param("test_var", "str")
def get_test_rpc_v1(self, test_var):
print(type(test_var))

```
Steps to reproduce:
1. Run get_test_rpc_v1

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.