Python Learning Yummain Module

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.