This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Module to dynamically generate structseq objects
Type: Stage:
Components: Extension Modules Versions: Python 2.6
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: rhettinger Nosy List: ehuss, georg.brandl, rhettinger, skip.montanaro
Priority: normal Keywords: patch

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:05adminsetgithub: 40460
2009-01-02 21:49:09rhettingersetstatus: open -> closed
resolution: rejected
messages: + msg78883
2008-04-06 11:21:28rhettingersetversions: + Python 2.6
2008-04-06 08:43:46georg.brandlsetassignee: rhettinger
messages: + msg65027
nosy: + rhettinger, georg.brandl
2007-08-31 00:44:57skip.montanarosetnosy: + skip.montanaro
2004-06-26 01:12:45ehusscreate