0
0
mirror of https://github.com/python/cpython.git synced 2024-11-30 18:51:15 +01:00
cpython/Python
Serhiy Storchaka 94ee389308 Issue #19619: Blacklist non-text codecs in method API
str.encode, bytes.decode and bytearray.decode now use an
internal API to throw LookupError for known non-text encodings,
rather than attempting the encoding or decoding operation and
then throwing a TypeError for an unexpected output type.

The latter mechanism remains in place for third party non-text
encodings.

Backported changeset d68df99d7a57.
2014-02-24 14:43:03 +02:00
..
_warnings.c
asdl.c
ast.c Fix potential NULL pointer dereferencing in ast module 2013-07-24 21:02:17 +02:00
bltinmodule.c document that compile() can take bytes (closes #19910) 2013-12-06 20:12:39 -05:00
ceval_gil.h
ceval.c Issue #20437: Fixed 21 potential bugs when deleting objects references. 2014-02-09 13:33:53 +02:00
codecs.c Issue #19619: Blacklist non-text codecs in method API 2014-02-24 14:43:03 +02:00
compile.c Issue #18783: Removed existing mentions of Python long type in docstrings, 2013-08-27 19:40:23 +03:00
condvar.h Issue #15038 : Fixing the condition broadcast and docs. 2013-03-19 20:18:37 -07:00
dtoa.c Issue #19638: Raise ValueError instead of crashing when converting billion character strings to float. 2013-11-26 16:19:13 +00:00
dup2.c
dynamic_annotations.c
dynload_aix.c Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) in the interpreter. 2013-02-09 23:14:42 +01:00
dynload_dl.c
dynload_hpux.c
dynload_next.c
dynload_os2.c
dynload_shlib.c return NULL here 2013-07-22 22:08:09 -07:00
dynload_stub.c
dynload_win.c Issue #18180: Fix ref leak in _PyImport_GetDynLoadWindows(). 2013-06-10 15:38:54 +01:00
errors.c
fileutils.c Issue #19036: Including locale.h should not depend on HAVE_LANGINFO_H. 2014-01-20 15:31:08 +01:00
formatter_unicode.c Issue #18783: Removed existing mentions of Python long type in docstrings, 2013-08-27 19:40:23 +03:00
frozen.c
frozenmain.c Issue #15893: Remove dead code 2013-07-27 02:41:03 +02:00
future.c
getargs.c Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) in the interpreter. 2013-02-09 23:14:42 +01:00
getcompiler.c
getcopyright.c update copyright year 2013-12-31 22:02:22 -06:00
getcwd.c
getopt.c #16306: report only the first unknown option and add more tests. Patch by Serhiy Storchaka. 2012-11-23 18:48:32 +02:00
getplatform.c
getversion.c
graminit.c
import.c Issue #20437: Fixed 21 potential bugs when deleting objects references. 2014-02-09 13:33:53 +02:00
importdl.c Issue #18426: improve exception message. Courtesy of Amaury 2013-07-11 13:02:30 +02:00
importdl.h
importlib.h [issue19152] Revert 832579dbafd6. 2013-10-03 15:03:29 -06:00
makeopcodetargets.py
marshal.c Issue #18783: Removed existing mentions of Python long type in docstrings, 2013-08-27 19:40:23 +03:00
modsupport.c
mysnprintf.c
mystrtoul.c Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) in the interpreter. 2013-02-09 23:11:27 +01:00
opcode_targets.h
peephole.c #5057: the peepholer no longer optimizes subscription on unicode literals (e.g. u"foo"[0]) in order to produce compatible pyc files between narrow and wide builds. 2012-11-05 00:06:32 +02:00
pyarena.c remove unnecessary clearing of list 2013-01-19 14:58:38 -05:00
pyctype.c
pyfpe.c
pymath.c
pystate.c Issue #18328: Reorder ops in PyThreadState_Delete*() functions. Now the 2013-07-01 23:42:28 +02:00
pystrcmp.c
pystrtod.c
Python-ast.c bump Python-ast.c 2014-02-19 23:05:26 -05:00
pythonrun.c Issue #2382: SyntaxError cursor "^" now is written at correct position in most 2014-01-21 22:26:52 +02:00
pytime.c
random.c Closes #15213: update comment for _PyOS_URandom 2013-10-06 18:43:19 +02:00
sigcheck.c
strdup.c
structmember.c Fix null pointer dereferencing in structmember.c PyMember_SetOne() for T_CHAR. _PyUnicode_AsStringAndSize() can return NULL without touching the len argument. Also remove unnecessary PyUnicode_Check(), _PyUnicode_AsStringAndSize() performance the test again. CID 486815 2012-09-11 17:30:53 +02:00
symtable.c don't scale compiler stack frames if the recursion limit is huge (closes #19098) 2013-09-26 22:17:45 -04:00
sysmodule.c Issue #20437: Fixed 21 potential bugs when deleting objects references. 2014-02-09 13:33:53 +02:00
thread_foobar.h
thread_nt.h
thread_os2.h
thread_pth.h
thread_pthread.h Issue #18256: Compilation fix for recent AIX releases. Patch by David Edelsohn. 2013-06-18 22:17:48 +02:00
thread.c
traceback.c fix spacing 2013-07-21 13:29:37 -07:00