[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnumed-devel] compat Python 2.1 vs > 2.1
From: |
Karsten Hilbert |
Subject: |
[Gnumed-devel] compat Python 2.1 vs > 2.1 |
Date: |
Mon, 15 Mar 2004 16:51:42 +0100 |
User-agent: |
Mutt/1.3.22.1i |
Hi all,
I have committed gmPyCompat.py to pycommon. This file defines
things missing in earlier Python versions, starting from
Python 2.1.
Currently it sports defs for True/False and dict(). The defs
are noops if the defined entities already exist in your Python
version. So, if you need dict or True/False (everyone does, we
should return those from methods where appropriate) just say
from gmPyCompat import *
and merrily code away.
Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346
- [Gnumed-devel] compat Python 2.1 vs > 2.1,
Karsten Hilbert <=