Skip to content
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

ENH: Make d accept function objects. #29

Merged
merged 2 commits into from
Dec 5, 2015
Merged

ENH: Make d accept function objects. #29

merged 2 commits into from
Dec 5, 2015

Conversation

ssanderson
Copy link
Collaborator

No description provided.

print(name, file=file)
print('-' * len(name), file=file)
dis.dis(co, file=file)
print('', file=file)


def _extract_code(obj, compile_mode):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like a place where we should use singledispatch

@ssanderson
Copy link
Collaborator Author

Updated to use singledispatch. I'm not 100% sold that this is an improvement with the logic here. I think if we add one more case in the future it will become worth it though.

@llllllllll
Copy link
Owner

looks good

ssanderson pushed a commit that referenced this pull request Dec 5, 2015
ENH: Make `d` accept function objects.
@ssanderson ssanderson merged commit 0599ec3 into master Dec 5, 2015
@ssanderson ssanderson deleted the generic-d branch December 5, 2015 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants