Split large Objects/unicodeobject.c file into smaller files · Issue #139353 · python/cpython · GitHub
Skip to content

Split large Objects/unicodeobject.c file into smaller files #139353

Description

@vstinner

The Objects/unicodeobject.c file is made of 16,683 lines of C code. It's the 4th largest file in the Python code base:

   38334 ./Parser/parser.c
   18485 ./Python/Python-ast.c
   18304 ./Modules/posixmodule.c
   16683 ./Objects/unicodeobject.c

parser.c and Python-ast.c are generated C files.

I propose to split this file into smaller files to ease its maintenance and to allow building it in parallel.

Linked PRs

Activity

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

    interpreter-core(Objects, Python, Grammar, and Parser dirs)topic-unicodetype-refactorCode refactoring (with no changes in behavior)

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions