Skip to content

inspect.getsource doesn't update when a module is reloaded #42071

@sonderblade

Description

@sonderblade
BPO 1218234
Nosy @birkenfeld, @jaraco, @devdanzin, @bitdancer, @berkerpeksag, @1st1
Files
  • inspect.py.diff
  • test_inspect-trunk.diff: Test source reloading with inspect.getsource
  • test_inspect-py3k2.diff: Test source reloading with inspect.getsource in py3k
  • issue1218234.diff
  • 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 = <Date 2014-12-08.21:07:36.879>
    created_at = <Date 2005-06-10.13:49:10.000>
    labels = ['type-bug', 'library']
    title = "inspect.getsource doesn't update when a module is reloaded"
    updated_at = <Date 2014-12-08.23:10:15.628>
    user = 'https://bugs.python.org/sonderblade'

    bugs.python.org fields:

    activity = <Date 2014-12-08.23:10:15.628>
    actor = 'yselivanov'
    assignee = 'none'
    closed = True
    closed_date = <Date 2014-12-08.21:07:36.879>
    closer = 'yselivanov'
    components = ['Library (Lib)']
    creation = <Date 2005-06-10.13:49:10.000>
    creator = 'sonderblade'
    dependencies = []
    files = ['9382', '13775', '13778', '28272']
    hgrepos = []
    issue_num = 1218234
    keywords = ['patch']
    message_count = 16.0
    messages = ['60756', '60757', '62174', '86540', '86544', '110435', '110436', '110438', '217951', '217990', '217991', '232328', '232329', '232332', '232335', '232336']
    nosy_count = 9.0
    nosy_names = ['georg.brandl', 'jaraco', 'sonderblade', 'ajaksu2', 'gpolo', 'r.david.murray', 'python-dev', 'berker.peksag', 'yselivanov']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue1218234'
    versions = ['Python 2.7', 'Python 3.4', 'Python 3.5']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions