Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pypy pypy
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 675
    • Issues 675
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 13
    • Merge requests 13
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

April 05-07 - Mercurial Paris Conference 2023 - One day of workshop dedicated to Heptapod and Mercurial usage and workflow. There are still places available for both workshops and talks!

  • PyPyPyPy
  • pypypypy
  • Merge requests
  • !568

Explicitly use Py_ssize_t as the Signed type in pypy c-api.

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Bitbucket Importer requested to merge bitbucket/merged-pr-568 into branch/default Sep 08, 2017
  • Overview 6
  • Commits 2
  • Pipelines 0
  • Changes 2

Created originally on Bitbucket by asottile (Anthony Sottile)

Was already merged in Bitbucket before import, marked as merged by the import user

The signature for the c-api uses Py_ssize_t for the unsigned arguments. long is equivalent to Py_ssize_t (in fact Py_ssize_t is a typedef of long) in all cases in C, but when integrating with go, C.long and C.Py_ssize_t are considered two disparate incompatible types. By using Py_ssize_t in the function signature, pypy + cpython compatible code can be written.

‌

The specific instance where I'm hitting this is I'm upgrading pypy from 5.3.1 to 5.8.0 and hitting a wall: https://github.com/asottile/dockerfile/issues/5

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: bitbucket/merged-pr-568