Marc-Andre Lemburg <m...@egenix.com> added the comment:

Eric Smith wrote:
> 
> Eric Smith <e...@trueblade.com> added the comment:
> 
> Great idea, Marc-Andre. I agree that's the better approach.
> 
> It looks like PyStructSequence supports this, by setting n_in_sequence to a 
> value smaller then the number of PyStructSequence_Fields. A quick look 
> doesn't show any uses of this in the C code (except maybe os.stat), but I'll 
> investigate and make sure that's a supported use case.

If not, I'd suggest to move the code to Python, e.g. add a
class to the new sysinfo.py module, and then instantiate it via a C
call.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7766>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to