Opened 5 years ago

Closed 5 years ago

#25184 closed enhancement (wontfix)

Replace attrcall by operator.methodcaller

Reported by: Jeroen Demeyer Owned by:
Priority: minor Milestone: sage-duplicate/invalid/wontfix
Component: misc Keywords:
Cc: Merged in:
Authors: Jeroen Demeyer Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

The functionality provided by sage.misc.misc.attrcall is exactly the same as the Python standard function operator.methodcaller, so we might as well use the latter.

Change History (1)

comment:1 Changed 5 years ago by Jeroen Demeyer

Milestone: sage-8.2sage-duplicate/invalid/wontfix
Resolution: wontfix
Status: newclosed

operator.methodcaller is worse: it doesn't support pickling and doesn't support getting the method name.

Note: See TracTickets for help on using tickets.