cpython/Python
Martijn Pieters d7e64337ef bpo-28598: Support __rmod__ for RHS subclasses of str in % string formatting operations (#51)
When you use `'%s' % SubClassOfStr()`, where `SubClassOfStr.__rmod__` exists, the reverse operation is ignored as normally such string formatting operations use the `PyUnicode_Format()` fast path. This patch tests for subclasses of `str` first and picks the slow path in that case.

Patch by Martijn Pieters.
2017-02-23 15:38:04 +02:00
..
clinic Run Argument Clinic: METH_VARARGS=>METH_FASTCALL 2017-01-17 02:21:47 +01:00
_warnings.c Issue #20185: Convert _warnings.warn() to Argument Clinic 2016-12-09 18:08:18 +01:00
asdl.c
ast.c bpo-29463: Add docstring field to some AST nodes. (#46) 2017-02-22 16:31:59 +01:00
bltinmodule.c bpo-29556: Remove unused #include <langinfo.h> (#98) 2017-02-16 00:34:30 +01:00
ceval.c bpo-28598: Support __rmod__ for RHS subclasses of str in % string formatting operations (#51) 2017-02-23 15:38:04 +02:00
ceval_gil.h
codecs.c
compile.c bpo-29463: Add docstring field to some AST nodes. (#46) 2017-02-22 16:31:59 +01:00
condvar.h
dtoa.c
dup2.c
dynamic_annotations.c
dynload_aix.c
dynload_dl.c
dynload_hpux.c
dynload_next.c
dynload_shlib.c
dynload_stub.c
dynload_win.c
errors.c Issue #25677: Merge SyntaxError caret positioning from 3.6 2016-12-19 06:46:12 +00:00
fileutils.c Issue #26919: On Android, operating system data is now always encoded/decoded 2016-12-15 20:59:58 +01:00
formatter_unicode.c
frozen.c
frozenmain.c
future.c bpo-29463: Add docstring field to some AST nodes. (#46) 2017-02-22 16:31:59 +01:00
getargs.c Issue #29460: _PyArg_NoKeywords(), _PyArg_NoStackKeywords() and 2017-02-06 10:41:46 +02:00
getcompiler.c
getcopyright.c ring in 2017 for Python 2017-01-01 22:04:13 -06:00
getopt.c
getplatform.c
getversion.c
graminit.c
import.c Removed redundant Argument Clinic directives. 2017-02-04 11:53:22 +02:00
importdl.c
importdl.h
importlib.h bpo-29463: Add docstring field to some AST nodes. (#46) 2017-02-22 16:31:59 +01:00
importlib_external.h bpo-29463: Add docstring field to some AST nodes. (#46) 2017-02-22 16:31:59 +01:00
makeopcodetargets.py
marshal.c
modsupport.c bpo-29524: Add Objects/call.c file (#12) 2017-02-12 19:27:05 +01:00
mysnprintf.c
mystrtoul.c
opcode_targets.h Issue #26110: Add LOAD_METHOD/CALL_METHOD opcodes. 2016-12-13 19:03:51 -05:00
peephole.c
pyarena.c
pyctype.c
pyfpe.c
pyhash.c
pylifecycle.c
pymath.c
pystate.c
pystrcmp.c
pystrhex.c
pystrtod.c
Python-ast.c bpo-29463: Add docstring field to some AST nodes. (#46) 2017-02-22 16:31:59 +01:00
pythonrun.c bpo-29556: Remove unused #include <langinfo.h> (#98) 2017-02-16 00:34:30 +01:00
pytime.c
random.c Issue #29157: Prefer getrandom() over getentropy() 2017-01-09 11:18:53 +01:00
README
sigcheck.c
strdup.c
structmember.c
symtable.c
sysmodule.c bpo-29556: Remove unused #include <langinfo.h> (#98) 2017-02-16 00:34:30 +01:00
thread.c
thread_foobar.h
thread_nt.h
thread_pthread.h
traceback.c
wordcode_helpers.h

Miscellaneous source files for the main Python shared library