The open source Python programming language has continued to steadily improve its code quality in recent years and now surpasses that of its open source and proprietary peers, according to a study published by development testing vendor Coverity.
“The Coverity platform is part of the Python build system,” Zack Samocha, senior director of product management at Coverity, told eWEEK. “As their code changes, a new build is submitted to the Scan service and new defects are then sent to Python to be fixed.”
Coverity’s code-scanning system for open-source projects, including Python, has been in place since 2006, when the effort was first funded by the US Department of Homeland Security (DHS). The original DHS funding grant was only for a three-year term, and since its expiration, Coverity has been funding the open-source code scanning on its own.
“The disparity between the number of defects fixed and the number of defects identified was due to a backlog of defects,” Samocha said.
One of the more interesting defects that Coverity identified in Python that developers have since fixed is a “double-free” defect.
“‘Double free’ means that you allocate memory for a pointer, and then you free the memory twice,” Samocha explained. “This can cause memory corruption, which can lead to unexpected behaviors or program crashes.”
Python is doing a number of things to achieve its low defect density score, said Samocha, adding that Python is truly committed to quality.
“They’ve added the Coverity platform to their core development process, and they’ve invested in educating their developers on how to best leverage the Coverity platform,” Samocha said. “In our opinion, they are doing a great job.”
Are you a security pro? Try our quiz!
Originally published on eWeek.
With China tariff set at 145 percent, Amazon CEO admits third party sellers may pass…
Hundreds of staff within the Android, Chrome and Pixel teams at Alphabet's Google are reportedly…
After weeks of tariff chaos, China hits back at Donald Trump and raises tariffs on…
Executive at Chinese owned Swedish EV maker Polestar admits targetting fed up Tesla owners with…
Escalation of feud between Sam Altman and Elon Musk, after OpenAI confirms it is now…
Report from International Energy Agency (IEA) warns AI is set to drive surging electricity demand…