Message 287366 - Python tracker (original) (raw)
So what's new entry may be:
+* Module
, FunctionDef
, AsyncFunctionDef
, and
ClassDef
AST nodes now have a newdocstring
attribute.- The first statement in their body is not considered as a docstring anymore.
- This affects
co_firstlineno
andco_lnotab
attribute of code object - for module and class.
- (Contributed by Eugene Toder and INADA Naoki in :issue:
29463
.)