On Mon, Jun 19, 2017 at 8:04 PM, Nick Coghlan <ncogh...@gmail.com> wrote:
> As context for anyone not familiar with the time module precedent that > Guido mentioned, we have a C level `PyStructSequence` that provides > some of the most essential namedtuple features, but not all of them: > https://github.com/python/cpython/blob/master/Objects/structseq.c > > So there's potentially a case to be made for: > > 1. Including the struct sequence header from "Python.h" and making it > part of the stable ABI > 2. Documenting it in the C API reference > +1 -- I was just thinking this morning that a C-level named tuple would be nice. And certainly better than re-implementing it in various places it is needed. Would there be any benefit in making a C implementation available from Python? -CHB -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception chris.bar...@noaa.gov
_______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/