[libvirt] [PATCH 10/10] python: Mark event callback wrappers as private

Cole Robinson crobinso at redhat.com
Mon Jun 20 19:34:07 UTC 2011


On 06/19/2011 09:45 PM, Daniel Veillard wrote:
> On Wed, Jun 15, 2011 at 09:23:19PM -0400, Cole Robinson wrote:
>> These functions aren't intended to be called directly by users, so mark
>> them as private.
> 
>   Hum, should that be one _ or two __ ?
> But ACK to cleanup !
> 

Python convention is anything starting with an underscore is considered
private. It only attempts to enforce this if using double underscore in the
name of a class method/attribute, which causes some auto name mangling.
However since these aren't class methods, double vs. single underscore isn't
any different.

Thanks,
Cole




More information about the libvir-list mailing list