Skip to content

site.main() does not work on Python 3.6 and superior if PYTHONSTARTUP is set #74353

@anjos

Description

@anjos
mannequin
BPO 30167
Nosy @ned-deily, @methane, @anjos, @steverweber
PRs
  • bpo-30167: site: Ignore TypeError in abs_paths() #6731
  • bpo-30167: Remove __cached__ when removing __file__ #7415
  • [3.7] bpo-30167: Prevent site.main() exception if PYTHONSTARTUP is set. (GH-6731) #7606
  • [3.6] bpo-30167: Prevent site.main() exception if PYTHONSTARTUP is set. (GH-6731) #7607
  • bpo-30167: Add test for module.__cached__ is None #7617
  • 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 2018-11-30.11:32:45.168>
    created_at = <Date 2017-04-26.08:53:33.616>
    labels = ['3.7', '3.8', 'type-bug', 'library']
    title = 'site.main() does not work on Python 3.6 and superior if PYTHONSTARTUP is set'
    updated_at = <Date 2018-11-30.11:32:45.167>
    user = 'https://github.com/anjos'

    bugs.python.org fields:

    activity = <Date 2018-11-30.11:32:45.167>
    actor = 'methane'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-11-30.11:32:45.168>
    closer = 'methane'
    components = ['Library (Lib)']
    creation = <Date 2017-04-26.08:53:33.616>
    creator = 'anjos'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 30167
    keywords = ['patch']
    message_count = 11.0
    messages = ['292325', '292327', '292329', '316295', '318725', '319258', '319260', '319261', '319262', '326797', '330677']
    nosy_count = 4.0
    nosy_names = ['ned.deily', 'methane', 'anjos', 'steverweber']
    pr_nums = ['6731', '7415', '7606', '7607', '7617']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue30167'
    versions = ['Python 3.6', 'Python 3.7', 'Python 3.8']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of life3.8 (EOL)end of lifestdlibStandard 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