Thanks to visit codestin.com
Credit goes to github.com

Skip to content

BUG: Numpy does not recognize 'c' as PEP 3118 buffer format string #4469

Closed
@abalkin

Description

@abalkin

One way to demonstrate the bug without writing a C extension is

>>> np.core._internal._dtype_from_pep3118('c')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "numpy/core/_internal.py", line 446, in _dtype_from_pep3118
    raise ValueError("Unknown PEP 3118 data type specifier %r" % spec)
ValueError: Unknown PEP 3118 data type specifier 'c'

http://legacy.python.org/dev/peps/pep-3118/#additions-to-the-struct-string-syntax

http://docs.python.org/2/library/struct.html#format-characters

Metadata

Metadata

Assignees

No one assigned

    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