python binding to sproto
Geek Repo:Geek Repo
Github PK Tool:Github PK Tool
cloudwu opened this issue 9 years ago · comments
cloudwu/sproto@527c6ae
因为 encode 的 callback 需要返回 0 用来表示空值. 而之前操作 string 的时候, 空串会返回长度 0 . 这样含义就混淆了, 会导致空串等价于 nil .
所以定义 encode string 的时候, string 应返回长度 + 1 .
你看看跟进一下。