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

Improve the repr of partialmethod #121025

Closed
Closed
Labels
3.12only security fixes3.13bugs and security fixes3.14bugs and security fixestype-bugAn unexpected behavior, bug, or error
@serhiy-storchaka

Description

@serhiy-storchaka

Bug report

The repr ofpartialmethod object contains redundant commas and spaces. Compare it with the repr ofpartial:

>>>import functools>>>deftest(*args,**kwargs):pass... >>> functools.partial(test)functools.partial(<function test at 0x7fcbe91819d0>)>>> functools.partial(test,a=1)functools.partial(<function test at 0x7fcbe91819d0>, a=1)>>> functools.partialmethod(test)functools.partialmethod(<function test at 0x7fcbe91819d0>, , )>>> functools.partialmethod(test,a=1)functools.partialmethod(<function test at 0x7fcbe91819d0>, , a=1)

cc@dg-pb@rhettinger

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.12only security fixes3.13bugs and security fixes3.14bugs and security fixestype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp