A few python questions
Erno Kuusela
erno at iki.fi
Tue Jun 20 16:15:36 EDT 2000
>>>>> "Suchandra" == Suchandra Thapa <ssthapa at midway.uchicago.edu> writes:
Suchandra> The first problem I've encountered is trying to
Suchandra> determine the size of a file.
os.path.getsize(path)
Suchandra> is there a way to get the file size of a file without
Suchandra> doing this or using the stat function from the os
Suchandra> module?
that works too, the indexing constants are in the stat module:
os.stat(path)[stat.ST_SIZE]
Suchandra> Also is it possible to use PyKDE or PyQT without
Suchandra> installing SIP?
(no idea)
Suchandra> Finally, is there some documentation for the python
Suchandra> interface to postgresql? The rpm package that comes
Suchandra> with redhat 6.2 doesn't have any documentation.
yes, the README that comes with the module documents the
postgresql-specific api. the most recent versions support DB-API
also. get it from <URL:ftp://ftp.druid.net/pub/distrib/>.
-- erno
More information about the Python-list
mailing list