Lisandro Dalcin wrote:

> So, should Cython save (in the Py3 case)
> byte strings in their internal table?

There are two separate things going on here:

1) The reason for keeping string literals in a table is so
that you don't have to create a new string object every
time they're used. This would seem to apply to bytes just
as much as strings.

2) Interning of strings that are likely to be used in
dynamic name lookups. Since all names are strings, this
only applies to strings, not bytes.

> At this point, I'm not sure if meging the string tables was a good
> idea.

I don't even see how you *can* merge them, since strings
and bytes are completely different types in py3k.

-- 
Greg
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to