GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — winreg SetValue(Ex) should mention integer as an acceptable value · Issue #86184 · python/cpython

winreg SetValue(Ex) should mention integer as an acceptable value #86184

New issue
Copy link
New issue
Copy link
Open
Open
winreg SetValue(Ex) should mention integer as an acceptable value#86184
Copy link
Labels
3.10 (EOL)end of lifeend of life3.8 (EOL)end of lifeend of life3.9 (EOL)end of lifeend of lifeOS-windowsdocsDocumentation in the Doc dirDocumentation in the Doc dirtype-featureA feature request or enhancementA feature request or enhancement

Description

kainjow
mannequin
opened on Oct 12, 2020
Issue body actions
BPO 42018
Nosy @pfmoore, @tjguk, @zware, @serhiy-storchaka, @zooba, @kainjow
PRs
  • bpo-42018: winreg SetValue(Ex) should mention integer as an acceptable value #22671
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2020-10-12.16:21:08.662>
    labels = ['3.8', '3.9', '3.10', 'type-feature', 'OS-windows', 'docs']
    title = 'winreg SetValue(Ex) should mention integer as an acceptable value'
    updated_at = <Date 2020-10-12.18:08:05.560>
    user = 'https://github.com/kainjow'

    bugs.python.org fields:

    activity = <Date 2020-10-12.18:08:05.560>
    actor = 'serhiy.storchaka'
    assignee = 'docs@python'
    closed = False
    closed_date = None
    closer = None
    components = ['Documentation', 'Windows']
    creation = <Date 2020-10-12.16:21:08.662>
    creator = 'kwojniak_box'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 42018
    keywords = ['patch']
    message_count = 1.0
    messages = ['378508']
    nosy_count = 8.0
    nosy_names = ['paul.moore', 'tim.golden', 'docs@python', 'python-dev', 'zach.ware', 'serhiy.storchaka', 'steve.dower', 'kwojniak_box']
    pr_nums = ['22671']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue42018'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

    Linked PRs

    • gh-86184: Update document for SetValue and QueryValue in winreg #141516

    Activity

    1. kainjow commented on Oct 12, 2020

      @kainjow
      kainjowmannequin
      on Oct 12, 2020
      MannequinAuthor
      More actions

      On https://docs.python.org/3/library/winreg.html

      For SetValue and SetValueEx is says:

      value is a string that specifies the new value.

      but value can also be an integer if the type is DWORD. Here's a test that shows that: https://github.com/python/cpython/blob/3.9/Lib/test/test_winreg.py#L339

      Suggested update:

      value is a string or integer that specifies the new value.

    2. kainjow
      added
      3.9 (EOL)end of lifeend of life
      on Oct 12, 2020
    3. kainjow
      assigned
      docspython
      on Oct 12, 2020
    4. kainjow
      added
      docsDocumentation in the Doc dirDocumentation in the Doc dir
      3.9 (EOL)end of lifeend of life
      on Oct 12, 2020
    5. kainjow
      assigned
      docspython
      on Oct 12, 2020
    6. kainjow
      added
      docsDocumentation in the Doc dirDocumentation in the Doc dir
      on Oct 12, 2020
    7. serhiy-storchaka
      added
      3.8 (EOL)end of lifeend of life
      3.10 (EOL)end of lifeend of life
      type-featureA feature request or enhancementA feature request or enhancement
      OS-windows
      on Oct 12, 2020
    8. ezio-melotti
      transferred this issue fromon Apr 10, 2022
    9. aisk commented on Nov 13, 2025

      @aisk
      aisk
      on Nov 13, 2025
      Member
      More actions

      SetValueEx support using other types as the value, but SetValue does not according to it's defination:

      cpython/PC/winreg.c

      Lines 1719 to 1723 in d7862e9

      type: DWORD
      An integer that specifies the type of the data. Currently this must
      be REG_SZ, meaning only strings are supported.
      value as value_obj: unicode
      A string that specifies the new value.

    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

      3.10 (EOL)end of lifeend of life3.8 (EOL)end of lifeend of life3.9 (EOL)end of lifeend of lifeOS-windowsdocsDocumentation in the Doc dirDocumentation in the Doc dirtype-featureA feature request or enhancementA feature request or enhancement

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions

        You are visitor 01402503 — GeezerVison does not store the pages you look up.
        Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.