Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9cff427

Browse files
committed
Hide or remove user-visible XXX notes from distutils doc (#13716).
Requested by Florent Xicluna with the rationale that they make the docs look unfinished. I’ve also removed a few XXX notes that were not visible in the HTML but could waste contributors’ time by suggesting improvements that are never going to happen for distutils.
1 parent 63e6c32 commit 9cff427

1 file changed

Lines changed: 11 additions & 25 deletions

File tree

Doc/distutils/apiref.rst

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,9 @@ This module provides the following functions.
449449
Define a preprocessor macro for all compilations driven by this compiler object.
450450
The optional parameter *value* should be a string; if it is not supplied, then
451451
the macro will be defined without an explicit value and the exact outcome
452-
depends on the compiler used (XXX true? does ANSI say anything about this?)
452+
depends on the compiler used.
453+
454+
.. XXX true? does ANSI say anything about this?
453455
454456
455457
.. method:: CCompiler.undefine_macro(name)
@@ -603,7 +605,9 @@ This module provides the following functions.
603605

604606
*output_libname* should be a library name, not a filename; the filename will be
605607
inferred from the library name. *output_dir* is the directory where the library
606-
file will be put. XXX defaults to what?
608+
file will be put.
609+
610+
.. XXX defaults to what?
607611
608612
*debug* is a boolean; if true, debugging information will be included in the
609613
library (note that on most platforms, it is the compile step where this matters:
@@ -723,30 +727,29 @@ This module provides the following functions.
723727

724728
Invokes :func:`distutils.util.execute` This method invokes a Python function
725729
*func* with the given arguments *args*, after logging and taking into account
726-
the *dry_run* flag. XXX see also.
730+
the *dry_run* flag.
727731

728732

729733
.. method:: CCompiler.spawn(cmd)
730734

731735
Invokes :func:`distutils.util.spawn`. This invokes an external process to run
732-
the given command. XXX see also.
736+
the given command.
733737

734738

735739
.. method:: CCompiler.mkpath(name[, mode=511])
736740

737741
Invokes :func:`distutils.dir_util.mkpath`. This creates a directory and any
738-
missing ancestor directories. XXX see also.
742+
missing ancestor directories.
739743

740744

741745
.. method:: CCompiler.move_file(src, dst)
742746

743-
Invokes :meth:`distutils.file_util.move_file`. Renames *src* to *dst*. XXX see
744-
also.
747+
Invokes :meth:`distutils.file_util.move_file`. Renames *src* to *dst*.
745748

746749

747750
.. method:: CCompiler.announce(msg[, level=1])
748751

749-
Write a message using :func:`distutils.log.debug`. XXX see also.
752+
Write a message using :func:`distutils.log.debug`.
750753

751754

752755
.. method:: CCompiler.warn(msg)
@@ -874,8 +877,6 @@ tarballs or zipfiles.
874877
prefix of all files and directories in the archive. *root_dir* and *base_dir*
875878
both default to the current directory. Returns the name of the archive file.
876879

877-
.. XXX This should be changed to support bz2 files.
878-
879880

880881
.. function:: make_tarball(base_name, base_dir[, compress='gzip', verbose=0, dry_run=0])
881882

@@ -887,8 +888,6 @@ tarballs or zipfiles.
887888
possibly plus the appropriate compression extension (:file:`.gz`, :file:`.bz2`
888889
or :file:`.Z`). Return the output filename.
889890

890-
.. XXX This should be replaced with calls to the :mod:`tarfile` module.
891-
892891

893892
.. function:: make_zipfile(base_name, base_dir[, verbose=0, dry_run=0])
894893

@@ -1000,8 +999,6 @@ directories.
1000999
errors are ignored (apart from being reported to ``sys.stdout`` if *verbose* is
10011000
true).
10021001

1003-
.. XXX Some of this could be replaced with the shutil module?
1004-
10051002

10061003
:mod:`distutils.file_util` --- Single file operations
10071004
=====================================================
@@ -1115,8 +1112,6 @@ other utility module.
11151112

11161113
* ``macosx-10.6-intel``
11171114

1118-
.. % XXX isn't this also provided by some other non-distutils module?
1119-
11201115

11211116
.. function:: convert_path(pathname)
11221117

@@ -1321,8 +1316,6 @@ provides the following additional features:
13211316
the "negative alias" of :option:`--verbose`, then :option:`--quiet` on the
13221317
command line sets *verbose* to false.
13231318

1324-
.. XXX Should be replaced with optparse
1325-
13261319
.. function:: fancy_getopt(options, negative_opt, object, args)
13271320

13281321
Wrapper function. *options* is a list of ``(long_option, short_option,
@@ -1338,9 +1331,6 @@ provides the following additional features:
13381331

13391332
Wraps *text* to less than *width* wide.
13401333

1341-
.. XXX Should be replaced with :mod:`textwrap` (which is available in Python
1342-
2.3 and later).
1343-
13441334

13451335
.. class:: FancyGetopt([option_table=None])
13461336

@@ -1403,10 +1393,6 @@ filesystem and building lists of files.
14031393
:synopsis: A simple logging mechanism, 282-style
14041394

14051395

1406-
.. XXX Should be replaced with standard :mod:`logging` module.
1407-
1408-
1409-
14101396
:mod:`distutils.spawn` --- Spawn a sub-process
14111397
==============================================
14121398

0 commit comments

Comments
 (0)