[issue4345] Implement nb_nonzero for PyTclObject

Guilherme Polo report at bugs.python.org
Wed Aug 4 23:01:37 CEST 2010


Guilherme Polo <ggpolo at gmail.com> added the comment:

> I assume that Tcl_GetCharLength works for any object, regardless of
> its internal representation?

I didn't look at its code but I assume it will create a string representation for the object in question if there isn't one in place when the call happens, so this means I /believe/ it will work for any Tcl object.

> Can you update the patch for py3k, and add docs and tests?

I can do it (maybe the test part may not be excellent), but not at this moment.

Btw, I'm happy that you mentioned that doc requirement about unexpected results because I was going to write about it in my previous reply but I thought my English could hurt its meaning and negatively affect you.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4345>
_______________________________________


More information about the Python-bugs-list mailing list