You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "David Reiss (JIRA)" <ji...@apache.org> on 2009/02/01 21:57:59 UTC

[jira] Commented: (THRIFT-301) Turn read() into a class method

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

David Reiss commented on THRIFT-301:
------------------------------------

Why does this make it impossible to make structures immutable?

> Turn read() into a class method
> -------------------------------
>
>                 Key: THRIFT-301
>                 URL: https://issues.apache.org/jira/browse/THRIFT-301
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Compiler (Python), Library (Python)
>            Reporter: Esteve Fernandez
>         Attachments: thrift-301.patch, thrift-301_v2.patch
>
>
> Currently, the read() method is bound to each instance, but this makes impossible to make structures immutable (see THRIFT-162). The following patch changes the compiler to generate a class-bound read() method, it also updates the fastbinary extension accordingly.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.