In Python 2.x, using backticks to get decimal string from int object is Horrible?

Posted by S.Mark on Stack Overflow See other posts from Stack Overflow or by S.Mark
Published on 2010-05-17T09:59:48Z Indexed on 2010/05/17 10:10 UTC
Read the original article Hit count: 231

Filed under:
|
|

In Python 2.x, using backticks to get decimal string from int object is Horrible? Because backticks are repr(), not str()? I have noticed that when I answering this question.

In Python source, they have same function in Python source, intobject.c

(reprfunc)int_to_decimal_string,            /* tp_repr */
....
(reprfunc)int_to_decimal_string,            /* tp_str */

What do you think?

© Stack Overflow or respective owner

Related posts about python

Related posts about python-2.x