Bug 225991 - [webkitcorepy] Add hybridmethod decorator
Summary: [webkitcorepy] Add hybridmethod decorator
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jonathan Bedard
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-05-19 16:29 PDT by Jonathan Bedard
Modified: 2021-07-28 19:32 PDT (History)
4 users (show)

See Also:


Attachments
Patch (3.10 KB, patch)
2021-05-19 16:30 PDT, Jonathan Bedard
no flags Details | Formatted Diff | Diff
Patch (2.89 KB, patch)
2021-07-28 16:56 PDT, Jonathan Bedard
no flags Details | Formatted Diff | Diff
Patch for landing (4.13 KB, patch)
2021-07-28 19:03 PDT, Jonathan Bedard
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Bedard 2021-05-19 16:29:23 PDT
The hybridmethod decorator is similar to the classmethod decorator, except that a hybridmethod can differentiate between it's caller being an instance of a class and it's caller being a type object.
Comment 1 Radar WebKit Bug Importer 2021-05-19 16:29:40 PDT
<rdar://problem/78230701>
Comment 2 Jonathan Bedard 2021-05-19 16:30:44 PDT
Created attachment 429111 [details]
Patch
Comment 3 Jonathan Bedard 2021-07-28 16:56:32 PDT
Created attachment 434477 [details]
Patch
Comment 4 dewei_zhu 2021-07-28 18:53:16 PDT
Comment on attachment 434477 [details]
Patch

r=me
Comment 5 Jonathan Bedard 2021-07-28 19:03:12 PDT
Created attachment 434489 [details]
Patch for landing
Comment 6 EWS 2021-07-28 19:32:02 PDT
Committed r280413 (240053@main): <https://commits.webkit.org/240053@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 434489 [details].