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

Python 3.6 incompatibility because of getargspec #2382

Closed
xZise opened this issue Sep 29, 2015 · 6 comments
Closed

Python 3.6 incompatibility because of getargspec #2382

xZise opened this issue Sep 29, 2015 · 6 comments

Comments

@xZise
Copy link

xZise commented Sep 29, 2015

Hi, on testing pywikibot on 3.6 I noticed that your package uses inspect.getargspec which has been removed in 3.6 after it has been deprecated in 3.5 (although the documentation mentions it has been deprecated since Python 3).

I know that Python 3.6 hasn't been released yet but I just wanted to let you know so you have enough time to prevent issues before it is released.

Here the Travis build: https://travis-ci.org/xZise/pywikibot-core/jobs/82446934

@reaperhulk
Copy link
Member

Thanks for the report! We use it here (https://github.com/pyca/cryptography/blob/master/src/cryptography/utils.py#L70) to check interface implementations, so we'll need to determine what the new approach needs to be.

@alex
Copy link
Member

alex commented Sep 29, 2015

I think we just need to call getfullargspec when it's available. I've got
a patch I'll send up when I'm back on my other machine.

On Tue, Sep 29, 2015 at 8:59 AM, Paul Kehrer notifications@github.com
wrote:

Thanks for the report! We use it here (
https://github.com/pyca/cryptography/blob/master/src/cryptography/utils.py#L70)
to check interface implementations, so we'll need to determine what the new
approach needs to be.


Reply to this email directly or view it on GitHub
#2382 (comment).

"I disapprove of what you say, but I will defend to the death your right to
say it." -- Evelyn Beatrice Hall (summarizing Voltaire)
"The people's good is the highest law." -- Cicero
GPG Key fingerprint: 125F 5C67 DFE9 4084

@Ayrx
Copy link
Contributor

Ayrx commented Sep 29, 2015

@alex getfullargspec() is deprecated as well. The recommendation in the docs is to use signature() instead.

@alex
Copy link
Member

alex commented Sep 29, 2015

I love chains of deprecations!

On Tue, Sep 29, 2015 at 9:35 AM, Terry Chia notifications@github.com
wrote:

@alex https://github.com/alex getfullargspec() is deprecated as well.
The recommendation in the docs is to use signature() instead.


Reply to this email directly or view it on GitHub
#2382 (comment).

"I disapprove of what you say, but I will defend to the death your right to
say it." -- Evelyn Beatrice Hall (summarizing Voltaire)
"The people's good is the highest law." -- Cicero
GPG Key fingerprint: 125F 5C67 DFE9 4084

@Ayrx
Copy link
Contributor

Ayrx commented Sep 29, 2015

Complicating this issue is that Python 2.7 doesn't have signature() (or getfullargspec() even).

@xZise
Copy link
Author

xZise commented Sep 29, 2015

Now on pywikibot we have solved that problem by replicating the result on Python 3.5+ by using signature() wikimedia/pywikibot@baf31f1b. And for the other way around I asked the devs of future PythonCharmers/python-future#157, although nothing has happened there and I'm not sure what you policies regarding third party packages is (we use future a lot to support Python 2.6).

@alex alex closed this as completed in 44878a5 Sep 30, 2015
reaperhulk added a commit that referenced this issue Sep 30, 2015
use signature so stuff works on 3.6 -- fixes #2382
simo5 pushed a commit to simo5/cryptography that referenced this issue Oct 7, 2015
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

4 participants