Skip to content

Conversation

@rpkilby
Copy link
Contributor

@rpkilby rpkilby commented Sep 22, 2016

Supersedes and closes #4508. Also fixes, #4506.

True if the object is a callable that takes no arguments.
"""
if not hasattr(inspect, 'signature'):
return py2k_is_simple_callable(obj)
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we branch by version and have two differing definations of is_simple_callable? That'd match the style we use elsewhere in this module.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you mean six.PY3? There is actually a problem with python 3.2, which doesn't have signature.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe drop python 3.2 support since Django 1.8 has dropped support?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

(This would make the six.PY3 check valid)

Copy link
Contributor

Choose a reason for hiding this comment

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

I'd be very happy to do so yup. Let's defer brining it in til 3.5 tho' (Not too far off right now)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Code has been updated/rebased. Let me know if there's anything else I can do.

@rpkilby rpkilby force-pushed the fix-simple-callable branch 2 times, most recently from 76e53e8 to 7a0f8f1 Compare September 22, 2016 19:25
@lovelydinosaur lovelydinosaur added this to the 3.5.0 Release milestone Sep 22, 2016
@rpkilby rpkilby force-pushed the fix-simple-callable branch from 7a0f8f1 to c764b09 Compare September 22, 2016 19:32
@rpkilby rpkilby force-pushed the fix-simple-callable branch from c764b09 to b3afcb2 Compare September 22, 2016 19:35
@lovelydinosaur
Copy link
Contributor

Looks great! We'll probably start a 3.5 branch in the next week or two and get this pulled in then.

@lovelydinosaur
Copy link
Contributor

Merged into the 3.5 branch, in #4525. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants