[Python-Dev] Re: Expected stability of PyCode_New() and types.CodeType() signatures

2019-06-11 Thread Stefan Behnel
Victor Stinner schrieb am 12.06.19 um 00:09: > So yeah, the PyCode_New() change is very annoying in practical, since > every single project using Cython requires a new release in practice. I think Cython's deal with regard to this is: """ If you use Cython, we will try hard to cover up the

[Python-Dev] Re: Expected stability of PyCode_New() and types.CodeType() signatures

2019-06-11 Thread Stefan Behnel
Neil Schemenauer schrieb am 08.06.19 um 22:46: > It would be great if we had a system that did CI testing with the > top PyPI modules. E.g. pull the latest versions of the top 100 PyPI > modules and test them with the latest CPython branch. FWIW, travis-ci provides the latest CPython master

[Python-Dev] Re: Expected stability of PyCode_New() and types.CodeType() signatures

2019-06-11 Thread Victor Stinner
Update. Le ven. 31 mai 2019 à 10:49, Petr Viktorin a écrit : > PEP 570 (Positional-Only Parameters) changed the signatures of > PyCode_New() and types.CodeType(), adding a new argument for "posargcount". Pablo proposed a PR to revert PyCode_New() API to Python 3.7 API:

[Python-Dev] Re: Using Generic Type Constructors at Runtime

2019-06-11 Thread Brett Cannon
So I don't think python-dev is the best place to be asking this. For type-specific questions you probably want the typing-sig mailing list. For generic discussions you probably want python-list. (Based on how type-specific your question is I'm going to assume typing-sig might be the best

[Python-Dev] Re: 1 PR, multiple issues

2019-06-11 Thread Mariatta
Thanks Jeffrey Kintscher for asking this question. It is one of those "less obvious way to triage CPython issues" kind of thing. I think it would be great if this workflow can be documented and clarified in the devguide. I've opened https://github.com/python/devguide/issues/494 ᐧ

[Python-Dev] Using Generic Type Constructors at Runtime

2019-06-11 Thread Saul Shanabrook
Hello all, I am working on an expression and replacement system in Python and am trying to figure out if constructors for generic classes should be done with classmethods or with functions. I have laid out an example using each in a Github issue

[Python-Dev] Re: Enum and annotations

2019-06-11 Thread Ivan Levkivskyi
On Mon, 10 Jun 2019 at 22:37, Ethan Furman wrote: > Greetings! > > I saw my first annotation mix-up with regards to Enum today: > >https://stackoverflow.com/q/56532591/208880 > > #enum import: > from enum import Enum > > # enum definition: > class Status(Enum): >