Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tutorius
diff options
context:
space:
mode:
authorerick <erick@sugar-dev-erick.(none)>2009-10-24 20:32:16 (GMT)
committer erick <erick@sugar-dev-erick.(none)>2009-10-24 20:32:16 (GMT)
commit0e84161f76fb822ed2424caa354c5acb82ea7a7a (patch)
treefdcd126e9f296be39b4a6e43d77bf0c0ade257f0 /tutorius
parente9fd92d03bb176cdab9fc3956ecd8cebdc3cc085 (diff)
Added comment on TArrayOneTypeProperty for append and delete operationslp426452
Diffstat (limited to 'tutorius')
-rw-r--r--tutorius/properties.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tutorius/properties.py b/tutorius/properties.py
index 137e756..3af728b 100644
--- a/tutorius/properties.py
+++ b/tutorius/properties.py
@@ -344,7 +344,13 @@ class TPositionProperty(TutoriusProperty):######################################
class TArrayOneTypeProperty(TutoriusProperty):######################################################
"""
- Represents an array list of Tutorius_properties. All the elements in the list must have the same type. The list must not be empty
+ Represents an array list of Tutorius_properties. All the elements in the list must have the same type. The list must not be empty.
+
+ For common operations on a generic TPropContainer <t> with a one type array <array>
+ property do the following:
+
+ Append: t.array = t.array + (e,) # the comma is mandatory in case <e> is also a tuple
+ Delete: t.array = t.array[:i] + t.array[i+1:] # where <i> is the element to delete
"""
def __init__(self, value, tutoProp):
TutoriusProperty.__init__(self)