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 | |
---|---|---|
.. | ||
botmeta.json | 5 years ago | |
botmeta.py | 5 years ago | |
changelog.json | 5 years ago | |
changelog.py | 5 years ago | |
configure-remoting-ps1.json | 5 years ago | |
configure-remoting-ps1.py | 5 years ago | |
deprecated-config.json | 5 years ago | |
deprecated-config.py | 5 years ago | |
docs-build.json | 5 years ago | |
docs-build.py | 5 years ago | |
no-unwanted-files.json | 5 years ago | |
no-unwanted-files.py | 5 years ago | |
obsolete-files.json | 5 years ago | |
obsolete-files.py | 5 years ago | |
package-data.json | 5 years ago | |
package-data.py | 5 years ago | |
release-names.json | 5 years ago | |
release-names.py | 5 years ago | |
required-and-default-attributes.json | 5 years ago | |
required-and-default-attributes.py | 5 years ago | |
skip.txt | 5 years ago | |
test-constraints.json | 5 years ago | |
test-constraints.py | 5 years ago | |
update-bundled.json | 5 years ago | |
update-bundled.py | 5 years ago |