davea at ieee.org
Sat Apr 4 17:23:52 CEST 2009
Hrvoje Niksic wrote:
> Sreejith K <sreejithemk at gmail.com> writes:
>> Python's statvfs module contains the following indexes to use with
>> os.statvfs() that contains the specified information
>> Preferred file system block size.
>> Maximum file name length.
>> Can anyone tell me (or give me some links to know) what are these
>> values ? The first three I know, I need to know about the rest....
The following web page describes them:
but you already knew that much. So what are you really asking for?
> You can simply print them, they are integers:
>>>> import statvfs
But those values may be specific to a particular python implementation.
No reason to assume they'd be the same across OS platforms, or between
versions 2.5 and 2.6. The whole thing is deprecated, and is eliminated
The term we used to use for these is "magic numbers." Using
magic-numbers directly in your code is a good way to ensure future time
More information about the Python-list