File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2273,12 +2273,12 @@ def lifecycle_rules(self):
2273
2273
2274
2274
.. note::
2275
2275
2276
- The getter for this property returns a list which contains
2276
+ The getter for this property returns a generator which yields
2277
2277
*copies* of the bucket's lifecycle rules mappings. Mutating the
2278
- list or one of its dicts has no effect unless you then re-assign
2279
- the dict via the setter. E.g.:
2278
+ output dicts has no effect unless you then re-assign the dict via
2279
+ the setter. E.g.:
2280
2280
2281
- >>> rules = bucket.lifecycle_rules
2281
+ >>> rules = list( bucket.lifecycle_rules)
2282
2282
>>> rules.append({'origin': '/foo', ...})
2283
2283
>>> rules[1]['rule']['action']['type'] = 'Delete'
2284
2284
>>> del rules[0]
You can’t perform that action at this time.
0 commit comments