Mercurial > cpython-lru_cache-weakref
annotate Lib/statvfs.py @ 80661:94de77bd0b4b 2.7
Issue #16194: document imp.load_dynamic problems
when read several extension modules from the same binary object file.
| author | Andrew Svetlov <andrew.svetlov@gmail.com> |
|---|---|
| date | Thu, 29 Nov 2012 19:51:28 +0200 |
| parents | 593b649904b8 |
| children |
| rev | line source |
|---|---|
|
11707
6f4146846337
The third and final doc-string sweep by Ka-Ping Yee.
Guido van Rossum <guido@python.org>
parents:
10135
diff
changeset
|
1 """Constants for interpreting the results of os.statvfs() and os.fstatvfs().""" |
|
47075
593b649904b8
Deprecated statvfs for removal in 3.0.
Brett Cannon <bcannon@gmail.com>
parents:
16657
diff
changeset
|
2 from warnings import warnpy3k |
|
593b649904b8
Deprecated statvfs for removal in 3.0.
Brett Cannon <bcannon@gmail.com>
parents:
16657
diff
changeset
|
3 warnpy3k("the statvfs module has been removed in Python 3.0", stacklevel=2) |
|
593b649904b8
Deprecated statvfs for removal in 3.0.
Brett Cannon <bcannon@gmail.com>
parents:
16657
diff
changeset
|
4 del warnpy3k |
|
9792
fe701969bc2c
Constants for [f]statvfs() (new in posixmodule.c) by Steve Clift.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
5 |
|
9833
e5cb157ff093
Added some more comments.
Guido van Rossum <guido@python.org>
parents:
9792
diff
changeset
|
6 # Indices for statvfs struct members in the tuple returned by |
|
e5cb157ff093
Added some more comments.
Guido van Rossum <guido@python.org>
parents:
9792
diff
changeset
|
7 # os.statvfs() and os.fstatvfs(). |
|
9792
fe701969bc2c
Constants for [f]statvfs() (new in posixmodule.c) by Steve Clift.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
8 |
|
15872
3685ef2a55a4
Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents:
11707
diff
changeset
|
9 F_BSIZE = 0 # Preferred file system block size |
|
3685ef2a55a4
Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents:
11707
diff
changeset
|
10 F_FRSIZE = 1 # Fundamental file system block size |
|
3685ef2a55a4
Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents:
11707
diff
changeset
|
11 F_BLOCKS = 2 # Total number of file system blocks (FRSIZE) |
|
3685ef2a55a4
Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents:
11707
diff
changeset
|
12 F_BFREE = 3 # Total number of free blocks |
|
3685ef2a55a4
Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents:
11707
diff
changeset
|
13 F_BAVAIL = 4 # Free blocks available to non-superuser |
|
3685ef2a55a4
Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents:
11707
diff
changeset
|
14 F_FILES = 5 # Total number of file nodes |
|
3685ef2a55a4
Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents:
11707
diff
changeset
|
15 F_FFREE = 6 # Total number of free file nodes |
|
3685ef2a55a4
Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents:
11707
diff
changeset
|
16 F_FAVAIL = 7 # Free nodes available to non-superuser |
|
3685ef2a55a4
Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents:
11707
diff
changeset
|
17 F_FLAG = 8 # Flags (see your local statvfs man page) |
|
3685ef2a55a4
Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents:
11707
diff
changeset
|
18 F_NAMEMAX = 9 # Maximum file name length |
