• Guido van Rossum's avatar
    Rewrote translate() as follows: · e0548b8d
    Guido van Rossum yazdı
    	- 'delete' is a C++ keyword; use 'del_table' instead
    	- apply Py_CHARMASK() to del_table[i] before using it as an index
    	  *** this fixes a bug that was just reported on the list ***
    	- if the translation didn't make any changes, INCREF and return
    	  the original string
    	- when del_table is empty or omitted, don't copy the translation
    	  table to a table of ints (should be a bit faster)
    
    Rewrote maketrans() to avoid copying the table (2-3% faster).
    e0548b8d
Adı
Son kayıt (commit)
Son güncelleme
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...
Parser Loading commit data...
Python Loading commit data...
Tools Loading commit data...
.hgtags Loading commit data...
BUGS Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
TODO 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...