Creating methods depending on packages that have been installed
- From: "C Gillespie" <csgcsg39@xxxxxxxxxxx>
- Date: Tue, 24 May 2005 17:41:22 +0100
Dear All,
What is the best way of creating methods depending on the packages that have
been installed.
A silly example is
try:
import somepack
class hello:
def __init__(self):
print 'hi'
def some(self):
print 'some'
except:
class hello:
def __init__(self):
print 'hi'
This is obviously not what I want - since it looks ugly and I wish to test
for lots packages.
Any ideas?
Thanks
Colin
.
- Prev by Date: Tk and raw_input segfault
- Next by Date: RE: line-by-line output from a subproce
- Previous by thread: Tk and raw_input segfault
- Next by thread: RE: line-by-line output from a subproce
- Index(es):
Relevant Pages
|
|