Skip to content

inspect.getsource only works for objects loaded from files, not interactive session #57129

Closed
@PCManticore

Description

@PCManticore
BPO 12920
Nosy @terryjreedy, @ned-deily, @merwok, @bitdancer, @PCManticore, @Naddiseo, @BlckKnght, @native-api, @vmsp, @Ark-kun

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2011-09-06.18:37:57.848>
labels = ['interpreter-core', '3.8', 'expert-IDLE', 'type-bug', '3.7']
title = 'inspect.getsource only works for objects loaded from files, not interactive session'
updated_at = <Date 2020-11-30.02:13:01.074>
user = 'https://github.com/PCManticore'

bugs.python.org fields:

activity = <Date 2020-11-30.02:13:01.074>
actor = 'Ark-kun'
assignee = 'docs@python'
closed = False
closed_date = None
closer = None
components = ['IDLE', 'Interpreter Core']
creation = <Date 2011-09-06.18:37:57.848>
creator = 'Claudiu.Popa'
dependencies = []
files = []
hgrepos = []
issue_num = 12920
keywords = []
message_count = 15.0
messages = ['143645', '143773', '143790', '143831', '185179', '245714', '245721', '245723', '252846', '265815', '297768', '297797', '328836', '331659', '382107']
nosy_count = 12.0
nosy_names = ['terry.reedy', 'ned.deily', 'eric.araujo', 'r.david.murray', 'Claudiu.Popa', 'Naddiseo', 'Steven.Barker', 'Ivan.Pozdeev', 'zorceta', 'nikitakit', 'vmsp', 'Ark-kun']
pr_nums = []
priority = 'normal'
resolution = None
stage = 'needs patch'
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue12920'
versions = ['Python 3.7', 'Python 3.8']

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

    Projects

    • Status

      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions