Skip to content

upgrading pycparser to its latest release #223

Closed

Description

@eliben

Greetings, cffi maintainers :)

I've recently released pycparser 3.0. The major change is that it's much more lightweight - without carrying a vendored PLY dependency. All functionality remains the same, and it's about 30% faster

I tried testing CFFI with the latest pycparser release, and the only failures were in a couple of places in testing/cffi0/test_parsing.py where the tests expect a very precise formatting of the error raised by pycparser on invalid code. The text of the raised error is now different, so a few tests failed - but this is very easy to fix.

FYI if you'd like to release a new version of CFFI at some point (which - I assume - will pick up the latest pycparser, because the dependency isn't version-locked in your pyproject.toml file).

All the best

Activity

  1. eliben commented on Jan 24, 2026

    @eliben
    ContributorAuthor

    I went ahead and created PR #224 to address the test failures.

  2. mattip commented on Feb 4, 2026

    @mattip
    Contributor

    Closing, #224 was merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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