码迷,mamicode.com
首页 > 编程语言 > 详细

python学习之yummain模块

时间:2017-10-27 13:31:32      阅读:246      评论:0      收藏:0      [点我收藏+]

标签:rgs   sed   frame   sim   sof   variables   void   scn   exec   

定义:`yum`的命令行接口。

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 – the function to profile
Returns: the return code given by the hotshot profiler
yummain.cprof(func, *args, **kwargs)

Profile the given function using the cprof profiler.

Parameters: func – the function to profile
Returns: the return code given by the cprof profiler
yummain.print_stats(stats)

Print out information from a Stats object.

Parameters: stats – the 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 into yum
  • exit_code – if exit_code is True, this function will exit python with its exit code when it has finished executing. Otherwise, it will return its exit code.
Returns:

the exit code from yum execution

python学习之yummain模块

标签:rgs   sed   frame   sim   sof   variables   void   scn   exec   

原文地址:http://www.cnblogs.com/leomei91/p/7742303.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!