From: Francesc A. <fa...@py...> - 2004-07-27 18:47:05
|
A Dimarts 27 Juliol 2004 20:21, Colin J. Williams va escriure: > If one starts with the assumption that field/attribute names are=20 > compatible with Python names, then I don't see that this is a problem. =20 > The question has been raised as to whether a wider range of names should= =20 > be permitted e.g.. including such characters as ~`()!=E7=E9=EB. My view = is=20 > that such characters should be considered acceptable for data labels,=20 > but not for data names. i.e. they are for display, not for manipulation. I finally was able to see your point. You mean that naming a field with a non-python identifier would be forbidden, and provide another attribute (like 'title', for example) in case the user wants to add some kind of data label. Kind of: records.array([...], names=3D["c1","c2","c3"], titles=3D["F one","time&dime= ","=E7=F2"]) and have a new attribute called "titles" that keeps this info. Well, I think that would be a very nice solution IMO. =2D-=20 =46rancesc Alted |