Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
53c7a603
Commit
53c7a603
authored
Mar 20, 2008
by
Marc-André Lemburg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add documentation for updated Windows support in win32_ver().
Add documentation for linux_distribution() API.
parent
dbd61a2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
4 deletions
+23
-4
Doc/library/platform.rst
Doc/library/platform.rst
+23
-4
No files found.
Doc/library/platform.rst
View file @
53c7a603
...
...
@@ -195,8 +195,9 @@ Windows Platform
.. note::
This function only works if Mark Hammond's :mod:`win32all` package is installed
and (obviously) only runs on Win32 compatible platforms.
Note: this function works best with Mark Hammond's
:mod:`win32all` package installed, but also on Python 2.3 and
later. It obviously only runs on Win32 compatible platforms.
Win95/98 specific
...
...
@@ -230,13 +231,31 @@ Unix Platforms
--------------
.. function:: dist(distname='', version='', id='', supported_dists=('SuSE','debian','redhat','mandrake'))
.. function:: dist(distname='', version='', id='', supported_dists=('SuSE','debian','redhat','mandrake'
,...
))
Tries to determine the name of the OS distribution name Returns a tuple
``(distname, version, id)`` which defaults to the args given as parameters.
.. XXX Document linux_distribution()?
``supported_dists`` may be given to define the set of Linux
distributions to look for. It defaults to a list of currently
supported Linux distributions identified by their release file
name.
.. function:: linux_distribution(distname='', version='', id='', supported_dists=('SuSE','debian','redhat','mandrake',...), full_distribution_name=1)
Tries to determine the name of the Linux OS distribution name.
``supported_dists`` may be given to define the set of Linux
distributions to look for. It defaults to a list of currently
supported Linux distributions identified by their release file
name.
If ``full_distribution_name`` is true (default), the full
distribution read from the OS is returned. Otherwise the short name
taken from ``supported_dists`` is used.
Returns a tuple ``(distname,version,id)`` which defaults to the
args given as parameters.
.. function:: libc_ver(executable=sys.executable, lib='', version='', chunksize=2048)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment