Idea: "Python builtin types" enum?
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 16.2k
- Forks
- 1k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 66
Description
Would it make sense to have an enum with all the Python builtin types - similar to json::Value - as an easy way to extract Python objects of unknown, but basic, types?
The question is, how much advantage does it provide vs. leaving as PyObject - one that I can see is easy pattern matching, and immediate GIL independence.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue does not name files, entry points, or tests. Start by reviewing the existing PyObject and json::Value APIs in PyO3, then determine whether a builtin-types enum has a sufficiently defined scope and benefit; completion criteria are not specified in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, rust
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100