Message263321
| Author |
skrah |
| Recipients |
Arfrever, MrJean1, ajaksu2, barry, belopolsky, benjamin.peterson, inducer, mark.dickinson, martin.panter, meador.inge, ncoghlan, noufal, paulehoffman, pitrou, pv, skrah, teoliphant |
| Date |
2016年04月13日.10:20:07 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1460542808.12.0.590949018582.issue3132@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Here's a grammar that roughly describes the subset that NumPy supports.
As for implementing this in the struct module: There is a new data
description language on the horizon:
http://datashape.readthedocs.org/en/latest/
It does not have all the low-level capabilities (e.g changing alignment
on the fly), but it is far more readable. Example:
PEP-3118: "(2,3)10f0fZdT{10B:x:(2,3)d:y:Q:z:}B"
Datashape: "2 * 3 * (10 * float32, 0 * float32, complex128, {x: 10 * uint8, y: 2 * 3 * float64, z: int64}, uint8)"
There are a lot of open questions still. Should "10f" be viewed as an
array[10] of float, i.e. equivalent to (10)f?
In the context of PEP-3118, I think so. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2016年04月13日 10:20:08 | skrah | set | recipients:
+ skrah, barry, teoliphant, mark.dickinson, ncoghlan, belopolsky, pitrou, inducer, ajaksu2, MrJean1, benjamin.peterson, pv, Arfrever, noufal, meador.inge, martin.panter, paulehoffman |
| 2016年04月13日 10:20:08 | skrah | set | messageid: <1460542808.12.0.590949018582.issue3132@psf.upfronthosting.co.za> |
| 2016年04月13日 10:20:08 | skrah | link | issue3132 messages |
| 2016年04月13日 10:20:08 | skrah | create |
|