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

Esteve Fernandez commented on THRIFT-301:
-----------------------------------------

Bryan:

just close it. I don't think anybody else requested this feature and it's 
obviously a hack, a better approach would be to refactor code from the compiler 
into a Python module, just like the Ruby generator does.

Thanks.

> Add a create() class method for factory-like instantiation
> ----------------------------------------------------------
>
>                 Key: THRIFT-301
>                 URL: https://issues.apache.org/jira/browse/THRIFT-301
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Python - Compiler, Python - Library
>            Reporter: Esteve Fernandez
>         Attachments: thrift-301.patch, thrift-301_v2.patch, 
> thrift-301_v3.patch, thrift-301_v4.patch, thrift-301_v5.patch, 
> thrift-301_v6.patch, thrift-301_v7.patch, thrift-301_v8.patch, 
> thrift-301_v9.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.

Reply via email to