Skip to content

PyLong_FromUnicodeObject document is wrong #85383

Closed

Description

@methane
BPO 41211
Nosy @methane, @miss-islington
PRs
  • bpo-41211: Doc: Fix PyLong_FromUnicodeObject #21325
  • [3.9] bpo-41211: Doc: Fix PyLong_FromUnicodeObject (GH-21325) #21328
  • [3.8] bpo-41211: Doc: Fix PyLong_FromUnicodeObject (GH-21325) #21329
  • [3.9] bpo-41211: Doc: Fix PyLong_FromUnicode #21331
  • [3.8] bpo-41211: Doc: Fix PyLong_FromUnicode (GH-21331) #21332
  • 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 = <Date 2020-07-05.05:38:57.128>
    created_at = <Date 2020-07-05.02:53:03.469>
    labels = ['3.8', '3.9', '3.10', 'docs']
    title = 'PyLong_FromUnicodeObject document is wrong'
    updated_at = <Date 2020-07-05.05:38:57.127>
    user = 'https://github.com/methane'

    bugs.python.org fields:

    activity = <Date 2020-07-05.05:38:57.127>
    actor = 'methane'
    assignee = 'docs@python'
    closed = True
    closed_date = <Date 2020-07-05.05:38:57.128>
    closer = 'methane'
    components = ['Documentation']
    creation = <Date 2020-07-05.02:53:03.469>
    creator = 'methane'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 41211
    keywords = ['patch']
    message_count = 6.0
    messages = ['373009', '373010', '373011', '373012', '373015', '373016']
    nosy_count = 3.0
    nosy_names = ['methane', 'docs@python', 'miss-islington']
    pr_nums = ['21325', '21328', '21329', '21331', '21332']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue41211'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

    Activity

    1. methane commented on Jul 5, 2020

      @methane
      MemberAuthor
      .. c:function:: PyObject* PyLong_FromUnicodeObject(PyObject *u, int base)
      
         Convert a sequence of Unicode digits in the string *u* to a Python integer
         value.  The Unicode string is first encoded to a byte string using
         :c:func:`PyUnicode_EncodeDecimal` and then converted using
         :c:func:`PyLong_FromString`.
      

      PyUnicode_EncodeDecimal is not used actually.
      It uses private and undocumented _PyUnicode_TransformDecimalAndSpaceToASCII function instead.

      The document of PyFloat_FromString() doesn't mention about how it convert unicode string to digits. Let's remove the second sentence.

    2. methane commented on Jul 5, 2020

      @methane
      MemberAuthor

      New changeset 9c84417 by Inada Naoki in branch 'master':
      bpo-41211: Doc: Fix PyLong_FromUnicodeObject (GH-21325)
      9c84417

    3. miss-islington commented on Jul 5, 2020

      @miss-islington
      Contributor

      New changeset 48f388f by Miss Islington (bot) in branch '3.9':
      bpo-41211: Doc: Fix PyLong_FromUnicodeObject (GH-21325)
      48f388f

    4. miss-islington commented on Jul 5, 2020

      @miss-islington
      Contributor

      New changeset 4874e59 by Miss Islington (bot) in branch '3.8':
      bpo-41211: Doc: Fix PyLong_FromUnicodeObject (GH-21325)
      4874e59

    5. methane commented on Jul 5, 2020

      @methane
      MemberAuthor

      New changeset 16f4517 by Inada Naoki in branch '3.9':
      bpo-41211: Doc: Fix PyLong_FromUnicode (GH-21331)
      16f4517

    6. miss-islington commented on Jul 5, 2020

      @miss-islington
      Contributor

      New changeset 01c0925 by Miss Islington (bot) in branch '3.8':
      bpo-41211: Doc: Fix PyLong_FromUnicode (GH-21331)
      01c0925

    7. transferred this issue fromon Apr 10, 2022
    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

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions