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

nonexistent data items declared as exports in sysmodule.h #46116

Closed
jlaurila mannequin opened this issue Jan 10, 2008 · 6 comments
Closed

nonexistent data items declared as exports in sysmodule.h #46116

jlaurila mannequin opened this issue Jan 10, 2008 · 6 comments
Assignees
Labels
easy interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error

Comments

@jlaurila
Copy link
Mannequin

jlaurila mannequin commented Jan 10, 2008

BPO 1783
Nosy @tiran, @serhiy-storchaka
Files
  • sysmodule_h_cleanup-2.7.patch
  • sysmodule_h_cleanup-3.x.patch
  • 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/serhiy-storchaka'
    closed_at = <Date 2013-02-01.11:24:47.571>
    created_at = <Date 2008-01-10.15:54:11.807>
    labels = ['interpreter-core', 'easy', 'type-bug']
    title = 'nonexistent data items declared as exports in sysmodule.h'
    updated_at = <Date 2013-02-01.11:24:47.569>
    user = 'https://bugs.python.org/jlaurila'

    bugs.python.org fields:

    activity = <Date 2013-02-01.11:24:47.569>
    actor = 'serhiy.storchaka'
    assignee = 'serhiy.storchaka'
    closed = True
    closed_date = <Date 2013-02-01.11:24:47.571>
    closer = 'serhiy.storchaka'
    components = ['Interpreter Core']
    creation = <Date 2008-01-10.15:54:11.807>
    creator = 'jlaurila'
    dependencies = []
    files = ['28910', '28911']
    hgrepos = []
    issue_num = 1783
    keywords = ['patch', 'easy']
    message_count = 6.0
    messages = ['59663', '59667', '116862', '180983', '181075', '181076']
    nosy_count = 5.0
    nosy_names = ['christian.heimes', 'jlaurila', 'BreamoreBoy', 'python-dev', 'serhiy.storchaka']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue1783'
    versions = ['Python 2.7', 'Python 3.2', 'Python 3.3', 'Python 3.4']

    @jlaurila
    Copy link
    Mannequin Author

    jlaurila mannequin commented Jan 10, 2008

    sysmodule.h contains the following declarations for data to be exported
    from the Python DLL, but these variables don't seem to exist anywhere:

    PyAPI_DATA(PyObject *) _PySys_TraceFunc, *_PySys_ProfileFunc;
    PyAPI_DATA(int) _PySys_CheckInterval;

    Either the declarations should be removed or the variables should be
    defined somewhere. I'm proposing the former.

    @jlaurila jlaurila mannequin added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Jan 10, 2008
    @tiran
    Copy link
    Member

    tiran commented Jan 10, 2008

    Sounds good to me. The vars were probably forgotten. The header files
    may contain more missing vars, too.

    @devdanzin devdanzin mannequin added the type-bug An unexpected behavior, bug, or error label May 13, 2009
    @BreamoreBoy
    Copy link
    Mannequin

    BreamoreBoy mannequin commented Sep 19, 2010

    The 1st declaration still exists, the 2nd has been removed.

    @serhiy-storchaka
    Copy link
    Member

    Here are patches.

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Feb 1, 2013

    New changeset 6074530b526f by Serhiy Storchaka in branch '2.7':
    Issue bpo-1783: Remove declarations of nonexistent private variables.
    http://hg.python.org/cpython/rev/6074530b526f

    New changeset 349419bb6283 by Serhiy Storchaka in branch '3.2':
    Issue bpo-1783: Remove declarations of nonexistent private variables.
    http://hg.python.org/cpython/rev/349419bb6283

    New changeset 9d68f705e25f by Serhiy Storchaka in branch '3.3':
    Issue bpo-1783: Remove declarations of nonexistent private variables.
    http://hg.python.org/cpython/rev/9d68f705e25f

    New changeset 905b4e3cf6d0 by Serhiy Storchaka in branch 'default':
    Issue bpo-1783: Remove declarations of nonexistent private variables.
    http://hg.python.org/cpython/rev/905b4e3cf6d0

    @serhiy-storchaka
    Copy link
    Member

    Thank you for the report, Jukka Laurila.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    easy interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants