[Python-Dev] Py2.5 release schedule

Barry Warsaw barry at python.org
Sun Jul 30 23:07:22 CEST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Jul 30, 2006, at 4:27 PM, Fred L. Drake, Jr. wrote:

> On Sunday 30 July 2006 16:17, Georg Brandl wrote:
>> The second "type" seems to be superfluous. ;)
>
> I was thinking it suggested there was a local named "type".  But if  
> not, yeah.
>
> I get the impression Barry's pretty new to this "Python thing."   
> Wonder what
> he's been up to.  ;-)

As I mentioned, this has to be compatible with Python 2.1:

Python 2.1.3+ (#1, Apr 25 2005, 22:52:02)
[GCC 3.3.5-20050130 (Gentoo Linux 3.3.5.20050130-r1,  
ssp-3.3.5.20050130-1, pie- on linux2
Type "copyright", "credits" or "license" for more information.
 >>> isinstance(Exception, type)
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
TypeError: isinstance() arg 2 must be a class or type
 >>> isinstance(Exception, type(type))
0

Python 2.5b2 (trunk:50835, Jul 25 2006, 23:27:51)
[GCC 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> isinstance(Exception, type)
True
 >>> isinstance(Exception, type(type))
True

I thought that was rather clever actually. :)

- -Barry

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iQCVAwUBRM0fj3EjvBPtnXfVAQI1AQP+ID6BSbJ/4TL7cizvMjrxHD6JVjFKBzD6
7FCwXpvELQt7vlDWGrXWi+Lai/93nGqD42VYRSgtHqFP2gMYKEkM+TaLl91YFuSh
B6jO7l5wW7SGlyLQQiibmPBp8uGDG30F1ylM9e9y9c69Hy1LJEa1sG8/AS/FiA+n
fpQ/WlTNRvA=
=uGDZ
-----END PGP SIGNATURE-----


More information about the Python-Dev mailing list