original) (raw)
(On Wed, May 22, 2013 at 8:53 PM, Carlos Nepomuceno <carlosnepomuceno@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 \_PyString\_InsertThousandsGrouping():
"#define \_Py\_InsertThousandsGrouping \_PyString\_InsertThousandsGrouping"
I'm looking for the opposite!
No, you aren't :-)
#define \_Py\_InsertThousandsGrouping \_PyString\_InsertThousandsGrouping
#include "stringlib/localeutil.h"
#define \_Py\_InsertThousandsGrouping \_PyString\_InsertThousandsGrouping
#include "stringlib/localeutil.h"
Now look inside "stringlib/localeutil.h" and think what the pre-processor does with the function definition having the #define above.
Eli
Eli
�
I don't even know how that doesn't cause an error! What's the trick?
Thanks in advance.
Carlos
\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/eliben%40gmail.com