This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Mark.Shannon
Recipients Mark.Shannon
Date 2018-02-22.12:20:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1519302007.93.0.467229070634.issue32911@psf.upfronthosting.co.za>
In-reply-to
Content
Python 3.7.0b1+ (heads/3.7:dfa1144, Feb 22 2018, 12:10:59) 

>>> m = ast.parse("def foo():\n   'help'")
>>> m.body[0].body
[]


Correct behaviour (3.6 or earlier)

>>> m = ast.parse("def foo():\n   'help'")
>>> m.body[0].body
[<_ast.Expr object at 0x7fb9eeb1d4e0>]
History
Date User Action Args
2018-02-22 12:20:08Mark.Shannonsetrecipients: + Mark.Shannon
2018-02-22 12:20:07Mark.Shannonsetmessageid: <1519302007.93.0.467229070634.issue32911@psf.upfronthosting.co.za>
2018-02-22 12:20:07Mark.Shannonlinkissue32911 messages
2018-02-22 12:20:07Mark.Shannoncreate