question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Safety first, unsafe second (s/load/unsafeLoad/g;s/safeLoad/load/g)

See original GitHub issue

Thanks very much for your work! As said in the README, the project started out as a port of PyYAML. The origins of js-yaml are still visible because some bad decisions in PyYAML have also made it into this rewrite. Mainly that the default load function is unsafe and the safe variant is called safeLoad.

Check the proposal in https://bitbucket.org/ruamel/yaml/issues/6/make-the-default-load-and-dump-methods is which I would also propose here. This would be a break, sure, but that is what semantic versioning is for 😉

Refer to https://github.com/yaml/pyyaml/issues/5 which includes many examples and a talk why this is bad.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

github_iconTop Results From Across the Web

OSHA Worker Rights and Protections
If you believe working conditions are unsafe or unhealthful, you may file a confidential complaint with OSHA and ask for an inspection.
Read more >
Safety is Third, Not First, and We All Know It Should Be - JEMS
Apparatus positioning, reflective garments, and scene lighting may mitigate this risk; however, impaired drivers, adverse weather conditions, ...
Read more >
National Safety Council - Save lives, from the workplace to ...
NSC offers traditional and adaptive first aid online training as an affordable, convenient option for individuals whose work assignments make it difficult to ......
Read more >
Safety First | US EPA
Following basic safety precautions helps to keep you and other bystanders ... first responders in identifying and controlling the hazardous ...
Read more >
Hierarchy of Controls | NIOSH - CDC
When other control methods are unable to reduce the hazardous exposure to safe levels, employers must provide PPE. This includes:.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found