Skip to content

BUG: Correct check for callable - #5057

Merged
josef-pkt merged 1 commit into
statsmodels:masterfrom
bashtage:callable-check
Sep 5, 2018
Merged

josef-pkt merged 1 commit into
statsmodels:masterfrom
bashtage:callable-check

Conversation

@bashtage

Copy link
Copy Markdown
Member

hasattr 'call' is not a reliable method to detect callable code

hasattr '__call__' is not a reliable method to detect callable code
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.007%) to 83.968% when pulling e9af9ca on bashtage:callable-check into a9bb76a on statsmodels:master.

@josef-pkt

Copy link
Copy Markdown
Member

LGTM

maybe this was written during the py 3 transition, when this was the recommended way.
callable is
New in version 3.2: This function was first removed in Python 3.0 and then brought back in Python 3.2

@jbrockmendel

Copy link
Copy Markdown
Contributor

LGTM

Green as it gets.

@jbrockmendel

Copy link
Copy Markdown
Contributor

@josef-pkt already got your OK, green, just waiting for the push of a button

@jbrockmendel

Copy link
Copy Markdown
Contributor

@josef-pkt you already OKed this...

@josef-pkt
josef-pkt merged commit 16cc3a3 into statsmodels:master Sep 5, 2018
@josef-pkt

Copy link
Copy Markdown
Member

merged

@bashtage Thank you

@bashtage
bashtage deleted the callable-check branch September 6, 2018 01:42
@josef-pkt josef-pkt added this to the 0.10 milestone Sep 15, 2018
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.

4 participants