runtime
340 / 500
question 340 Functional & Dynamic Python · hard

Predict: introspecting wrapped and partial functions

A decorated function and a partial of it are examined with __name__, inspect.signature, callable and getattr. Predict exactly what this prints.

Watchwhat wraps copies, what inspect.signature follows, and what a partial does and doesn't have

Loading your progress…

Predict: introspecting wrapped and partial functions — Python practice · Runtime