arnoldmashava / winpdb

Automatically exported from code.google.com/p/winpdb
0 stars 0 forks source link

Double leading underscores used for private methods/attributes instead of single leading underscores #20

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The classes in the source code for winpdb uses double leading underscores to 
indicate private methods instead of single leading underscores. For example, 
"CConsoleInternal.__parse_bp_arg" instead of "CConsoleInternal._parse_bp_arg". 
Double leading underscores leads to name-mangling and difficulties subclassing. 
See PEP 8 for more information.

http://www.python.org/dev/peps/pep-0008/

Unless there is a specific reason why these attributes and methods should not 
be subclassed, they should be renamed to use single underscores only.

Original issue reported on code.google.com by chris.la...@gmail.com on 19 May 2011 at 6:50