Skip to content

support functools.Placeholder #5479

Open

Description

@asukaminato0721
from functools import partial, Placeholder

def ping(host, count, timeout):
    return f"ping {host} -c {count} -W {timeout}"

quick_ping = partial(ping, Placeholder, 1, 2)
print(quick_ping("10.0.0.1")) 

https://docs.python.org/3/library/functools.html#functools.Placeholder

Activity

  1. La1itchauhan commented on Nov 2, 2026

    @La1itchauhan
    Contributor

    #claim

  2. github-actions commented on Nov 2, 2026

    @github-actions

    @La1itchauhan you've claimed this issue — it's now assigned to you. Thanks for picking it up! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions