| Цитата(502 @ 15.8.2011, 14:49) | | - все методы публичны(public) |
| Цитата | Like most languages, Python has the concept of private elements:
Private functions, which can't be called from outside their module Private class methods, which can't be called from outside their class Private attributes, which can't be accessed from outside their class.
|
| Код | >>> import fileinfo >>> m = fileinfo.MP3FileInfo() >>> m.__parse("/music/_singles/kairo.mp3") 1 Traceback (innermost last): File "<interactive input>", line 1, in ? AttributeError: 'MP3FileInfo' instance has no attribute '__parse'
|
|