Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-125028: Prohibit placeholders in partial keywords#125197

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed

Conversation

dg-pb
Copy link
Contributor

@dg-pbdg-pb commentedOct 9, 2024
edited
Loading

Slight initialization penalty for vanilla case, but slightly faster for subclass optimization.

Bench

S="from functools import partial, Placeholderf = lambda a, b: Nonep = partial(f, a=1)"C0='partial(f, a=1)'C1='partial(p, b=2)'# BEFORE | AFTER$PYEXE -m timeit -s$S$C0# 180 ns | 210 ns$PYEXE -m timeit -s$S$C1# 280 ns | 250 ns

@dg-pb
Copy link
ContributorAuthor

Not planned.

@dg-pbdg-pb closed thisOct 26, 2024
@dg-pbdg-pb deleted the gh-125028-prohibit-kw-placeholders branchOctober 26, 2024 04:34
@dg-pbdg-pb restored the gh-125028-prohibit-kw-placeholders branchOctober 27, 2024 00:18
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ZeroIntensityZeroIntensityZeroIntensity left review comments

@rhettingerrhettingerAwaiting requested review from rhettingerrhettinger is a code owner

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@dg-pb@ZeroIntensity

[8]ページ先頭

©2009-2025 Movatter.jp