python / python/cpython

Calling built-in locals() and globals() in C++ leads to SystemError

Open
#79,717 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

stdlib type-bug
Dominant language
Python
Stars
77.2k
Forks
36k
PR merge metrics
PR metrics pending

Description

BPO 35536
Nosy @benjaminp

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 2018-12-19.14:54:20.890>
labels = ['type-bug', 'library']
title = 'Calling built-in locals() and globals() in C++ leads to SystemError'
updated_at = <Date 2018-12-20.06:03:51.696>
user = None

bugs.python.org fields:

activity = <Date 2018-12-20.06:03:51.696>
actor = '\xd0\x9d\xd0\xb8\xd0\xba\xd0\xb8\xd1\x82\xd0\xb0 \xd0\xa1\xd0\xb8\xd1\x80\xd0\xb3\xd0\xb8\xd0\xb5\xd0\xbd\xd0\xba\xd0\xbe'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2018-12-19.14:54:20.890>
creator = '\xd0\x9d\xd0\xb8\xd0\xba\xd0\xb8\xd1\x82\xd0\xb0 \xd0\xa1\xd0\xb8\xd1\x80\xd0\xb3\xd0\xb8\xd0\xb5\xd0\xbd\xd0\xba\xd0\xbe'
dependencies = []
files = []
hgrepos = []
issue_num = 35536
keywords = []
message_count = 3.0
messages = ['332144', '332175', '332178']
nosy_count = 2.0
nosy_names = ['benjamin.peterson', '\xd0\x9d\xd0\xb8\xd0\xba\xd0\xb8\xd1\x82\xd0\xb0 \xd0\xa1\xd0\xb8\xd1\x80\xd0\xb3\xd0\xb8\xd0\xb5\xd0\xbd\xd0\xba\xd0\xbe']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue35536'
versions = ['Python 2.7', 'Python 3.6']

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file, entry point, or test is named. Start by reproducing the failure when calling the built-in locals() and globals() from C++, then trace the affected library or runtime behavior. Done means those calls no longer raise SystemError and the behavior is covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.