Oleg Broytman wrote:
   The most painful was that the bug destroyed important information
that was hard to fix later (enterprise code in production, the code is
certificated and hard to replace).

Seems to me there are a number of problems right there:

* Important information that is not backed up or is hard
  to recover from wherever it is backed up

* A rigid deployment process without correspondingly
  thorough testing of what is to be deployed

Blaming the debacle on one particular language feature,
when something similar could have happened for any number
of other reasons, seems like scapegoat-hunting.

   The third pain was to find the bug. It's hard to spot a problem in
the list

oids = [
    "1.2.6.254.14."
    "19.9.91.281",
    "1.2.6.263.12."
    "481.7.9.6.3.87"
    "1.2.7.4.214.7."
    "9.1.52.12",
]

Again, testing. You're about to deploy a hard-coded list of
IDs to a mission-critical environment where it will be very
difficult to change anything later. Might it perhaps be prudent
to do something like checking that they're all valid? A typo in
one of the IDs would have given you the same result, without
involving any language features of dubious merit.

--
Greg
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to