Staging
v0.5.1
https://github.com/python/cpython
Revision 8284c4a7fb27efd55323513572e247a895a35ae1 authored by Raymond Hettinger on 06 February 2008, 20:47:09 UTC, committed by Raymond Hettinger on 06 February 2008, 20:47:09 UTC
In its previous form, it always returned instance of frozenset which makes this ABC
nearly useless as a mixin.  In its new form, it needs to be able to assume that the
constructor will take a frozenset input.  This will usually be true.  If it is not,
then only one method (this one) will need to be overriden by the subclass to let
it know about the unique constructor signature.  Will add info on this to the docs.
1 parent ebcee3f
History
Tip revision: 8284c4a7fb27efd55323513572e247a895a35ae1 authored by Raymond Hettinger on 06 February 2008, 20:47:09 UTC
Fix-up the _from_iterable() method to return instances of the subclass where it is used.
Tip revision: 8284c4a
File Mode Size
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
Tools
.hgsvnexternals -rw-r--r-- 65 bytes
.hgtags -rw-r--r-- 2.6 KB
INTBENCH -rw-r--r-- 941 bytes
LICENSE -rw-r--r-- 13.5 KB
Makefile.pre.in -rw-r--r-- 36.4 KB
README -rw-r--r-- 5.0 KB
RELNOTES -rw-r--r-- 2.7 KB
configure -rwxr-xr-x 645.7 KB
configure.in -rw-r--r-- 96.8 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 28.2 KB
runtests.sh -rwxr-xr-x 2.1 KB
setup.py -rw-r--r-- 68.4 KB

README

back to top