String literals that occur immediately after another docstring are called attribute docstrings.
B.
Attribute docstrings and Additional docstrings are two types of extra docstrings that can be extracted by software tools.
C.
String Iiterals that occur in places other than the first statement in a module, function, or class definition can act as documentation They are recognized by the Python bytecode compiler and are accessible as runtime object attributes
D.
String literals that occur immediately after a simple assignment at the top level of a module are called complementary docstrings
The Answer Is:
B
This question includes an explanation.
Explanation:
The true statement related to PEP 257 is Option B. According to PEP 257, string literals occurring elsewhere in Python code may also act as documentation. They are not recognized by the Python bytecode compiler and are not accessible as runtime object attributes (i.e. not assigned to doc), but two types of extra docstrings may be extracted by software tools: String literals occurring immediately after a simple assignment at the top level of a module, class, or init method are called “attribute docstrings”. String literals occurring immediately after another docstring are called “additional docstrings”1.
PCPP-32-101 PDF/Engine
Printable Format
Value of Money
100% Pass Assurance
Verified Answers
Researched by Industry Experts
Based on Real Exams Scenarios
100% Real Questions
Get 75% Discount on All Products,
Use Coupon: "ac75sure"