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

Module to dynamically generate structseq objects #40460

Closed
ehuss mannequin opened this issue Jun 26, 2004 · 4 comments
Closed

Module to dynamically generate structseq objects #40460

ehuss mannequin opened this issue Jun 26, 2004 · 4 comments
Assignees
Labels
extension-modules C modules in the Modules dir

Comments

@ehuss
Copy link
Mannequin

ehuss mannequin commented Jun 26, 2004

BPO 980098
Nosy @smontanaro, @birkenfeld, @rhettinger
Files
  • structseq.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/rhettinger'
    closed_at = <Date 2009-01-02.21:49:09.393>
    created_at = <Date 2004-06-26.01:12:45.000>
    labels = ['extension-modules']
    title = 'Module to dynamically generate structseq objects'
    updated_at = <Date 2009-01-02.21:49:09.392>
    user = 'https://bugs.python.org/ehuss'

    bugs.python.org fields:

    activity = <Date 2009-01-02.21:49:09.392>
    actor = 'rhettinger'
    assignee = 'rhettinger'
    closed = True
    closed_date = <Date 2009-01-02.21:49:09.393>
    closer = 'rhettinger'
    components = ['Extension Modules']
    creation = <Date 2004-06-26.01:12:45.000>
    creator = 'ehuss'
    dependencies = []
    files = ['6052']
    hgrepos = []
    issue_num = 980098
    keywords = ['patch']
    message_count = 4.0
    messages = ['46239', '46240', '65027', '78883']
    nosy_count = 4.0
    nosy_names = ['skip.montanaro', 'georg.brandl', 'rhettinger', 'ehuss']
    pr_nums = []
    priority = 'normal'
    resolution = 'rejected'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue980098'
    versions = ['Python 2.6']

    @ehuss
    Copy link
    Mannequin Author

    ehuss mannequin commented Jun 26, 2004

    The following module allows you to create custom
    structseq objects from python.

    It requires a patch to structseq.c in order to correctly
    allocate the type object on the heap.

    I wasn't sure about the best way to allocate a type
    object on the heap, so this is my best effort. I'm going
    to follow up with a posting to python-dev to see what
    others think.

    This file will probably need to be updated to conform to
    python style standards.

    Feel free to include this in the standard Python
    distribution. I am willing to handle future updates/fixes
    for it.

    This is related to bug 624827 filed by Fred L. Drake to
    add similar functionality.

    @ehuss ehuss mannequin added extension-modules C modules in the Modules dir labels Jun 26, 2004
    @ehuss
    Copy link
    Mannequin Author

    ehuss mannequin commented Jun 26, 2004

    Logged In: YES
    user_id=393416

    New patch that does away with the factory object and just
    produces type objects via a builtin function.

    @birkenfeld
    Copy link
    Member

    I believe this is obsolete now we have namedtuple?

    @rhettinger
    Copy link
    Contributor

    I agree with Georg.

    @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
    extension-modules C modules in the Modules dir
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants