Commit 75079c92 authored by Stefan Behnel's avatar Stefan Behnel

exclude "_" from list of cacheable 'builtins' to improve compatibility with gettext

parent 4b0a7274
...@@ -47,6 +47,8 @@ Other changes ...@@ -47,6 +47,8 @@ Other changes
To try parsing your files against this grammar, use the --formal_grammar directive. To try parsing your files against this grammar, use the --formal_grammar directive.
Experimental. Experimental.
* ``_`` is no longer considered a cacheable builtin as it could interfere with gettext.
0.21.2 (2014-12-27) 0.21.2 (2014-12-27)
=================== ===================
......
...@@ -50,14 +50,15 @@ non_portable_builtins_map = { ...@@ -50,14 +50,15 @@ non_portable_builtins_map = {
basicsize_builtins_map = { basicsize_builtins_map = {
# builtins whose type has a different tp_basicsize than sizeof(...) # builtins whose type has a different tp_basicsize than sizeof(...)
'PyTypeObject' : 'PyHeapTypeObject', 'PyTypeObject': 'PyHeapTypeObject',
} }
uncachable_builtins = [ uncachable_builtins = [
# builtin names that cannot be cached because they may or may not # builtin names that cannot be cached because they may or may not
# be available at import time # be available at import time
'WindowsError', 'WindowsError',
] '_', # e.g. gettext
]
modifier_output_mapper = { modifier_output_mapper = {
'inline': 'CYTHON_INLINE' 'inline': 'CYTHON_INLINE'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment