[
https://issues.apache.org/jira/browse/THRIFT-301?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12669911#action_12669911
]
Esteve Fernandez commented on THRIFT-301:
-----------------------------------------
Actually, I'd go one step further and make read() separate from the class (or
at least, allow unbound methods for reading). The reason for doing this is
that, if THRIFT-162 is incorporated into Thrift and we allow immutable objects
(at least for Python), one could implement some kind of interning mechanism.
> 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,
> thrift-301_v3.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.