A question about funcation parameter and self defined object

Wei Guo weiguo6 at gmail.com
Thu Oct 9 14:28:34 EDT 2008


Hi Terry,

Thanks for your reply. But the reason I want to have that is for not
changing the functions which already based on translation functions.

If there is any idea how to bring parameter in static method, that will be
great.

Wei
On Wed, Oct 8, 2008 at 8:24 PM, Terry Reedy <tjreedy at udel.edu> wrote:

> Wei Guo wrote:
>
>> Hi Chris,
>>  Thanks a lot for reply, you are right. I want to use this method as a
>> static method as:
>>  translation = staticmethod( translation )
>>
>
> static methods are mostly useless in Python.  Just put the definition of
> translation outside of any class.
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20081009/e394e23c/attachment-0001.html>


More information about the Python-list mailing list