![]() |
|
![]() |
Python | Screenshots |
![]() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Index for Class: 1 2 3 4 5 6 |
Demonstrates private variables and methods Click image to read the source code. |
MyList: __init__, __add__ , __mul__ , __getitem__ , __len__ , __getslice__ , Click image to read the source code. |
How to call __getitem__ Click image to read the source code. |
Class operator add: instance + noninstance and noninstance + instance Click image to read the source code. |
__str__ , __repr__ Click image to read the source code. |
Class constructor parameter: dictionary Click image to read the source code. |
Add a class member variable on the fly Click image to read the source code. |
Class method Demo: define and call Click image to read the source code. |
Index for Class: 1 2 3 4 5 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Home| Contact Us |
Copyright 2003 - 04 Demo Source and Support. All rights reserved. |
All other trademarks are property of their respective owners. |