Skip to content

PyObjC 12: tighten up type checks for depythonify of integers #650

@ronaldoussoren

Description

@ronaldoussoren

The following currently works:

objc.repythonify(8.5, b"I")

This can hide errors and doesn't match how CPython behaves for regular APIs.

Plan:

  • PyObjC 12: Warn about this (possibly with option to turn this into an error)
  • PyObjC 13: Raise error unconditionally

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions