Issue 980098: Module to dynamically generate structseq objects (original) (raw)

Issue980098

Created on 2004-06-26 01:12 by ehuss, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
structseq.patch ehuss,2004-06-26 23:55
Messages (4)
msg46239 - (view) Author: Eric Huss (ehuss) Date: 2004-06-26 01:12
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.
msg46240 - (view) Author: Eric Huss (ehuss) Date: 2004-06-26 23:55
Logged In: YES user_id=393416 New patch that does away with the factory object and just produces type objects via a builtin function.
msg65027 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-04-06 08:43
I believe this is obsolete now we have namedtuple?
msg78883 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2009-01-02 21:49
I agree with Georg.
History
Date User Action Args
2022-04-11 14:56:05 admin set github: 40460
2009-01-02 21:49:09 rhettinger set status: open -> closedresolution: rejectedmessages: +
2008-04-06 11:21:28 rhettinger set versions: + Python 2.6
2008-04-06 08:43:46 georg.brandl set assignee: rhettingermessages: + nosy: + rhettinger, georg.brandl
2007-08-31 00:44:57 skip.montanaro set nosy: + skip.montanaro
2004-06-26 01:12:45 ehuss create