Movatterモバイル変換


[0]ホーム

URL:


homepage

Message286311

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

AuthorWheerd
RecipientsWheerd, gvanrossum, levkivskyi
Date2017-01-26.13:34:23
SpamBayes Score-1.0
Marked as misclassifiedYes
Message-id<1485437664.21.0.532251633923.issue29377@psf.upfronthosting.co.za>
In-reply-to
Content
I would suggest the names SlotWrapperType and MethodWrapperType because I think they match their string representations the closest.For checking whether something is a method/function one could also use inspect.isroutine (or inspect.ismethoddescriptor), but that is inconsistent with regards to builtin and python methods:>>> import inspect>>> inspect.isroutine(object.__init__)True>>> inspect.isroutine(object().__init__)False>>> class A:...   def f(self):...     pass...>>> inspect.isroutine(A.f)True>>> inspect.isroutine(A().f)TrueMaybe a function to detect the second case is needed.
History
DateUserActionArgs
2017-01-26 13:34:24Wheerdsetrecipients: +Wheerd,gvanrossum,levkivskyi
2017-01-26 13:34:24Wheerdsetmessageid: <1485437664.21.0.532251633923.issue29377@psf.upfronthosting.co.za>
2017-01-26 13:34:24Wheerdlinkissue29377 messages
2017-01-26 13:34:23Wheerdcreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp