@@ -361,7 +361,7 @@ This module provides the following functions.
361
361
are not given.
362
362
363
363
364
- .. function :: new_compiler(plat=None, compiler=None, verbose=0 , dry_run=0 , force=0 )
364
+ .. function :: new_compiler(plat=None, compiler=None, verbose=False , dry_run=False , force=False )
365
365
366
366
Factory function to generate an instance of some CCompiler subclass for the
367
367
supplied platform/compiler combination. *plat * defaults to ``os.name `` (eg.
@@ -383,7 +383,7 @@ This module provides the following functions.
383
383
to :command: `build `, :command: `build_ext `, :command: `build_clib `).
384
384
385
385
386
- .. class :: CCompiler([verbose=0 , dry_run=0 , force=0 ])
386
+ .. class :: CCompiler([verbose=False , dry_run=False , force=False ])
387
387
388
388
The abstract base class :class: `CCompiler ` defines the interface that must be
389
389
implemented by real compiler classes. The class also has some utility methods
@@ -517,7 +517,7 @@ This module provides the following functions.
517
517
list) to do the job.
518
518
519
519
520
- .. method :: CCompiler.find_library_file(dirs, lib[, debug=0 ])
520
+ .. method :: CCompiler.find_library_file(dirs, lib[, debug=False ])
521
521
522
522
Search the specified list of directories for a static or shared library file
523
523
*lib * and return the full path to that file. If *debug * is true, look for a
@@ -580,7 +580,7 @@ This module provides the following functions.
580
580
The following methods invoke stages in the build process.
581
581
582
582
583
- .. method :: CCompiler.compile(sources[, output_dir=None, macros=None, include_dirs=None, debug=0 , extra_preargs=None, extra_postargs=None, depends=None])
583
+ .. method :: CCompiler.compile(sources[, output_dir=None, macros=None, include_dirs=None, debug=False , extra_preargs=None, extra_postargs=None, depends=None])
584
584
585
585
Compile one or more source files. Generates object files (e.g. transforms a
586
586
:file: `.c ` file to a :file: `.o ` file.)
@@ -624,7 +624,7 @@ This module provides the following functions.
624
624
Raises :exc: `CompileError ` on failure.
625
625
626
626
627
- .. method :: CCompiler.create_static_lib(objects, output_libname[, output_dir=None, debug=0 , target_lang=None])
627
+ .. method :: CCompiler.create_static_lib(objects, output_libname[, output_dir=None, debug=False , target_lang=None])
628
628
629
629
Link a bunch of stuff together to create a static library file. The "bunch of
630
630
stuff" consists of the list of object files supplied as *objects *, the extra
@@ -648,7 +648,7 @@ This module provides the following functions.
648
648
Raises :exc: `LibError ` on failure.
649
649
650
650
651
- .. method :: CCompiler.link(target_desc, objects, output_filename[, output_dir=None, libraries=None, library_dirs=None, runtime_library_dirs=None, export_symbols=None, debug=0 , extra_preargs=None, extra_postargs=None, build_temp=None, target_lang=None])
651
+ .. method :: CCompiler.link(target_desc, objects, output_filename[, output_dir=None, libraries=None, library_dirs=None, runtime_library_dirs=None, export_symbols=None, debug=False , extra_preargs=None, extra_postargs=None, build_temp=None, target_lang=None])
652
652
653
653
Link a bunch of stuff together to create an executable or shared library file.
654
654
@@ -690,21 +690,21 @@ This module provides the following functions.
690
690
Raises :exc: `LinkError ` on failure.
691
691
692
692
693
- .. method :: CCompiler.link_executable(objects, output_progname[, output_dir=None, libraries=None, library_dirs=None, runtime_library_dirs=None, debug=0 , extra_preargs=None, extra_postargs=None, target_lang=None])
693
+ .. method :: CCompiler.link_executable(objects, output_progname[, output_dir=None, libraries=None, library_dirs=None, runtime_library_dirs=None, debug=False , extra_preargs=None, extra_postargs=None, target_lang=None])
694
694
695
695
Link an executable. *output_progname * is the name of the file executable, while
696
696
*objects * are a list of object filenames to link in. Other arguments are as for
697
697
the :meth: `link ` method.
698
698
699
699
700
- .. method :: CCompiler.link_shared_lib(objects, output_libname[, output_dir=None, libraries=None, library_dirs=None, runtime_library_dirs=None, export_symbols=None, debug=0 , extra_preargs=None, extra_postargs=None, build_temp=None, target_lang=None])
700
+ .. method :: CCompiler.link_shared_lib(objects, output_libname[, output_dir=None, libraries=None, library_dirs=None, runtime_library_dirs=None, export_symbols=None, debug=False , extra_preargs=None, extra_postargs=None, build_temp=None, target_lang=None])
701
701
702
702
Link a shared library. *output_libname * is the name of the output library,
703
703
while *objects * is a list of object filenames to link in. Other arguments are
704
704
as for the :meth: `link ` method.
705
705
706
706
707
- .. method :: CCompiler.link_shared_object(objects, output_filename[, output_dir=None, libraries=None, library_dirs=None, runtime_library_dirs=None, export_symbols=None, debug=0 , extra_preargs=None, extra_postargs=None, build_temp=None, target_lang=None])
707
+ .. method :: CCompiler.link_shared_object(objects, output_filename[, output_dir=None, libraries=None, library_dirs=None, runtime_library_dirs=None, export_symbols=None, debug=False , extra_preargs=None, extra_postargs=None, build_temp=None, target_lang=None])
708
708
709
709
Link a shared object. *output_filename * is the name of the shared object that
710
710
will be created, while *objects * is a list of object filenames to link in.
@@ -726,28 +726,28 @@ This module provides the following functions.
726
726
use by the various concrete subclasses.
727
727
728
728
729
- .. method :: CCompiler.executable_filename(basename[, strip_dir=0 , output_dir=''])
729
+ .. method :: CCompiler.executable_filename(basename[, strip_dir=False , output_dir=''])
730
730
731
731
Returns the filename of the executable for the given *basename *. Typically for
732
732
non-Windows platforms this is the same as the basename, while Windows will get
733
733
a :file: `.exe ` added.
734
734
735
735
736
- .. method :: CCompiler.library_filename(libname[, lib_type='static', strip_dir=0 , output_dir=''])
736
+ .. method :: CCompiler.library_filename(libname[, lib_type='static', strip_dir=False , output_dir=''])
737
737
738
738
Returns the filename for the given library name on the current platform. On Unix
739
739
a library with *lib_type * of ``'static' `` will typically be of the form
740
740
:file: `liblibname.a `, while a *lib_type * of ``'dynamic' `` will be of the form
741
741
:file: `liblibname.so `.
742
742
743
743
744
- .. method :: CCompiler.object_filenames(source_filenames[, strip_dir=0 , output_dir=''])
744
+ .. method :: CCompiler.object_filenames(source_filenames[, strip_dir=False , output_dir=''])
745
745
746
746
Returns the name of the object files for the given source files.
747
747
*source_filenames * should be a list of filenames.
748
748
749
749
750
- .. method :: CCompiler.shared_object_filename(basename[, strip_dir=0 , output_dir=''])
750
+ .. method :: CCompiler.shared_object_filename(basename[, strip_dir=False , output_dir=''])
751
751
752
752
Returns the name of a shared object file for the given file name *basename *.
753
753
@@ -884,7 +884,7 @@ This module provides a few functions for creating archive files, such as
884
884
tarballs or zipfiles.
885
885
886
886
887
- .. function :: make_archive(base_name, format[, root_dir=None, base_dir=None, verbose=0 , dry_run=0 ])
887
+ .. function :: make_archive(base_name, format[, root_dir=None, base_dir=None, verbose=False , dry_run=False ])
888
888
889
889
Create an archive file (eg. ``zip `` or ``tar ``). *base_name * is the name of
890
890
the file to create, minus any format-specific extension; *format * is the
@@ -900,7 +900,7 @@ tarballs or zipfiles.
900
900
Added support for the ``xztar `` format.
901
901
902
902
903
- .. function :: make_tarball(base_name, base_dir[, compress='gzip', verbose=0 , dry_run=0 ])
903
+ .. function :: make_tarball(base_name, base_dir[, compress='gzip', verbose=False , dry_run=False ])
904
904
905
905
'Create an (optional compressed) archive as a tar file from all files in and
906
906
under *base_dir *. *compress * must be ``'gzip' `` (the default),
@@ -915,7 +915,7 @@ tarballs or zipfiles.
915
915
Added support for the ``xz `` compression.
916
916
917
917
918
- .. function :: make_zipfile(base_name, base_dir[, verbose=0 , dry_run=0 ])
918
+ .. function :: make_zipfile(base_name, base_dir[, verbose=False , dry_run=False ])
919
919
920
920
Create a zip file from all files in and under *base_dir *. The output zip file
921
921
will be named *base_name * + :file: `.zip `. Uses either the :mod: `zipfile ` Python
@@ -978,7 +978,7 @@ This module provides functions for operating on directories and trees of
978
978
directories.
979
979
980
980
981
- .. function :: mkpath(name[, mode=0o777, verbose=0 , dry_run=0 ])
981
+ .. function :: mkpath(name[, mode=0o777, verbose=False , dry_run=False ])
982
982
983
983
Create a directory and any missing ancestor directories. If the directory
984
984
already exists (or if *name * is the empty string, which means the current
@@ -989,7 +989,7 @@ directories.
989
989
directories actually created.
990
990
991
991
992
- .. function :: create_tree(base_dir, files[, mode=0o777, verbose=0 , dry_run=0 ])
992
+ .. function :: create_tree(base_dir, files[, mode=0o777, verbose=False , dry_run=False ])
993
993
994
994
Create all the empty directories under *base_dir * needed to put *files * there.
995
995
*base_dir * is just the name of a directory which doesn't necessarily exist
@@ -999,7 +999,7 @@ directories.
999
999
:func: `mkpath `.
1000
1000
1001
1001
1002
- .. function :: copy_tree(src, dst[, preserve_mode=1 , preserve_times=1 , preserve_symlinks=0 , update=0 , verbose=0 , dry_run=0 ])
1002
+ .. function :: copy_tree(src, dst[, preserve_mode=True , preserve_times=True , preserve_symlinks=False , update=False , verbose=False , dry_run=False ])
1003
1003
1004
1004
Copy an entire directory tree *src * to a new location *dst *. Both *src * and
1005
1005
*dst * must be directory names. If *src * is not a directory, raise
@@ -1026,7 +1026,7 @@ directories.
1026
1026
.. versionchanged :: 3.3.1
1027
1027
NFS files are ignored.
1028
1028
1029
- .. function :: remove_tree(directory[, verbose=0 , dry_run=0 ])
1029
+ .. function :: remove_tree(directory[, verbose=False , dry_run=False ])
1030
1030
1031
1031
Recursively remove *directory * and all files and directories underneath it. Any
1032
1032
errors are ignored (apart from being reported to ``sys.stdout `` if *verbose * is
@@ -1043,7 +1043,7 @@ directories.
1043
1043
This module contains some utility functions for operating on individual files.
1044
1044
1045
1045
1046
- .. function :: copy_file(src, dst[, preserve_mode=1 , preserve_times=1 , update=0 , link=None, verbose=0 , dry_run=0 ])
1046
+ .. function :: copy_file(src, dst[, preserve_mode=True , preserve_times=True , update=False , link=None, verbose=False , dry_run=False ])
1047
1047
1048
1048
Copy file *src * to *dst *. If *dst * is a directory, then *src * is copied there
1049
1049
with the same name; otherwise, it must be a filename. (If the file exists, it
@@ -1216,7 +1216,7 @@ other utility module.
1216
1216
.. % Should probably be moved into the standard library.
1217
1217
1218
1218
1219
- .. function :: execute(func, args[, msg=None, verbose=0 , dry_run=0 ])
1219
+ .. function :: execute(func, args[, msg=None, verbose=False , dry_run=False ])
1220
1220
1221
1221
Perform some action that affects the outside world (for instance, writing to the
1222
1222
filesystem). Such actions are special because they are disabled by the
@@ -1234,7 +1234,7 @@ other utility module.
1234
1234
:exc: `ValueError ` if *val * is anything else.
1235
1235
1236
1236
1237
- .. function :: byte_compile(py_files[, optimize=0, force=0 , prefix=None, base_dir=None, verbose=1 , dry_run=0 , direct=None])
1237
+ .. function :: byte_compile(py_files[, optimize=0, force=False , prefix=None, base_dir=None, verbose=True , dry_run=False , direct=None])
1238
1238
1239
1239
Byte-compile a collection of Python source files to :file: `.pyc ` files in a
1240
1240
:file: `__pycache__ ` subdirectory (see :pep: `3147 ` and :pep: `488 `).
0 commit comments