[C++-SIG] setattr and CXX-4.2

Steve Harris sharris at primus.com
Wed May 17 02:02:04 CEST 2000


Geoffrey Furnish <furnish at actel.com> writes:

[...]

> Also, it would just force the caller of getattr to run strlen on the
> string anyway, so I don't really see a net performance improvement
> coming from this.

Okay. That was the condition in my suggestion: only if _we're_ writing
the thing that calls this gettattr() function could this suggestion be
useful. Since it's Python itself, then this is fine.

-- 
Steven E. Harris
Primus Knowledge Solutions, Inc.
http://www.primus.com




More information about the Cplusplus-sig mailing list