Timeline for Adding some config to a juniper device
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 29, 2015 at 20:55 | history | edited | 200_success | CC BY-SA 3.0 |
Took @mescalinum's suggestion to be more cautious
|
Jul 29, 2015 at 20:53 | comment | added | fferri |
Also note that for any string s , s.startswith('') is always true, so you treat also the empty answer as yes .
|
|
Jul 29, 2015 at 20:52 | comment | added | fferri |
If you allow any string for yes and no , you should reject an answer which is a prefix of the longest common prefix among yes and no (and any other valid answer). Example, if yes='fantastic' and no='false' , the longest common prefix is 'fa' , and any answer prefix of this (namely 'f' and 'fa' ) is ambiguous, but your code will treat it as a yes answer.
|
|
Jul 29, 2015 at 17:56 | history | answered | 200_success | CC BY-SA 3.0 |