Definition: ' yum ' command-line interface.
- Yummain. Main (
args)
-
Run the Yum program from a command line interface.
-
- Yummain. Hotshot (
func,
*args,
**kwargs)
-
-
profile the given function using the hotshot Profiler.
parameters: |
func , Haven function to profile |
returns: |
< Span style= "Font-family:microsoft Yahei; font-size:15px ">the return code given by the hotshot profiler |
-
- yummain . cprof (
func ,
*args ,
**kwargs )
-
-
profile the given function using the Cprof Profiler.
parameters: |
func , Haven function to profile |
returns: |
< Span style= "Font-family:microsoft Yahei; font-size:15px ">the return code given by the CPROF profiler |
-
- yumm Ain. print_stats (
stats )
-
-
print out information from a stats object.
parameters: |
stats , haven stats object to print information from |
-
- Yummain. User_main (
args,
exit_code=false)
-
Call one of the multiple main () functions based on environment variables.
Parameters: |
- args –command line arguments passed to Yum
- exit_code –if exit_code is True, this function would exit Python with its exit code when it has finished Executing. Otherwise, it'll return its exit code.
|
Returns: |
The exit code from Yum execution |
Python Learning Yummain Module