You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "James E. King III (JIRA)" <ji...@apache.org> on 2018/12/27 15:25:04 UTC

[jira] [Closed] (THRIFT-4670) Twisted, slots, and void method fails with "object has no attribute 'success'"

     [ https://issues.apache.org/jira/browse/THRIFT-4670?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James E. King III closed THRIFT-4670.
-------------------------------------

> Twisted, slots, and void method fails with "object has no attribute 'success'"
> ------------------------------------------------------------------------------
>
>                 Key: THRIFT-4670
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4670
>             Project: Thrift
>          Issue Type: Bug
>          Components: Python - Compiler
>    Affects Versions: 0.9.3, 0.10.0, 0.11.0
>            Reporter: Palmer
>            Assignee: James E. King III
>            Priority: Minor
>             Fix For: 0.12.0
>
>
> When generating Twisted code for a void method, the compiler accidentally assigns a value to the result.success field of the result object, even though, as a void method, there is no success value and the result object has no such field. If the slots option is not specified as well, this does not cause a problem, it just sets a new field that is never used. However, with the slots option, attempting to set this undefined field causes the errorĀ "object has no attribute 'success'"



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)