[issue17735] inspect.findsource raises IndexError

2020-12-04 Thread Tal Einat
Tal Einat added the comment: Thanks for reporting this, Kyle! Thanks for the PR, Irit! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue17735] inspect.findsource raises IndexError

2020-12-04 Thread Tal Einat
Tal Einat added the comment: New changeset d1f07419c7560ed3ba52ba4f667f4eec9b5fe95d by Miss Islington (bot) in branch '3.9': bpo-17735: inspect.findsource now raises OSError when co_lineno is out of range (GH-23633) https://github.com/python/cpython/commit/d1f07419c7560ed3ba52ba4f667f4eec9b5

[issue17735] inspect.findsource raises IndexError

2020-12-04 Thread miss-islington
miss-islington added the comment: New changeset a4e7d5f750e06e31a80a83c2af02b1a40cecd0ff by Miss Islington (bot) in branch '3.8': bpo-17735: inspect.findsource now raises OSError when co_lineno is out of range (GH-23633) https://github.com/python/cpython/commit/a4e7d5f750e06e31a80a83c2af02b1

[issue17735] inspect.findsource raises IndexError

2020-12-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +22515 pull_request: https://github.com/python/cpython/pull/23647 ___ Python tracker ___ __

[issue17735] inspect.findsource raises IndexError

2020-12-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +22514 pull_request: https://github.com/python/cpython/pull/23646 ___ Python tracker _

[issue17735] inspect.findsource raises IndexError

2020-12-04 Thread Tal Einat
Tal Einat added the comment: New changeset 2e0760bb2edb595050aff82f236cd32b44d3dfb3 by Irit Katriel in branch 'master': bpo-17735: inspect.findsource now raises OSError when co_lineno is out of range (GH-23633) https://github.com/python/cpython/commit/2e0760bb2edb595050aff82f236cd32b44d3dfb3

[issue17735] inspect.findsource raises IndexError

2020-12-03 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +22502 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23633 ___ Python tracker ___ ___

[issue17735] inspect.findsource raises IndexError

2020-12-03 Thread Irit Katriel
Irit Katriel added the comment: Sorry, you're right - now the issue is when you remove functions from the module: >>> reload(x) >>> help(x) Traceback (most recent call last): File "", line 1, in File "C:\Users\User\src\cpython\\lib\_sitebuiltins.py", line 103, in __call__ return pyd

[issue17735] inspect.findsource raises IndexError

2020-12-03 Thread Irit Katriel
Irit Katriel added the comment: I'm unable to reproduce it now. Has it been fixed? >>> import x >>> help(x) Help on module x: NAME x FUNCTIONS func() FILE c:\users\user\src\cpython\x.py >>> from importlib import reload >>> reload(x) >>> help(x) Help on module x: NAME x

[issue17735] inspect.findsource raises IndexError

2014-05-05 Thread Jason R. Coombs
Jason R. Coombs added the comment: This issue appears implicated in https://bitbucket.org/pypa/setuptools/issue/201 -- nosy: +jason.coombs ___ Python tracker ___

[issue17735] inspect.findsource raises IndexError

2013-04-19 Thread Éric Araujo
Changes by Éric Araujo : -- title: inspect.findsource throws IndexError -> inspect.findsource raises IndexError ___ Python tracker ___ __