Staging
v0.8.1
https://github.com/python/cpython
Revision ba756b5a2b3d3d127420805c7aa096abc9eccd7b authored by Benjamin Peterson on 02 April 2008, 02:27:22 UTC, committed by Benjamin Peterson on 02 April 2008, 02:27:22 UTC
........
  r62095 | amaury.forgeotdarc | 2008-04-01 17:37:33 -0500 (Tue, 01 Apr 2008) | 5 lines

  Fix and enable a skipped test:
  with python 2.6, enumerating bytes yields 1-char strings, not numbers.

  Don't merge this into the py3k branch.
........
  r62099 | amaury.forgeotdarc | 2008-04-01 19:25:14 -0500 (Tue, 01 Apr 2008) | 14 lines

  Correct the apparent refleak in test_io:
  When cls is an ABCMeta, every call to isinstance(x, cls)
  records type(x) in the cls._abc_cache of cls_abc_negative_cache.
  So we clear these caches at the end of the test.

  inspect.isabstract() is not the correct test for all ABCs, because there is no @abstractmethod in io.py (why?)
  isinstance(cls, ABCMeta) would be more exact, but it fails with an infinite recursion.
  So I used a hack to determine whether a class is an ABCMeta.

  The true correction would be to turn cls._abc_cache &co into a WeakSet, as py3k does.
  But classic classes are not weak referenceable...

  Of course, this change should not be merged into the py3k branch.
........
1 parent b4febc7
History
Tip revision: ba756b5a2b3d3d127420805c7aa096abc9eccd7b authored by Benjamin Peterson on 02 April 2008, 02:27:22 UTC
Blocked revisions 62095,62099 via svnmerge
Tip revision: ba756b5
File Mode Size
stringlib
abstract.c -rw-r--r-- 59.3 KB
boolobject.c -rw-r--r-- 4.4 KB
bytes_methods.c -rw-r--r-- 15.7 KB
bytesobject.c -rw-r--r-- 93.2 KB
cellobject.c -rw-r--r-- 2.8 KB
classobject.c -rw-r--r-- 14.5 KB
cobject.c -rw-r--r-- 3.9 KB
codeobject.c -rw-r--r-- 17.5 KB
complexobject.c -rw-r--r-- 24.1 KB
descrobject.c -rw-r--r-- 32.6 KB
dictnotes.txt -rw-r--r-- 11.9 KB
dictobject.c -rw-r--r-- 70.3 KB
doubledigits.c -rw-r--r-- 12.0 KB
enumobject.c -rw-r--r-- 9.4 KB
exceptions.c -rw-r--r-- 54.1 KB
fileobject.c -rw-r--r-- 11.8 KB
floatobject.c -rw-r--r-- 46.9 KB
frameobject.c -rw-r--r-- 25.4 KB
funcobject.c -rw-r--r-- 23.4 KB
genobject.c -rw-r--r-- 9.5 KB
iterobject.c -rw-r--r-- 5.2 KB
listobject.c -rw-r--r-- 66.0 KB
listsort.txt -rw-r--r-- 31.0 KB
longobject.c -rw-r--r-- 93.7 KB
memoryobject.c -rw-r--r-- 17.4 KB
methodobject.c -rw-r--r-- 7.8 KB
moduleobject.c -rw-r--r-- 6.3 KB
object.c -rw-r--r-- 41.6 KB
obmalloc.c -rw-r--r-- 56.8 KB
rangeobject.c -rw-r--r-- 18.9 KB
setobject.c -rw-r--r-- 54.7 KB
sliceobject.c -rw-r--r-- 8.7 KB
stringobject.c -rw-r--r-- 83.1 KB
structseq.c -rw-r--r-- 12.4 KB
tupleobject.c -rw-r--r-- 21.7 KB
typeobject.c -rw-r--r-- 161.6 KB
unicodectype.c -rw-r--r-- 16.4 KB
unicodeobject.c -rw-r--r-- 248.9 KB
unicodetype_db.h -rw-r--r-- 91.3 KB
weakrefobject.c -rw-r--r-- 27.9 KB

back to top