[Python-Dev] _length_cue() (original) (raw)
Armin Rigo arigo at tunes.org
Fri Feb 10 14:08:06 CET 2006
- Previous message: [Python-Dev] _length_cue()
- Next message: [Python-Dev] _length_cue()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Raymond,
On Wed, Feb 08, 2006 at 09:21:02PM -0500, Raymond Hettinger wrote:
(... getitemcue ...) Before putting this in production, it would probably be worthwhile to search for code where it would have been helpful. In the case of lengthcue, there was an immediate payoff.
Indeed, I don't foresee any place where it would help apart from the repr of the iterators, which is precisely what I'm aiming at. The alternative here would be a kind of "smart" global function that knows about many built-in iterator types and is able to fish for the data inside automatically (but this hits problems of data structures being private). I thought that getitem_cue would be a less dirty solution. I really think a better repr would be generally helpful, and I cannot think of a 3rd solution at the moment... (Ideas welcome!)
A bientot,
Armin
- Previous message: [Python-Dev] _length_cue()
- Next message: [Python-Dev] _length_cue()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]