[Python-Dev] Dropping bytes "support" in json

Eric Smith eric at trueblade.com
Mon Apr 27 17:05:04 CEST 2009

> I couldn't figure out a way to get rid of it short of multi-#including
> "templates" and playing with the C preprocessor, however, and have the
> nagging feeling the latter would be frowned upon by the maintainers.

Not sure if this is exactly what you mean, but look at Objects/stringlib.
str.format() and unicode.format() share the same implementation, using
stringdefs.h and unicodedefs.h.


More information about the Python-Dev mailing list