Re: [Python-Dev] Status of the Argument Clinic DSL

2016-08-04 Thread eryk sun
On Thu, Aug 4, 2016 at 11:33 PM, Alexander Belopolsky wrote: > > On Thu, Aug 4, 2016 at 7:12 PM, Larry Hastings wrote: >> >> C extension functions get the module passed in automatically, but this is >> done internally and from the Python level you can't see it. > > Always something new to learn!

Re: [Python-Dev] Status of the Argument Clinic DSL

2016-08-04 Thread Alexander Belopolsky
On Thu, Aug 4, 2016 at 7:12 PM, Larry Hastings wrote: > C extension functions get the module passed in automatically, but this is > done internally and from the Python level you can't see it. Always something new to learn! This was not so in Python 2.x - self was passed as NULL to the C module

Re: [Python-Dev] Status of the Argument Clinic DSL

2016-08-04 Thread Larry Hastings
On 08/04/2016 03:45 PM, Alexander Belopolsky wrote: On Thu, Aug 4, 2016 at 2:19 PM, Larry Hastings > wrote: AFAIK the Clinic DSL can handle all of Python's C extensions. I have no plans to "revise the whole approach"; if someone else does I haven't heard

Re: [Python-Dev] Status of the Argument Clinic DSL

2016-08-04 Thread Brett Cannon
On Thu, 4 Aug 2016 at 15:47 Alexander Belopolsky < alexander.belopol...@gmail.com> wrote: > > On Thu, Aug 4, 2016 at 2:19 PM, Larry Hastings wrote: > >> AFAIK the Clinic DSL can handle all of Python's C extensions. I have no >> plans to "revise the whole approach"; if someone else does I haven't

Re: [Python-Dev] Status of the Argument Clinic DSL

2016-08-04 Thread Alexander Belopolsky
On Thu, Aug 4, 2016 at 7:00 PM, Brett Cannon wrote: >> >>> os.rename.__text_signature__ >> '($module, /, src, dst, *, src_dir_fd=None, dst_dir_fd=None)' >> >> ? >> >> What does the "$module, /," part mean? > > > Don't remember what the $module means but the / means positional-only > arguments. No

Re: [Python-Dev] Status of the Argument Clinic DSL

2016-08-04 Thread Alexander Belopolsky
On Thu, Aug 4, 2016 at 2:19 PM, Larry Hastings wrote: > AFAIK the Clinic DSL can handle all of Python's C extensions. I have no > plans to "revise the whole approach"; if someone else does I haven't heard > about it. I was just wondering that with so much effort to bring typing to the mainstre

Re: [Python-Dev] Status of the Argument Clinic DSL

2016-08-04 Thread Larry Hastings
On 08/04/2016 09:11 AM, Alexander Belopolsky wrote: Furthermore, the 3.4 release notes contain a warning saying "The Argument Clinic PEP is not fully up to date with the state of the implementation." It does not look like this situation has improved since. It hasn't. The PEP lags behind the

Re: [Python-Dev] Status of the Argument Clinic DSL

2016-08-04 Thread Brett Cannon
On Thu, 4 Aug 2016 at 09:14 Alexander Belopolsky < alexander.belopol...@gmail.com> wrote: > What is the current status of the Argument Clinic DSL? The clinic > preprocessor was released [1] with Python 3.4 with a promise [2] "that > signature metadata for programmatic introspection will be added

Re: [Python-Dev] Method signatures in the datetime module documentation

2016-08-04 Thread Alexander Belopolsky
On Wed, Aug 3, 2016 at 10:41 PM, Martin Panter wrote: > If replace() actually supported these keywords all along, then I am happy > with this proposal. > With the obvious exception of "fold", it did at least since Python 3.0 (and likely since 2.x where x is 5 ± 1.) > There are a few bug reports

[Python-Dev] Status of the Argument Clinic DSL

2016-08-04 Thread Alexander Belopolsky
What is the current status of the Argument Clinic DSL? The clinic preprocessor was released [1] with Python 3.4 with a promise [2] "that signature metadata for programmatic introspection will be added to additional callables implemented in C as part of Python 3.4 maintenance releases." We are now

Re: [Python-Dev] stuck issue 26826

2016-08-04 Thread Nick Coghlan
On 4 August 2016 at 06:32, Marcos Dione wrote: > Maybe you're right. Maybe, to keep Python's own code simple, we could > skip these optimizations, and leave them in a 3rd party module. Having the scandir package on PyPI made it possible for folks to quantify the benefits of the new os.scandir

Re: [Python-Dev] The devguide is now hosted on GitHub

2016-08-04 Thread Sven R. Kunze
Thanks a lot. :) On 22.07.2016 22:04, Brett Cannon wrote: https://github.com/python/devguide I have also moved all issues over as well and hooked up Read The Docs so that there's a mirror which is always up-to-date (vs. docs.python.org/devguide which is on