-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding __dir__ #44203
Comments
in accordance with i've written a patch that allows objects to define their
|
Logged In: YES The retrieval of locals on a NULL argument and the sorting If the standard library's current C API tests didn't break Other than that, I didn't see any major problems on reading |
Logged In: YES okay:
|
Logged In: YES tomer, do you know about configuring with --pydebug? That object.c: _specialized_dir_type should be static. No need to init _specialized_dir_module should be static. No need to init _generic_dir: No need to init dict. + /* XXX api change: how about falling to Do you mean falling *back*? Also, we've been using /* XXX(tomer): Perhaps fall back to obj->ob_type if no _dir_object: No need to init dirfunc. PyObject_Dir: No need to init result. Are there tests for all conditions? At least:
There also need to be updates to Doc/lib/libfuncs.tex. If Thanks for attaching the patch as a single file, it's easier |
Logged In: YES i like to init all my locals ("just in case"), but -tomer |
Logged In: YES
|
Logged In: YES
|
Line 20 in demo.py:
looks strange to me... Foo doesn't inherit from |
i guess the demo isn't updated/relevant anymore. |
Applied to Python 3000 branch in rev. 54265. |
I think this should be backported to 2.6. |
Done in rev. 54287. |
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:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: