From: Norbert N. <Nor...@gm...> - 2005-01-22 12:53:00
|
Am Freitag, 21. Januar 2005 08:00 schrieb russ: > > it might make sense to do '/' parsing in __getitem__, such > > that something["abc/djk"] is internally read equivalently > > to something["abc"]["djk"] > > Actually I'd disagree with that. I think the beauty of allowing any > arbitrary string in the __getitem__ is that anything is allowed; there > are no special cases for the programmer to have to worry about. It is > very simple to use. It doesn't make sense to me to provide a special > interpretation for the "/" character purely in order to save typing a > few characters in an interactive session. '/' is prohibited by the underlying HDF5 as part of an identifier. It is therefore not an option to allow it in a PyTables identifer. The only question is whether it should raise an exception or have the special meaning. Personally, I have no strong opinion on this question. -- _________________________________________Norbert Nemec Bernhardstr. 2 ... D-93053 Regensburg Tel: 0941 - 2009638 ... Mobil: 0179 - 7475199 eMail: <No...@Ne...> |