Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug in unichr() documentation #41563

Closed
mkz mannequin opened this issue Feb 11, 2005 · 5 comments
Closed

bug in unichr() documentation #41563

mkz mannequin opened this issue Feb 11, 2005 · 5 comments
Assignees
Labels
docs Documentation in the Doc dir

Comments

@mkz
Copy link
Mannequin

mkz mannequin commented Feb 11, 2005

BPO 1120777
Nosy @malemburg, @freddrake
Files
  • unichr-doc.diff: Doc update
  • 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 = 'https://github.com/freddrake'
    closed_at = <Date 2005-05-25.05:43:34.000>
    created_at = <Date 2005-02-11.13:54:00.000>
    labels = ['docs']
    title = 'bug in unichr() documentation'
    updated_at = <Date 2005-05-25.05:43:34.000>
    user = 'https://bugs.python.org/mkz'

    bugs.python.org fields:

    activity = <Date 2005-05-25.05:43:34.000>
    actor = 'fdrake'
    assignee = 'fdrake'
    closed = True
    closed_date = None
    closer = None
    components = ['Documentation']
    creation = <Date 2005-02-11.13:54:00.000>
    creator = 'mkz'
    dependencies = []
    files = ['1600']
    hgrepos = []
    issue_num = 1120777
    keywords = []
    message_count = 5.0
    messages = ['24257', '24258', '24259', '24260', '24261']
    nosy_count = 4.0
    nosy_names = ['lemburg', 'fdrake', 'jafo', 'mkz']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue1120777'
    versions = []

    @mkz
    Copy link
    Mannequin Author

    mkz mannequin commented Feb 11, 2005

    http://www.python.org/doc/2.4/lib/built-in-funcs.html:

    Return the Unicode string of one character whose
    Unicode
    code is the integer i.
    [...]
    The argument must be in the range [0..65535], inclusive.

    unichr.__doc_ says:

    Return a Unicode string of one character with ordinal
    i; 0 <= i <= 0x10ffff.

    Which is correct?

    @mkz mkz mannequin closed this as completed Feb 11, 2005
    @mkz mkz mannequin assigned freddrake Feb 11, 2005
    @mkz mkz mannequin added the docs Documentation in the Doc dir label Feb 11, 2005
    @mkz mkz mannequin closed this as completed Feb 11, 2005
    @mkz mkz mannequin assigned freddrake Feb 11, 2005
    @mkz mkz mannequin added the docs Documentation in the Doc dir label Feb 11, 2005
    @malemburg
    Copy link
    Member

    Logged In: YES
    user_id=38388

    Whether unichr() handles the UCS2 or the UCS4 range depends
    on the configuration option you set at Python compile time.
    Perhaps we should extend the documentation to mention this
    difference ?!

    Doc patches are welcome :-)

    @mkz
    Copy link
    Mannequin Author

    mkz mannequin commented Feb 11, 2005

    Logged In: YES
    user_id=894541

    Main problem for me was that the 65535 hints that unichr()
    may want UTF-16 values not Unicode. That was rather
    confusing.

    Ok, attached path clarifies unichr() range.

    @jafo
    Copy link
    Mannequin

    jafo mannequin commented Apr 20, 2005

    Logged In: YES
    user_id=81797

    Fred: The attached patch looks good to me.

    @freddrake
    Copy link
    Member

    Logged In: YES
    user_id=3066

    Fixed in Doc/lib/libfuncs.tex revisions 1.182, 1.175.2.3

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    docs Documentation in the Doc dir
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants