Message162675
| Author |
eric.araujo |
| Recipients |
amaury.forgeotdarc, eric.araujo, eric.snow, rhettinger, vstinner |
| Date |
2012年06月12日.13:31:51 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1339507913.16.0.194469927155.issue15003@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
>> Is this documented in whatsnew?
> I'm not sure what has been (none of my patches have done so).
Okay; if a committer does not add a note we can open a doc bug to not forget that.
>> Also, I remember a discussion about making it public or not, but
>> don’t recall a decision.
> Amaury brought it up in msg162127. His point was that the type is public in Python, so why not the C API?
Actually I was talking about making it public at all, i.e. in Python too.
> The use cases are different for the different types. StructSequence/namedtuple provides fixed data structures
> for structured records. A dict is essentially the opposite: an un-fixed data structure for dynamic namespaces,
> making no firm promises as to what the future holds.
Right; I just don’t see why the clock info needs to be a dict instead of a structseq or simplenamespace, but maybe it’s explained in the PEP and I missed it. Also it seems to me that the only advantage of simplenamespace over structseqs is that it has no order and can’t be unpacked; I don’t find that a very strong argument (I do see its value, e.g. "major, minor, *etc = sys.version_info" makes sense but we really don’t want to assign order to sys.implementation elements), but I guess this ship has sailed when the implementation was approved. |
|