• Marc-André Lemburg's avatar
    Added checks to prevent PyUnicode_Count() from dumping core · 3a645e4d
    Marc-André Lemburg yazdı
    in case the parameters are out of bounds and fixes error handling
    for .count(), .startswith() and .endswith() for the case of
    mixed string/Unicode objects.
    
    This patch adds Python style index semantics to PyUnicode_Count()
    indices (including the special handling of negative indices).
    
    The patch is an extended version of patch #103249 submitted
    by Michael Hudson (mwh) on SF. It also includes new test cases.
    3a645e4d
Adı
Son kayıt (commit)
Son güncelleme
BeOS Loading commit data...
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
Tools Loading commit data...
.cvsignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
acconfig.h Loading commit data...
config.h.in Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...