IronLanguages / IronLanguages/ironpython3

Clean up setting prefix/exec_prefix during startup

Open
#54 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

module-sys
Dominant language
C#
Stars
2.8k
Forks
316
Avg merge
1d 9h
Merged PRs (30d)
1

Description

prefix (Lib location) and exec_prefix (Include location, not used in IronPython) get set multiple times in multiple places, using inconsistent locations, during interpreter startup. Arguably the DLLs shouldn't even try to set the prefix and instead rely on getting it from the host, which will know where it's stdlib is stored.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Trace interpreter startup and every assignment to prefix and exec_prefix, comparing the locations used by the DLLs and host; the work is done when their ownership and initialization locations are consistent and unnecessary DLL assignments are resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, python
Domain
backend
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.