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

Signature ofPyFloat_Pack{2,4,8} inconsistent with documentation #136663

Closed
Labels
docsDocumentation in the Doc dir
@ShawnZhong

Description

@ShawnZhong

According to the documentation (https://docs.python.org/3/c-api/float.html#c.PyFloat_Pack2), the signature ofPyFloat_Pack{2,4,8} is

int PyFloat_Pack2(double x, unsigned char *p, int le)

Note that the second parameter is of typeunsigned char *

However, for the implementation, the type is actuallychar *

PyAPI_FUNC(int)PyFloat_Pack2(doublex,char*p,intle);

The commit message of882d809, says "Replace the "unsigned char*" type with "char*" which is more common and easy to use". So the fix is to update the docs to usechar * as well.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp