Opened 4 years ago

Closed 4 years ago

#25184 closed enhancement (wontfix)

Replace attrcall by operator.methodcaller

Reported by: jdemeyer 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


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 4 years ago by jdemeyer

  • Milestone changed from sage-8.2 to sage-duplicate/invalid/wontfix
  • Resolution set to wontfix
  • Status changed from new to closed

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.