• Armin Rigo's avatar
    SF patch #1390657: · fd163f92
    Armin Rigo yazdı
    * set sq_repeat and sq_concat to NULL for user-defined new-style
      classes, as a way to fix a number of related problems.  See
      test_descr.notimplemented()).  One of these problems was fixed
      in r25556 and r25557 but many more existed; this is a general
      fix and thus reverts r25556-r25557.
    
    * to avoid having PySequence_Repeat()/PySequence_Concat() failing
      on user-defined classes, they now fall back to nb_add/nb_mul if
      sq_concat/sq_repeat are not defined and the arguments appear to
      be sequences.
    
    * added tests.
    
    Backport candidate.
    fd163f92
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...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
RISCOS Loading commit data...
Tools Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README Loading commit data...
aclocal.m4 Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...