Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

_socket.ALG_SET_PUBKEY is a wrong internal value from libkcapi (changed in 2022)

Open Beginner friendly
#158,285 4 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
linux, python

Research direction

Start by locating the _socket.ALG_SET_PUBKEY definition in CPython and compare it with the value in the linked libkcapi commit. Reproduce the provided Python snippet on Linux and verify that the exposed constant matches the current libkcapi interface.

Written by the indexing model from the issue text.

Description

extension-modules topic-socket type-bug

Bug report

Bug description:
import _socket
print(_socket.ALG_SET_PUBKEY)

The output is 6, but the value has been 7 since 2022. This is an internal interface inside libkcapi, I could find no reason it should be included in CPython. This came up when correcting a typo in PyPy pypy/pypy#5594.

CPython versions tested on:

3.14

Operating systems tested on:

Linux

Dominant language
Python
Stars
77.2k
Forks
36k
Avg merge
1d 11h
Merged PRs (30d)
576

Getting set up

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.

More from python/cpython

All issues in python/cpython

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.