[Python-Dev] 咨询python的相关问题(Consult python related issues)

18 views
Skip to first unread message

C

unread,
Jul 28, 2021, 12:13:16 PM7/28/21
to pytho...@python.org
您好,我想咨询阅读python语言参考手册时遇到的相关问题,
看到该邮箱地址,不知道是否可以用来咨询此类问题?或请推荐咨询的渠道。

《python语言参考手册》--数据模型章节--静态方法对象:
“避免函数对象转换为方法对象”是指在实例对象在获取属性时,避免类中定义的方法(即:函数对象)转换为实例方法么?
为什么在python中,会设置这种在类中将用户定义的函数封装起来从而防止其转换为实例方法,这种封装一般应用在哪些情况下呢?

Hello, I would like to consult related issues encountered when reading the python language reference manual,
Seeing the email address, I wonder if it can be used to consult such questions? Or please recommend a channel for consultation.

"Python Language Reference Manual"-Data Model Chapter-Static Method Object:
"Avoid converting function objects into method objects" refers to avoiding the methods defined in the class (ie: function objects) from being converted into instance methods when the instance object gets properties?
Why is it set up in python to encapsulate user-defined functions in a class to prevent them from being converted into instance methods? In what situations is this encapsulation generally used?

屏幕截图 2021-07-27 172518.png

Terry Reedy

unread,
Jul 28, 2021, 12:52:51 PM7/28/21
to pytho...@python.org
On 7/28/2021 6:46 AM, C wrote:

> Hello, I would like to consult related issues encountered when reading
> the python language reference manual,

Ask question on python-list, which is about *using* python.
https://mail.python.org/mailman/listinfo/python-list

python-dev is for discussion of *developing* future versions of Python
and CPython.

Both are English only.

--
Terry Jan Reedy

_______________________________________________
Python-Dev mailing list -- pytho...@python.org
To unsubscribe send an email to python-d...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at https://mail.python.org/archives/list/pytho...@python.org/message/WKEITIR5S65NSOVWGPV7FPUDXGVHXTBG/
Code of Conduct: http://python.org/psf/codeofconduct/
Reply all
Reply to author
Forward
0 new messages