eliben at gmail.com
Thu May 23 06:09:50 CEST 2013
On Wed, May 22, 2013 at 8:53 PM, Carlos Nepomuceno <
carlosnepomuceno at outlook.com> wrote:
> Hi guys!
> Can someone explain to me where in the CPython 2.7.5 source code is
> _PyString_InsertThousandsGrouping() implemented?
> I've found the following declaration in 'Objects/stringobject.c' but it
> just defines _Py_InsertThousandsGrouping() as
> "#define _Py_InsertThousandsGrouping _PyString_InsertThousandsGrouping"
> I'm looking for the opposite!
No, you aren't :-)
#define _Py_InsertThousandsGrouping _PyString_InsertThousandsGrouping
Now look inside "stringlib/localeutil.h" and think what the pre-processor
does with the function definition having the #define above.
> I don't even know how that doesn't cause an error! What's the trick?
> Thanks in advance.
> Python-Dev mailing list
> Python-Dev at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-Dev