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

2018-11-21 Thread Palmer (JIRA)


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

Palmer updated THRIFT-4670:
---
Patch Info: Patch Available

> 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
>Priority: Minor
>
> 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)


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

2018-11-21 Thread Palmer (JIRA)
Palmer created THRIFT-4670:
--

 Summary: 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.11.0, 0.10.0, 0.9.3
Reporter: Palmer


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)


[jira] [Updated] (THRIFT-4012) Python Twisted implementation uses implements, not compatible with Py3

2017-01-25 Thread Palmer (JIRA)

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

Palmer updated THRIFT-4012:
---
Fix Version/s: (was: 0.10.0)
   0.11.0

> Python Twisted implementation uses implements, not compatible with Py3
> --
>
> Key: THRIFT-4012
> URL: https://issues.apache.org/jira/browse/THRIFT-4012
> Project: Thrift
>  Issue Type: Bug
>  Components: Python - Compiler
>Affects Versions: 0.9.3
>Reporter: Palmer
> Fix For: 0.11.0
>
>
> The Zope implements method is not compatible with Python 3. Instead, 
> @implementer is compatible with Python 3 as well as Python 2.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (THRIFT-4012) Python Twisted implementation uses implements, not compatible with Py3

2017-01-25 Thread Palmer (JIRA)

[ 
https://issues.apache.org/jira/browse/THRIFT-4012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15838337#comment-15838337
 ] 

Palmer commented on THRIFT-4012:


Updated fix version to 0.11.0 since the fix isn't included in 0.10.0 (ie, the 
change isn't in 
https://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=lib/py/src/transport/TTwisted.py;h=5710b573dce7eb6cafd396acb5c015066d9d8e07;hb=b2a4d4ae21c789b689dd162deb819665567f481c)

> Python Twisted implementation uses implements, not compatible with Py3
> --
>
> Key: THRIFT-4012
> URL: https://issues.apache.org/jira/browse/THRIFT-4012
> Project: Thrift
>  Issue Type: Bug
>  Components: Python - Compiler
>Affects Versions: 0.9.3
>Reporter: Palmer
> Fix For: 0.11.0
>
>
> The Zope implements method is not compatible with Python 3. Instead, 
> @implementer is compatible with Python 3 as well as Python 2.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Created] (THRIFT-4012) Python Twisted implementation uses implements, not compatible with Py3

2016-12-21 Thread Palmer (JIRA)
Palmer created THRIFT-4012:
--

 Summary: Python Twisted implementation uses implements, not 
compatible with Py3
 Key: THRIFT-4012
 URL: https://issues.apache.org/jira/browse/THRIFT-4012
 Project: Thrift
  Issue Type: Bug
Reporter: Palmer


The Zope implements method is not compatible with Python 3. Instead, 
@implementer is compatible with Python 3 as well as Python 2.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)