StackOverflow Questions for Tag: functools

WGH
WGH

Reputation: 3519

Make @lru_cache ignore some of the function arguments

Score: 94

Views: 24832

Answers: 3

Read More
Deepak Tatyaji Ahire
Deepak Tatyaji Ahire

Reputation: 5321

Does python's functools lru_cache caches function parameters alongside the result?

Score: 1

Views: 1263

Answers: 2

Read More
televator
televator

Reputation: 1333

Python functools lru_cache with instance methods: release object

Score: 107

Views: 65419

Answers: 11

Read More
Daraan
Daraan

Reputation: 3947

Why does overloading __new__ with singledispatchmethod not work as expected?

Score: 0

Views: 164

Answers: 1

Read More
foo
foo

Reputation: 21

TypeError: Invalid annotation for 'value'. typing.Type[bool] is not a class

Score: 1

Views: 61

Answers: 0

Read More
Ishan
Ishan

Reputation: 1

tkinter menu add_command not working as intended

Score: 0

Views: 51

Answers: 2

Read More
Bob
Bob

Reputation: 528

Caching Python function results using only subset of arguments as identifier

Score: 6

Views: 5034

Answers: 3

Read More
redfast00
redfast00

Reputation: 1673

Python3 pass lists to function with functools.lru_cache

Score: 64

Views: 39415

Answers: 7

Read More
Kulu
Kulu

Reputation: 164

How to disable functools @lru_cache when developing locally

Score: 2

Views: 131

Answers: 4

Read More
ely
ely

Reputation: 77484

Differences between functools.partial and a similar lambda?

Score: 37

Views: 20210

Answers: 8

Read More
xiaodai
xiaodai

Reputation: 16064

The `functools.cmp_to_key` isn't working on this comparison of two-tuple problem

Score: 0

Views: 1398

Answers: 1

Read More
M80
M80

Reputation: 994

Python method chaining in functional programming style

Score: 0

Views: 198

Answers: 3

Read More
Zachary Barbanell
Zachary Barbanell

Reputation: 792

Python recursion limits and functools.cache

Score: 2

Views: 98

Answers: 0

Read More
qwr
qwr

Reputation: 10964

Function memoization, passing around precomputed values

Score: 2

Views: 107

Answers: 0

Read More
user1865341
user1865341

Reputation: 4499

How does functools partial do what it does?

Score: 362

Views: 328961

Answers: 10

Read More
crogg01
crogg01

Reputation: 2526

functools partial with bound first argument and *args and **kwargs interprets calls as multiple values

Score: 3

Views: 54

Answers: 1

Read More
Ofer Sadan
Ofer Sadan

Reputation: 11942

Why is functools.partial not a subclass of types.FunctionType?

Score: 4

Views: 4099

Answers: 2

Read More
A23149577
A23149577

Reputation: 2155

Proper type hint for functools.partial

Score: 20

Views: 18430

Answers: 1

Read More
Dorian Turba
Dorian Turba

Reputation: 3755

How to make precise function annotation after Partial applied

Score: 1

Views: 1092

Answers: 3

Read More
user26109373
user26109373

Reputation: 11

Decorator with argument trying to access the self variable doesn't seem to extract self, but self.x instead

Score: 1

Views: 121

Answers: 2

Read More
PreviousPage 1Next