You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Swaroop (JIRA)" <ji...@apache.org> on 2009/04/30 11:33:30 UTC

[jira] Created: (THRIFT-475) DeprecationWarning for Thrift-generated code in Python 2.6

DeprecationWarning for Thrift-generated code in Python 2.6
----------------------------------------------------------

                 Key: THRIFT-475
                 URL: https://issues.apache.org/jira/browse/THRIFT-475
             Project: Thrift
          Issue Type: Bug
          Components: Compiler (Python)
    Affects Versions: 0.2
         Environment: Ubuntu 9.04
            Reporter: Swaroop


Declaring an Exception in a Thrift class and then using it under Python 2.6 generates the following code:

/usr/local/lib/python2.6/dist-packages/thrift/Thrift.py:58: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  self.message = message


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


[jira] Commented: (THRIFT-475) DeprecationWarning for Thrift-generated code in Python 2.6

Posted by "Todd Lipcon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12704718#action_12704718 ] 

Todd Lipcon commented on THRIFT-475:
------------------------------------

Is this not just:

http://bugs.python.org/issue5716

> DeprecationWarning for Thrift-generated code in Python 2.6
> ----------------------------------------------------------
>
>                 Key: THRIFT-475
>                 URL: https://issues.apache.org/jira/browse/THRIFT-475
>             Project: Thrift
>          Issue Type: Bug
>          Components: Compiler (Python)
>    Affects Versions: 0.2
>         Environment: Ubuntu 9.04
>            Reporter: Swaroop
>            Priority: Minor
>
> Declaring an Exception in a Thrift class and then using it under Python 2.6 generates the following code:
> /usr/local/lib/python2.6/dist-packages/thrift/Thrift.py:58: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
>   self.message = message

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


[jira] Commented: (THRIFT-475) DeprecationWarning for Thrift-generated code in Python 2.6

Posted by "Swaroop (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12705469#action_12705469 ] 

Swaroop commented on THRIFT-475:
--------------------------------

Here is one way to fix this annoying issue: http://bitbucket.org/jespern/django-piston/issue/22/

> DeprecationWarning for Thrift-generated code in Python 2.6
> ----------------------------------------------------------
>
>                 Key: THRIFT-475
>                 URL: https://issues.apache.org/jira/browse/THRIFT-475
>             Project: Thrift
>          Issue Type: Bug
>          Components: Compiler (Python)
>    Affects Versions: 0.2
>         Environment: Ubuntu 9.04
>            Reporter: Swaroop
>            Priority: Minor
>
> Declaring an Exception in a Thrift class and then using it under Python 2.6 generates the following code:
> /usr/local/lib/python2.6/dist-packages/thrift/Thrift.py:58: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
>   self.message = message

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


[jira] Updated: (THRIFT-475) DeprecationWarning for Thrift-generated code in Python 2.6

Posted by "David Reiss (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/THRIFT-475?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Reiss updated THRIFT-475:
-------------------------------

    Attachment: v1-0006-THRIFT-475.-python-Eliminate-DeprecationWarning.patch

> DeprecationWarning for Thrift-generated code in Python 2.6
> ----------------------------------------------------------
>
>                 Key: THRIFT-475
>                 URL: https://issues.apache.org/jira/browse/THRIFT-475
>             Project: Thrift
>          Issue Type: Bug
>          Components: Compiler (Python)
>    Affects Versions: 0.2
>         Environment: Ubuntu 9.04
>            Reporter: Swaroop
>            Priority: Minor
>         Attachments: v1-0006-THRIFT-475.-python-Eliminate-DeprecationWarning.patch
>
>
> Declaring an Exception in a Thrift class and then using it under Python 2.6 generates the following code:
> /usr/local/lib/python2.6/dist-packages/thrift/Thrift.py:58: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
>   self.message = message

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


[jira] Commented: (THRIFT-475) DeprecationWarning for Thrift-generated code in Python 2.6

Posted by "Swaroop (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12704855#action_12704855 ] 

Swaroop commented on THRIFT-475:
--------------------------------

Aah yes. Didn't realize this affects everybody.

> DeprecationWarning for Thrift-generated code in Python 2.6
> ----------------------------------------------------------
>
>                 Key: THRIFT-475
>                 URL: https://issues.apache.org/jira/browse/THRIFT-475
>             Project: Thrift
>          Issue Type: Bug
>          Components: Compiler (Python)
>    Affects Versions: 0.2
>         Environment: Ubuntu 9.04
>            Reporter: Swaroop
>            Priority: Minor
>
> Declaring an Exception in a Thrift class and then using it under Python 2.6 generates the following code:
> /usr/local/lib/python2.6/dist-packages/thrift/Thrift.py:58: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
>   self.message = message

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


[jira] Updated: (THRIFT-475) DeprecationWarning for Thrift-generated code in Python 2.6

Posted by "Swaroop (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/THRIFT-475?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Swaroop updated THRIFT-475:
---------------------------

    Priority: Minor  (was: Major)

Lowering priority

> DeprecationWarning for Thrift-generated code in Python 2.6
> ----------------------------------------------------------
>
>                 Key: THRIFT-475
>                 URL: https://issues.apache.org/jira/browse/THRIFT-475
>             Project: Thrift
>          Issue Type: Bug
>          Components: Compiler (Python)
>    Affects Versions: 0.2
>         Environment: Ubuntu 9.04
>            Reporter: Swaroop
>            Priority: Minor
>
> Declaring an Exception in a Thrift class and then using it under Python 2.6 generates the following code:
> /usr/local/lib/python2.6/dist-packages/thrift/Thrift.py:58: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
>   self.message = message

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