Skip to content
GitLab
  • Menu
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 673
    • Issues 673
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 13
    • Merge requests 13
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & 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
  • PyPy
  • pypypypy
  • Merge requests
  • !622

Make more compatible with old C extensions using the PyDateTime_... objects

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Bitbucket Importer requested to merge topic/default/bitbucket-pr-622 into branch/default Sep 13, 2018
  • Overview 3
  • Commits 2
  • Changes 2

Created originally on Bitbucket by ashwinahuja (Ashwin Ahuja)

Encountered lots of problems in an old C extension I was trying to get working with PyPy, to do with missing things inside datetime.h (and cpyext_datetime.h).

Idea is to bring everything a bit closer to: https://github.com/python/cpython/blob/master/Include/datetime.h

Included in this is 'long hashcode' in:
PyDateTime_Delta
PyDateTime_Time
PyDateTime_DateTime
PyDateTime_Date

Also added 'unsigned char fold' (+ new constructors that let this be used) to:
PyDateTime_Time
PyDateTime_DateTime

And: 'unsigned char data[...]' to:
PyDateTime_Time
PyDateTime_Date
PyDateTime_DateTime

Finally, added the objects:
_PyDateTime_BaseTime
_PyDateTime_BaseDateTime

Also brought across DATETIME_API_MAGIC which is a part of CPython and I found I had a reliance on (therefore others might have the same thing)

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: topic/default/bitbucket-pr-622