On Mon, 10 Apr 2000 bwarsaw@python.org wrote: >... > GS> And note that the getattro/setattro is preferred. It is easy > GS> to extract the char* from them; the other direction requires > GS> construction of an object. > > Good point. Oh. Also, I noticed that you removed a handy optimization from the getattr function. Testing a character for '_' *before* calling strcmp() will save a good chunk of time, especially considering how often this function is used. Basically, review whether a quick test can save a strmp() call (and can be easily integrated). Cheers, -g -- Greg Stein, http://www.lyra.org/
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4