Issue #21217: inspect.getsourcelines() now tries to compute the start and

end lines from the code object, fixing an issue when a lambda function is
used as decorator argument.  Patch by Thomas Ballinger.
This commit is contained in:
Antoine Pitrou 2015-04-15 00:41:29 +02:00
parent 97100c0e3d
commit a8723a02ea
5 changed files with 49 additions and 17 deletions

View file

@ -72,6 +72,7 @@ Dwayne Bailey
Stig Bakken
Greg Ball
Luigi Ballabio
Thomas Ballinger
Jeff Balogh
Manuel Balsera
Matt Bandy

View file

@ -1,4 +1,4 @@
+++++++++++
+++++++++++
Python News
+++++++++++
@ -9,6 +9,7 @@ Release date: XXX
Core and Builtins
-----------------
- Issue #22631: Added Linux-specific socket constant CAN_RAW_FD_FRAMES.
Patch courtesy of Joe Jevnik.
@ -31,6 +32,10 @@ Core and Builtins
Library
-------
- Issue #21217: inspect.getsourcelines() now tries to compute the start and
end lines from the code object, fixing an issue when a lambda function is
used as decorator argument. Patch by Thomas Ballinger.
- Issue #23811: Add missing newline to the PyCompileError error message.
Patch by Alex Shkop.