[issue33745] 3.7.0b5 changes the line number of empty functions with docstrings

2018-06-10 Thread Ned Deily
Ned Deily added the comment: The 3.7 What's New has been updated as Nick suggested. Thanks, Nick, and thanks, Ned, for bringing it up! -- priority: deferred blocker -> resolution: -> fixed stage: patch review -> resolved status: open -> closed _

[issue33745] 3.7.0b5 changes the line number of empty functions with docstrings

2018-06-10 Thread miss-islington
miss-islington added the comment: New changeset 14a190c88273fb22d9439bbed394f19f21e8a0f9 by Miss Islington (bot) in branch '3.7': bpo-33745: Add What's New for empty function docstring change. (GH-7611) https://github.com/python/cpython/commit/14a190c88273fb22d9439bbed394f19f21e8a0f9 --

[issue33745] 3.7.0b5 changes the line number of empty functions with docstrings

2018-06-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +7237 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33745] 3.7.0b5 changes the line number of empty functions with docstrings

2018-06-10 Thread Ned Deily
Ned Deily added the comment: New changeset 12c6cdf4d16078aa09de32a39193c8161177b39d by Ned Deily in branch 'master': bpo-33745: Add What's New for empty function docstring change. (GH-7611) https://github.com/python/cpython/commit/12c6cdf4d16078aa09de32a39193c8161177b39d -- ___

[issue33745] 3.7.0b5 changes the line number of empty functions with docstrings

2018-06-10 Thread Ned Deily
Change by Ned Deily : -- keywords: +patch pull_requests: +7236 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list m

[issue33745] 3.7.0b5 changes the line number of empty functions with docstrings

2018-06-08 Thread Nick Coghlan
Nick Coghlan added the comment: The rationale for documenting it in the porting section is that even though this isn't a guaranteed stable interface, the output *does* potentially affect development tools like Ned's coverage.py, as well as other implementations attempting to adhere closely t

[issue33745] 3.7.0b5 changes the line number of empty functions with docstrings

2018-06-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This change looks not intentional, but not incorrect. I'm not sure that it is worth to document it. Any behavior (in 3.6 and in 3.7) is CPython implementation detail. -- ___ Python tracker

[issue33745] 3.7.0b5 changes the line number of empty functions with docstrings

2018-06-05 Thread Nick Coghlan
Nick Coghlan added the comment: While I wouldn't describe this as completely intentional (as it's an artifact of the change-and-revert dance with 3.7 previously removing docstring nodes from the AST entirely), I also wouldn't want to change it again at this late stage of the release process.

[issue33745] 3.7.0b5 changes the line number of empty functions with docstrings

2018-06-04 Thread Ned Deily
Ned Deily added the comment: Setting to deferred blocker for evaluation -- nosy: +inada.naoki, ncoghlan, ned.deily priority: normal -> deferred blocker versions: +Python 3.8 ___ Python tracker __

[issue33745] 3.7.0b5 changes the line number of empty functions with docstrings

2018-06-03 Thread Ned Batchelder
New submission from Ned Batchelder : I'm not sure if this is a regression or an intentional change. I know that the behavior has changed. If a function has a docstring but no other body, Python 3.7b5 assigns the line number of the docstring to the implicit "return None". Previous versions