python / python/cpython

dir() does not return the list of valid attributes for the object

Open
#84,279 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

interpreter-core type-bug
Dominant language
Python
Stars
77.2k
Forks
36k
Avg merge
1d 9h
Merged PRs (30d)
558

Description

BPO 40098
Nosy @gvanrossum, @tim-one, @serhiy-storchaka, @vedgar

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 2020-03-28.19:47:28.704>
labels = ['interpreter-core', 'type-bug']
title = 'dir() does not return the list of valid attributes for the object'
updated_at = <Date 2020-03-31.21:33:43.162>
user = 'https://github.com/serhiy-storchaka'

bugs.python.org fields:

activity = <Date 2020-03-31.21:33:43.162>
actor = 'gvanrossum'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Interpreter Core']
creation = <Date 2020-03-28.19:47:28.704>
creator = 'serhiy.storchaka'
dependencies = []
files = []
hgrepos = []
issue_num = 40098
keywords = []
message_count = 11.0
messages = ['365227', '365271', '365272', '365411', '365416', '365417', '365419', '365420', '365423', '365426', '365428']
nosy_count = 4.0
nosy_names = ['gvanrossum', 'tim.peters', 'serhiy.storchaka', 'veky']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue40098'
versions = []

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

Start by reviewing the implementation and tests for Python's dir() behavior in the interpreter core. The issue provides no file, entry point, reproduction, or expected attribute list, so first establish the affected object case and intended behavior from the linked historical issue and discussion. Done means the behavior is specified, implemented, and covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
compilers
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.