mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39b3942048
Left hand side slicing is confusing and slower but maybe more memory efficient in some circumstances. There is one case where it adds to code safety: when it's used to substitute a different list in place of a slice of the original list and the original list could have been bound to a different variable in some other code. (The most likely case of this is when it's a global variable and some other code might import that variable name). Because of the confusion factor we think it should only be used for the safety case or where it's been benchmarked and shown to have some sort of documentatble improvement. At the moment, only one piece of code falls into those categories so this PR removes all the other instances of left hand side slicing. |
5 years ago | |
---|---|---|
.. | ||
aws | 5 years ago | |
common | 5 years ago | |
compat | 5 years ago | |
docker | 5 years ago | |
ecs | 5 years ago | |
k8s | 5 years ago | |
net_tools | 5 years ago | |
network | 5 years ago | |
ansible_tower.py | 5 years ago | |
azure_rm_common.py | 5 years ago | |
azure_rm_common_rest.py | 5 years ago | |
cloud.py | 5 years ago | |
cloudstack.py | 5 years ago | |
crypto.py | 5 years ago | |
database.py | 5 years ago | |
ec2.py | 5 years ago | |
hcloud.py | 5 years ago | |
mysql.py | 5 years ago | |
postgres.py | 5 years ago | |
rabbitmq.py | 5 years ago | |
vmware.py | 5 years ago |