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

ctypes: wrong exception message in docs #99266

Closed
Labels
docsDocumentation in the Doc dir
@kamilturek

Description

@kamilturek

Documentation

The ctypes docs say that the message of theArgumentError for the presented example should be as follows:
image

In fact, it looks like this:

>>> strchr = libc.strchr>>> strchr.restype = c_char_p>>> strchr.argtypes = [c_char_p, c_char]>>> >>> strchr(b"abcdef", b"def")Traceback (most recent call last):  File "<stdin>", line 1, in <module>ctypes.ArgumentError: argument 2: TypeError: wrong type

I will prepare a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp