Re: [Python-Dev] Translated Python documentation

2017-02-26 Thread Brett Cannon
gt; > Hosting at docs.python.org is desirable too, but it can be discussed > later. > > Regards, > > On Sun, Feb 26, 2017 at 4:08 AM, Ned Deily wrote: > > On Feb 25, 2017, at 13:19, Brett Cannon wrote: > >> It's getting a little hard to tease out what exactly i

Re: [Python-Dev] Python-3.6.0 compilation error

2017-03-01 Thread Brett Cannon
This mailing list is for the development **of** Python, not **with** it. For build failures like this it's best to ask on python-list (and if you search for the missing libintl_* symbols you will find they come from gettext). On Wed, 1 Mar 2017 at 08:10 Porel, Subrata wrote: > Hi Team, > > > > W

Re: [Python-Dev] API design: where to add async variants of existing stdlib APIs?

2017-03-07 Thread Brett Cannon
I don't think a common practice has bubbled up yet for when there's both synchronous and asynchronous versions of an API (closest I have seen is appending an "a" to the async version but that just looks like a spelling mistake to me most of the time). This is why the question of whether separate mo

Re: [Python-Dev] Regarding writing tests for module tabnanny

2017-03-13 Thread Brett Cannon
These questions are best asked on the core-mentorship mailing list, Jaysinh, but to quickly answer your question: 1. Yes, tests would be appreciated. 2. Nothing from me On Mon, 13 Mar 2017 at 08:20 Jaysinh Shukla wrote: > Respected Members, > > I identified the standard module 'tabnanny' i

Re: [Python-Dev] Py_SIZE vs PyXXX_GET_SIZE

2017-03-20 Thread Brett Cannon
On Mon, 20 Mar 2017 at 04:28 Serhiy Storchaka wrote: > What is the preferable way of getting the size of tuple, list, bytes, > bytearray: Py_SIZE or PyTuple_GET_SIZE, PyList_GET_SIZE, > PyBytes_GET_SIZE, PyByteArray_GET_SIZE? Are macros for concrete types > more preferable or they are outdated? >

Re: [Python-Dev] PEP 544: Protocols

2017-03-20 Thread Brett Cannon
I'm overall very supportive of seeing something like this make it into Python to further strengthen duck typing in the language. I know I've wanted something something like this since ABCs were introduced. I personally only have one issue/clarification for the PEP. On Mon, 20 Mar 2017 at 05:02 Iv

Re: [Python-Dev] PEP 544: Protocols

2017-03-21 Thread Brett Cannon
On Tue, 21 Mar 2017 at 09:17 Matthias Kramm via Python-Dev < python-dev@python.org> wrote: > On Mon, Mar 20, 2017 at 2:42 PM, Ivan Levkivskyi > wrote: > > 1. Backward compatibility: People are already using ABCs, including > generic ABCs from typing module. > If we prohibit explicit subclassing o

Re: [Python-Dev] PyCharm debugger became 40x faster on Python 3.6 thanks to PEP 523

2017-03-25 Thread Brett Cannon
On Sat, 25 Mar 2017 at 03:05 Victor Stinner wrote: > > https://blog.jetbrains.com/pycharm/2017/03/inside-the-debugger-interview-with-elizaveta-shashkova/ > > "What changed in Python 3.6 to allow this? > > The new frame evaluation API was introduced to CPython in PEP 523 and it > allows to specify

Re: [Python-Dev] PyCharm debugger became 40x faster on Python 3.6 thanks to PEP 523

2017-03-25 Thread Brett Cannon
On Sat, 25 Mar 2017 at 05:58 Serhiy Storchaka wrote: > On 25.03.17 12:04, Victor Stinner wrote: > > > https://blog.jetbrains.com/pycharm/2017/03/inside-the-debugger-interview-with-elizaveta-shashkova/ > > > > "What changed in Python 3.6 to allow this? > > > > The new frame evaluation API was intr

Re: [Python-Dev] Not all public names in C API have the "Py" prefix

2017-03-27 Thread Brett Cannon
On Mon, 27 Mar 2017 at 03:23 Serhiy Storchaka wrote: > A number of public typedef names without the "Py" prefix survived the > Grand Renaming [1]. A couple of new names without the "Py" prefix were > added after the Grand Renaming (e.g. getter and setter [2]). > > That names were included in the

[Python-Dev] I will be deleting the cpython-mirror repo on April 10

2017-03-27 Thread Brett Cannon
On the two-month anniversary of the GitHub migration I'm going to delete the old git mirror: https://github.com/python/cpython-mirror. If you have a old PR that got closed with comments or something, now is the time to get those comments off. ___ Python-D

Re: [Python-Dev] Misc/NEWS entries for Python 3.7a1

2017-03-29 Thread Brett Cannon
On Tue, 28 Mar 2017 at 23:36 INADA Naoki wrote: > On Tue, Mar 28, 2017 at 11:07 PM, Ned Deily wrote: > > On Mar 28, 2017, at 08:49, INADA Naoki wrote: > >> Currently, changelog of Python 3.7a1 [1] contains changes between > >> 3.6b1 and 3.7a1. > >> So lot's of bugfixes are listed twice or more

Re: [Python-Dev] PEP 545: Python Documentation Translations

2017-03-29 Thread Brett Cannon
Sounds good overall! I only have one thing to suggest in regards to the license, two grammar tweaks, and a question. On Wed, 29 Mar 2017 at 08:10 Julien Palard via Python-Dev < python-dev@python.org> wrote: > [SNIP] > Sources of translated documentation will be hosted in the Python > organization

Re: [Python-Dev] PEP 545: Python Documentation Translations

2017-03-29 Thread Brett Cannon
On Wed, 29 Mar 2017 at 13:13 Julien Palard wrote: > Hi Brett, thanks for the feedback! > > > > > > > > > > Please check with the PSF that this is what we really want. > > > Gladly, but … how? I'm very new to all those process and have now idea on > how I can get in touch with PSF lawyers. > > Wha

Re: [Python-Dev] PEP 545: Python Documentation Translations

2017-04-04 Thread Brett Cannon
On Tue, 4 Apr 2017 at 04:58 Julien Palard wrote: > Hi, little follow-up about this PEP. > > > Please check with the PSF that this is what we really want. In the past > the suggestion has been to **not** use the PSF license with all of its > historical baggage but instead use something like Apache

Re: [Python-Dev] I will be deleting the cpython-mirror repo on April 10

2017-04-10 Thread Brett Cannon
new CPython Git repository. > > Victor > > 2017-03-27 22:13 GMT+02:00 Brett Cannon : > > On the two-month anniversary of the GitHub migration I'm going to delete > the > > old git mirror: https://github.com/python/cpython-mirror. If you have a > old > > PR th

Re: [Python-Dev] windows installer and python list mention

2017-04-10 Thread Brett Cannon
On Mon, 10 Apr 2017 at 14:32 Steve Dower wrote: > On 10Apr2017 1032, Ethan Furman wrote: > > Apparently the Windows installer mentions asking for help on Python List. > > Yay! People actually read some of that text in the installer :) > > Currently the installer has the following message after yo

Re: [Python-Dev] API for bugs.python.org or some statistic about lib/module merge rate?

2017-04-19 Thread Brett Cannon
I don't think there's any API. Your best bet will probably be to analyze the GitHub data. On Tue, 18 Apr 2017 at 09:09 Louie Lu wrote: > Hi all, > > After reading some topic at python-committers mailing list, some of the > topics are around not enough reviewers to review patches, cause the devel

Re: [Python-Dev] API for bugs.python.org or some statistic about lib/module merge rate?

2017-04-26 Thread Brett Cannon
Thanks for this, Louie! Definitely interesting to look at what modules have the most open patches against them (spoiler alert: it's apparently argparse with 51). On Tue, 25 Apr 2017 at 22:18 Louie Lu wrote: > Hi all, > > Fix some pr counting issue, and now the bpo-mergerate can choose hg (the >

Re: [Python-Dev] Guarantee the success of some object creation C API functions

2017-05-02 Thread Brett Cannon
On Mon, 1 May 2017 at 21:19 Nick Coghlan wrote: > On 2 May 2017 at 07:52, Chris Angelico wrote: > > On Tue, May 2, 2017 at 6:52 AM, Terry Reedy wrote: > >> The promise makes it clear that breaking the property is a bug to be > fixed. > >> It only decreases the probability for someone who has re

Re: [Python-Dev] Status of Python buildbots

2017-05-03 Thread Brett Cannon
On Wed, 3 May 2017 at 01:24 Victor Stinner wrote: > Hi, > > I spent last week working on fixing buildbots: > >https://www.python.org/dev/buildbot/ > > It should now be able again to rely on them to detect regressions. Thanks, Victor! > Changes: > > * Fix various bugs (I don't even recall

[Python-Dev] Is adding support for os.PathLike an enhancement or bugfix?

2017-05-03 Thread Brett Cannon
My allergies have hit me hard so I'm not thinking at full capacity, but did we ever decide if supporting os.PathLike in the stdlib was viewed as an enhancement or bugfix? Specifically I'm thinking of https://bugs.python.org/issue30218 for adding support to shutil.unpack_archive() and whether it sho

Re: [Python-Dev] Is adding support for os.PathLike an enhancement or bugfix?

2017-05-04 Thread Brett Cannon
Thanks for the feedback, everyone. I'll just consider it an enhancement then. On Wed, 3 May 2017 at 15:07 Terry Reedy wrote: > On 5/3/2017 2:15 PM, Brett Cannon wrote: > > My allergies have hit me hard so I'm not thinking at full capacity, but > > did we ever decide if

Re: [Python-Dev] "make touch" replaced with "make regen-all"

2017-05-04 Thread Brett Cannon
I see no issue backporting since I don't think we have any compatibility promises when it comes to Makefile commands. Plus if the perf changes to add PGO support could be backported then I don't see why this shouldn't be allowed. On Thu, 4 May 2017 at 10:15 Victor Stinner wrote: > Hi, > > tl;dr

Re: [Python-Dev] Outdated GitHub clone of the old svn repository

2017-05-05 Thread Brett Cannon
On Fri, 5 May 2017 at 09:50 Victor Stinner wrote: > 2017-05-05 18:36 GMT+02:00 Jonathan Goble : > > It appears to me to be an individual user rather than an organization. > > Oh nice, glad to meet you :-) So what do you think? Are you ok to > remove this old clone? Or do you have reasons to keep

Re: [Python-Dev] mention aenum in the Enum docs?

2017-05-09 Thread Brett Cannon
On Tue, 9 May 2017 at 10:59 Mark Lawrence via Python-Dev < python-dev@python.org> wrote: > On 09/05/2017 18:05, Ethan Furman wrote: > > A comment on a recent SO answer [1] wondered why my aenum library wasn't > > mentioned in the docs to help guide people that needed/wanted more > > advanced Enum

Re: [Python-Dev] PEP 484 proposal: don't default to Optional if argument default is None

2017-05-09 Thread Brett Cannon
On Tue, 9 May 2017 at 11:11 Carl Meyer wrote: > On 05/09/2017 10:28 AM, Guido van Rossum wrote: > > There's a proposal to change one detail of PEP 484. It currently says: > > > > An optional type is also automatically assumed when the default > value is > > |None|, for example:: > > > >

Re: [Python-Dev] PEP 484 update proposal: annotating decorated declarations

2017-05-09 Thread Brett Cannon
The idea seems reasonable to me when viewing type hints as a form of documentation as it helps remind people how they are expected to call the final function. One worry I do have, though, is Callable doesn't support keyword-only parameters, so declared_type won't work in all cases without Callable

Re: [Python-Dev] Snap Python for simple distribution across multiple Linux distros

2017-05-22 Thread Brett Cannon
On Tue, 16 May 2017 at 08:08 Martin Wimpress wrote: > Hi all, > > I work at Canonical as part of the engineering team developing Ubuntu > and Snapcraft [1] and I'm a long time Python fan :-) > > We've created snaps, a platform that enables projects to directly > control delivery of software updat

Re: [Python-Dev] Aligning the packaging.python.org theme with the rest of the docs

2017-05-27 Thread Brett Cannon
On Fri, 26 May 2017 at 21:28 Nick Coghlan wrote: > Hi folks, > > Over on > https://github.com/pypa/python-packaging-user-guide/pull/305#issuecomment-304169735 > we're looking to update the theming of packaging.python.org to match > that of the language documentation at docs.python.org. > > Doing

Re: [Python-Dev] Put token information in one place

2017-05-31 Thread Brett Cannon
On Wed, 31 May 2017 at 04:01 Serhiy Storchaka wrote: > Currently when you add a new token you need to change a couple of files: > > * Include/token.h > * _PyParser_TokenNames in Parser/tokenizer.c > * PyToken_OneChar(), PyToken_TwoChars() or PyToken_ThreeChars() in > Parser/tokenizer.c > * Lib/to

Re: [Python-Dev] PEP 7 and braces { .... } on if

2017-06-01 Thread Brett Cannon
If you create an issue at github.com/python/peps and assign it to me I will get to it someday. :) On Thu, 1 Jun 2017 at 00:19 Victor Stinner wrote: > 2017-05-31 19:27 GMT+02:00 Guido van Rossum : > > I interpret the PEP (...) > > Right, the phrasing requires to "interpret" it :-) > > > (...) as

Re: [Python-Dev] Handle errors in cleanup code

2017-06-12 Thread Brett Cannon
On Mon, 12 Jun 2017 at 01:08 Nick Coghlan wrote: > On 12 June 2017 at 17:31, Martin (gzlist) via Python-Dev > wrote: > > On 12/06/2017, Serhiy Storchaka wrote: > >> > >> But if an error is raised when execute undo_something(), it replaces the > >> original exception which become chaining as the

Re: [Python-Dev] New work-in-progress bisection tool for the Python test suite (in regrtest)

2017-06-16 Thread Brett Cannon
Great idea! I had thought about doing something similar to this years ago to help diagnose when a test passes in isolation but somehow fails due to one of the bazillion of other tests that ran previously (which can be hard to narrow down if the failure is not early on in a test run). On Fri, 16 Ju

[Python-Dev] https://devguide.python.org now exists

2017-06-21 Thread Brett Cannon
While the redirect for https://docs.python.org/devguide does not exist yet, the infrastructure team has been nice enough to set up https://devguide.python.org for us so that the devguide is served from Read the Docs. This not only will (eventually) let the infrastructure team have one less custom p

Re: [Python-Dev] https://devguide.python.org now exists

2017-06-21 Thread Brett Cannon
FYI we're aware of the internal link problem and I've notified the infrastructure team about it (looks like some URL rewrite rule is misconfigured 😞). On Wed, Jun 21, 2017, 18:14 Brett Cannon, wrote: > While the redirect for https://docs.python.org/devguide does not exi

Re: [Python-Dev] [python-committers] Proposed release schedule for Python 3.5.4

2017-06-22 Thread Brett Cannon
On Thu, 22 Jun 2017 at 02:32 Larry Hastings wrote: > > > On 06/22/2017 01:04 AM, Victor Stinner wrote: > > About the cipher list in ssl, the change itself is simple but it's to > blacklist DES and 3DES since it has been proved that these ciphers are > really too weak nowadays: > > http://python-s

Re: [Python-Dev] [Core-mentorship] C version of weakrefset.py.

2017-06-23 Thread Brett Cannon
On Thu, 22 Jun 2017 at 16:26 Bhavishya wrote: > Also I saw your conversation with "Brett Cannon" on lazy-loading some > modules at startup, and also doing so using ModuleProxy(also several > implementations that exist like importlib's Lazyloader > <htt

Re: [Python-Dev] [python-committers] New workflow change: Welcome to blurb

2017-06-24 Thread Brett Cannon
On Sat, 24 Jun 2017 at 09:46 Larry Hastings wrote: > On 06/24/2017 09:40 AM, Terry Reedy wrote: > > On 6/23/2017 11:24 PM, Larry Hastings wrote: > > > You can install blurb from pip: > > > > % pip3.6 install blurb > > This does not seem to work right. On Windows: > > C:\Users\Terry>py -3 -m

Re: [Python-Dev] [python-committers] New workflow change: Welcome to blurb

2017-06-24 Thread Brett Cannon
I just pushed blurb 1.0.0.post1 which re-packages everything using flit so there's a blurb.py and an entry point for the `blurb` command. That should meet everyone's needs for launching the tool. On Sat, 24 Jun 2017 at 09:54 Brett Cannon wrote: > On Sat, 24 Jun 2017 at 09:46 L

Re: [Python-Dev] New workflow change: Welcome to blurb

2017-06-24 Thread Brett Cannon
On Sat, 24 Jun 2017 at 10:07 Antoine Pitrou wrote: > > Larry, > > I have just used blurb on https://github.com/python/cpython/pull/2010 > and it was absolutely painless. Thank you! > > One minor thing: `make patchcheck` doesn't know to examine the NEWS.d > directory when checking for NEWS entrie

Re: [Python-Dev] New workflow change: Welcome to blurb

2017-06-25 Thread Brett Cannon
On Sat, Jun 24, 2017, 23:45 Nick Coghlan, wrote: > On 25 June 2017 at 16:31, Terry Reedy wrote: > >> 25.06.17 06:04, Nick Coghlan пише: > >>> All the PRs share an issue number in that case, so Bedevere should be > >>> able to pick up that there's a pre-existing NEWS entry (even if it > >>> isn't

Re: [Python-Dev] New workflow change: Welcome to blurb

2017-06-25 Thread Brett Cannon
On Sun, Jun 25, 2017, 11:24 Terry Reedy, wrote: > On 6/25/2017 12:39 PM, Brett Cannon wrote: > > > The entire reason I want to have this check is I don't want or have to > > ask another PR submitter to include a draft of a news item. It's much > > easier to e

Re: [Python-Dev] New workflow change: Welcome to blurb

2017-06-26 Thread Brett Cannon
On Sun, 25 Jun 2017 at 20:56 Nick Coghlan wrote: > On 26 June 2017 at 02:39, Brett Cannon wrote: > > On Sat, Jun 24, 2017, 23:45 Nick Coghlan, wrote: > >> I was mainly referring to cases where either an initial commit (with a > >> complete NEWS entry) requires fo

Re: [Python-Dev] New work-in-progress bisection tool for the Python test suite (in regrtest)

2017-06-26 Thread Brett Cannon
On Mon, 26 Jun 2017 at 09:38 Victor Stinner wrote: > Hi, > > I updated my bisect_test.py script to simplify its command line: > >https://github.com/haypo/misc/blob/master/python/bisect_test.py > > To debug a reference leak in test_os, now just type: > >$ ./python bisect_test.py -R 3:3 tes

Re: [Python-Dev] New workflow change: Welcome to blurb

2017-06-26 Thread Brett Cannon
On Mon, 26 Jun 2017 at 14:28 Terry Reedy wrote: > On 6/25/2017 4:09 PM, Guido van Rossum wrote: > > On Sun, Jun 25, 2017 at 12:23 PM, Brett Cannon > <mailto:br...@python.org>> wrote: > > > > > > > > On Sun, Jun 25, 2017, 11:24 Terry R

Re: [Python-Dev] Helping contributors with chores (do we have to?)

2017-06-26 Thread Brett Cannon
[It seems to me most of this thread has gone off-topic since it now includes what I consider a sexist comment, complaining about git, and discussing people's credentials in terms of being able to comment on something, I'm basically ignoring everything that came after this email as none of that has

Re: [Python-Dev] New work-in-progress bisection tool for the Python test suite (in regrtest)

2017-06-26 Thread Brett Cannon
On Mon, 26 Jun 2017 at 13:38 Victor Stinner wrote: > 2017-06-26 21:58 GMT+02:00 Brett Cannon : > > I don't see why regrtest isn't the right place for this. > > The current regrest CLI isn't designed for subcommands, and I don't > want to "pollute

Re: [Python-Dev] Improve test coverage for standard library

2017-07-10 Thread Brett Cannon
In general the answer to helping with code coverage is "whatever module motivates you to help". :) So unless a core dev has a specific module that they want to help you write tests for then it's whatever you want to work on. And for easy reference, the code coverage report can be found at https://

Re: [Python-Dev] [python-committers] Python 3.3.7 release schedule and end-of-life

2017-07-16 Thread Brett Cannon
A quick thanks from me, Ned, for stepping forward to help 3.3 pine for the fjords. On Sat, Jul 15, 2017, 14:51 Ned Deily, wrote: > Python 3.3 is fast approaching its end-of-life date, 2017-09-29. Per our > release policy, that date is five years after the initial release of 3.3, > 3.3.0 final o

Re: [Python-Dev] Impact of Namedtuple on startup time

2017-07-17 Thread Brett Cannon
On Mon, 17 Jul 2017 at 13:28 Raymond Hettinger wrote: > > > On Jul 17, 2017, at 8:49 AM, Guido van Rossum wrote: > > > > One of the reasons to be wary of exec()/eval() other than the usual > security concerns is that in some Python implementations they have a high > overhead to initialize the pa

Re: [Python-Dev] Impact of Namedtuple on startup time

2017-07-18 Thread Brett Cannon
On Mon, 17 Jul 2017 at 19:26 Nathaniel Smith wrote: > On Jul 17, 2017 5:28 PM, "Steven D'Aprano" wrote: > > On Mon, Jul 17, 2017 at 09:31:20PM +, Brett Cannon wrote: > > > As for removing exec() as a goal, I'll back up Christian's point and the >

Re: [Python-Dev] Design Philosophy: Performance vs Robustness/Maintainability

2017-07-18 Thread Brett Cannon
On Tue, 18 Jul 2017 at 09:07 Ethan Furman wrote: > Raymond Hettinger: > - > > One minor grumble: I think we need to give careful cost/benefit > considerations to > > optimizations that complicate the implementation. Over the last > several years, the > > source for Python has

Re: [Python-Dev] startup time repeated? why not daemon

2017-07-21 Thread Brett Cannon
On Thu, 20 Jul 2017 at 22:11 Chris Jerdonek wrote: > On Thu, Jul 20, 2017 at 8:49 PM, Nick Coghlan wrote: > > ... > > * Lazy loading can have a significant impact on startup time, as it > > means you don't have to pay for the cost of finding and loading > > modules that you don't actually end up

[Python-Dev] Appending a link back to bugs.python.org in GitHub PRs

2017-07-21 Thread Brett Cannon
Thanks to Kushal Das we now have one of the most requested features since the transition: a link in PRs back to bugs.python.org (in a more discoverable way since we have had them since Bedevere launched :) . When a pull request comes in with an issue number in the title (or one gets added), a link

Re: [Python-Dev] Python startup time

2017-07-22 Thread Brett Cannon
On Sat, Jul 22, 2017, 07:22 Steve Dower, wrote: > I believe the trend is due to language like Python and Node.js, most of > which aggressively discourage threading (more from the broader community > than the core languages, but I see a lot of apps using these now), and also > the higher reliabili

Re: [Python-Dev] Python startup time

2017-07-23 Thread Brett Cannon
On Sun, Jul 23, 2017, 00:53 Michel Desmoulin, wrote: > > > > Optimizing startup time is incredibly valuable, > > I've been reading that from the beginning of this thread but I've been > using python since the 2.4 and I never felt the burden of the startup time. > > I'm guessing a lot of people ar

Re: [Python-Dev] Python startup time

2017-07-23 Thread Brett Cannon
On Sun, Jul 23, 2017, 10:52 Michel Desmoulin, wrote: > > > Le 23/07/2017 à 19:36, Brett Cannon a écrit : > > > > > > On Sun, Jul 23, 2017, 00:53 Michel Desmoulin, > <mailto:desmoulinmic...@gmail.com>> wrote: > > > > > > > > >

Re: [Python-Dev] Appending a link back to bugs.python.org in GitHub PRs

2017-07-25 Thread Brett Cannon
n't find > those quickly (PEP 512, Google search, etc) -- can someone point me in the > right direction? -Ben > Basically there was push-back on the idea and I only had enough time and patience for one major infrastructure change that was somewhat controversial and not for two. -Brett

[Python-Dev] Pull requests now have labels specifying what stage they are at

2017-08-11 Thread Brett Cannon
I just pushed a change to Bedevere to help track what stage a pull request is in. The stages are: - awaiting review - awaiting core review - awaiting changes - awaiting change review - awaiting merge The "review" stage is for when a pull request has no reviews either approving or

Re: [Python-Dev] python issue27584 AF_VSOCK support

2017-08-17 Thread Brett Cannon
Since everyone is a volunteer, Cathy, there are unfortunately no real timelines. It really comes down to someone who feels they have the knowledge necessary to review the PR having the spare time to do so. So emailing here and saying, "my PR has addressed all the comments and has been ready to go f

Re: [Python-Dev] __signature__ for PySide ready

2017-08-18 Thread Brett Cannon
On Fri, 18 Aug 2017 at 02:05 Christian Tismer wrote: > Hi friends, > > in the last months, I have developed signature support for > PySide. The module creates the same signatures as are known > for plain Python functions. > > As a non-trivial addition, the module also handles multiple > signature

Re: [Python-Dev] PEP 550 v3

2017-08-19 Thread Brett Cannon
On Sat, Aug 19, 2017, 01:43 Antoine Pitrou wrote: > On Fri, 18 Aug 2017 16:33:27 -0400 > Yury Selivanov wrote: > > > > There are a few open questions left, namely the terminology > > and design of ContextKey API. On the former topic, I'm quite > > happy with the latest version: Execution Contex

Re: [Python-Dev] Buildbot report, August 2017

2017-08-19 Thread Brett Cannon
Thanks for all of this, Victor! On Fri, Aug 18, 2017, 09:38 Victor Stinner wrote: > Hi, > > Here is a quick report of what changed recently on buildbots. > > > == pythoninfo == > > I added a new "python3 -m test.pythoninfo" command which is now run on > Travis CI, AppVeyor and buildbots. > >

Re: [Python-Dev] PEP 550 v3

2017-08-20 Thread Brett Cannon
On Sun, Aug 20, 2017, 03:08 Antoine Pitrou wrote: > On Sat, 19 Aug 2017 17:21:03 -0700 > Guido van Rossum wrote: > > The way we came to "logical context" was via "logical thread (of > control)", > > which is distinct from OS thread. But I think we might need to search for > > another term... > >

Re: [Python-Dev] bpo-5001: More-informative multiprocessing error messages (#3079)

2017-08-31 Thread Brett Cannon
On Wed, 30 Aug 2017 at 02:56 Paul Moore wrote: > On 30 August 2017 at 10:48, Nick Coghlan wrote: > > On 30 August 2017 at 19:39, Antoine Pitrou wrote: > >> On Wed, 30 Aug 2017 08:48:56 +0300 > >> Serhiy Storchaka wrote: > >>> Please, please don't forget to edit commit messages before merging.

[Python-Dev] Re: Should the definition of an "(async) iterator" include __iter__?

2021-10-29 Thread Brett Cannon
FYI I opened https://github.com/python/cpython/pull/29170 to loosen/correct the definition of "iterator", but I got push-back on the PR and this thread never reached a clear conclusion. As such I'll ask the SC to make a call. ___ Python-Dev mailing list

[Python-Dev] Re: PEP 663:

2021-11-03 Thread Brett Cannon
Rendered versions can be found at the following links: https://www.python.org/dev/peps/pep-0663/ https://python.github.io/peps/pep-0663/ On Tue, Nov 2, 2021 at 8:41 PM Ethan Furman wrote: > See the latest changes, which are mostly a (hopefully) improved abstract, > better tables, and some sligh

[Python-Dev] Re: Oh look, I've been subscribed to python/issues-test-2 notifications again

2021-11-04 Thread Brett Cannon
What notification? (I fully admit I may not have gotten one due to some team I'm in, but I have no such notification if it happened recently.) On Thu, Nov 4, 2021 at 12:16 AM Larry Hastings wrote: > > I guess this is part of the migration from bpo to GitHub issues? Maybe > the initial work coul

[Python-Dev] Re: Proposal: Allow non-default after default arguments

2021-11-09 Thread Brett Cannon
On Tue, Nov 9, 2021 at 6:31 AM Steven D'Aprano wrote: > By the way, this discussion is probably better suited to the > Python-Ideas mailing list. But since we're here... > > On Tue, Nov 09, 2021 at 11:37:40AM +0100, Sebastian Rittau wrote: > > > >>To me, the "natural" solution looks like this: >

[Python-Dev] Re: Do we need to remove everything that's deprecated?

2021-11-15 Thread Brett Cannon
On Sun, Nov 14, 2021 at 3:01 PM Victor Stinner wrote: > On Sun, Nov 14, 2021 at 6:34 PM Eric V. Smith wrote: > > On second thought, I guess the existing policy already does this. Maybe > > we should make it more than 2 versions for deprecations? I've written > > libraries where I support 4 or 5

[Python-Dev] Re: Remove asyncore, asynchat and smtpd modules

2021-11-15 Thread Brett Cannon
On Fri, Nov 12, 2021 at 4:16 AM Victor Stinner wrote: > > > It was decided to start deprecating the asyncore, asynchat and smtpd > > > modules in Python 3.6 released in 2016, 5 years ago. Python 3.10 emits > > > DeprecationWarning. > > > > Wait, only Python 3.10? > > According to the policy, the

[Python-Dev] Re: Remove asyncore, asynchat and smtpd modules

2021-11-16 Thread Brett Cannon
On Tue, Nov 16, 2021 at 3:05 AM Petr Viktorin wrote: > On 12. 11. 21 13:09, Victor Stinner wrote: > >>> It was decided to start deprecating the asyncore, asynchat and smtpd > >>> modules in Python 3.6 released in 2016, 5 years ago. Python 3.10 emits > >>> DeprecationWarning. > >> > >> Wait, only

[Python-Dev] Re: portable venv

2021-11-16 Thread Brett Cannon
On Tue, Nov 16, 2021 at 8:08 AM Tamás Ozsváth wrote: > Hi All, > I tried to compose a protable virtualEnvironment using Python. I aready > found a solution which already works but still not stable. > So by creating venv in conventional way, I additionally copy the Python > executable and related

[Python-Dev] Re: Do we need to remove everything that's deprecated?

2021-11-16 Thread Brett Cannon
On Tue, Nov 16, 2021 at 4:46 AM Petr Viktorin wrote: > On 16. 11. 21 1:11, Brett Cannon wrote: > > > > > > On Sun, Nov 14, 2021 at 3:01 PM Victor Stinner > <mailto:vstin...@python.org>> wrote: > > > > On Sun, Nov 14, 2021 at 6:34 PM Eric V. Sm

[Python-Dev] Re: SC Acceptance: PEP 646 -- Variadic Generics

2021-11-18 Thread Brett Cannon
I put the PEP back on our agenda to discuss this. On Wed, Nov 17, 2021 at 2:40 PM Guido van Rossum wrote: > Hi Barry, > > That's fantastic news! > > Somewhat embarrassingly, on typing-sig we're still discussing one or two > final tweaks. In particular, the PEP as accepted forbids a certain > con

[Python-Dev] Please be careful about changing PEPs post-submission to the SC

2021-11-18 Thread Brett Cannon
This is a personal plea (i.e. not coming from the SC at all), but in the last month we have had PEPs changed twice post-submission to the SC. That's a big time sink as we take multiple meetings to discuss a PEP and having things change underneath us causes us to have to re-evaluate our discussions

[Python-Dev] Re: Please be careful about changing PEPs post-submission to the SC

2021-11-19 Thread Brett Cannon
when we are ready again" is helpful to let us know to simply halt thinking and discussing the PEP. > > On Thu, Nov 18, 2021 at 12:04 PM Brett Cannon wrote: > >> This is a personal plea (i.e. not coming from the SC at all), but in the >> last month we have had PEPs changed

[Python-Dev] Expectations of typing (was: The current state of typing PEPs)

2021-11-30 Thread Brett Cannon
On Tue, Nov 30, 2021 at 9:09 AM Steven D'Aprano wrote: > On Tue, Nov 30, 2021 at 02:30:18PM +, Paul Moore wrote: > > > And to be clear, it's often very non-obvious how to annotate something > > - in https://github.com/pfmoore/editables I basically gave up because > > I couldn't work out how t

[Python-Dev] Re: Expectations of typing (was: The current state of typing PEPs)

2021-12-01 Thread Brett Cannon
On Tue, Nov 30, 2021 at 1:34 PM Paul Moore wrote: > On Tue, 30 Nov 2021 at 19:07, Brett Cannon wrote: > > > > On Tue, Nov 30, 2021 at 9:09 AM Steven D'Aprano > wrote: > >> > >> On Tue, Nov 30, 2021 at 02:30:18PM +, Paul Moore wrote: > >> &

[Python-Dev] Re: Expectations of typing (was: The current state of typing PEPs)

2021-12-02 Thread Brett Cannon
On Wed, Dec 1, 2021 at 10:40 PM Christopher Barker wrote: > I know this isn't really the place for this conversation, but: > > >> which is what `os.PathLike` represents, hence why `str` isn't covered by >> it); >> > > wait, what? It seems so clear to me that "PathLike" (as a type specifier) > wou

[Python-Dev] PEP template file now available

2021-12-06 Thread Brett Cannon
I just pushed an update to PEP 12 which includes a complete PEP template file. You can see the file at https://github.com/python/peps/blob/main/pep-0012/pep-.rst and it is also embedded in PEP 12 at https://python.github.io/peps/pep-0012/#template (it will hit the official URL eventually). ___

[Python-Dev] Re: subinterpreters and their possible impact on large extension projects

2021-12-14 Thread Brett Cannon
On Tue, Dec 14, 2021 at 9:41 AM Eric Snow wrote: > One of the open questions relative to subinterpreters is: how to > reduce the amount of work required for extension modules to support > them? Thanks to Petr Viktorin for a lot of work he's done in this > area (e.g. PEP 489)! Extensions also ha

[Python-Dev] Re: "immortal" objects and how they would help per-interpreter GIL

2021-12-14 Thread Brett Cannon
On Tue, Dec 14, 2021 at 10:23 AM Eric Snow wrote: > Most of the work toward interpreter isolation and a per-interpreter > GIL involves moving static global variables to _PyRuntimeState or > PyInterpreterState (or module state). Through the effort of quite a > few people, we've made good progress

[Python-Dev] Re: The python command help is too long

2021-12-20 Thread Brett Cannon
On Sat, Dec 18, 2021 at 4:00 PM Guido van Rossum wrote: > On Sat, Dec 18, 2021 at 2:16 PM Serhiy Storchaka > wrote: > >> The output of "python -h" is 104 lines long now. It was only 51 lines in >> 3.6. 35% of it is about the -X option, and 30% about environment >> variables. Also some lines in t

[Python-Dev] Re: RFC on Callable Syntax PEP

2021-12-20 Thread Brett Cannon
On Sun, Dec 19, 2021 at 8:26 PM Christopher Barker wrote: > > On 12/18/2021 3:13 PM, Batuhan Taskaya wrote: >> >> > tl;dr: I find it very troubling that we are going on a path where need >> > to increase the language complexity (syntax) only in the cause >> > 'easier' typing. > > > Which brings u

[Python-Dev] Re: RFC on Callable Syntax PEP

2021-12-20 Thread Brett Cannon
On Mon, Dec 20, 2021 at 3:44 AM Mark Shannon wrote: > Hi, > > Why not make Callable usable as a function decorator? > > > > The motivating example in the PEP is this: > > > def flat_map( > l: list[int], > func: Callable[[int], list[int]] > ) -> list[int]: > > > > Since, as the

[Python-Dev] Re: RFC on Callable Syntax PEP

2021-12-20 Thread Brett Cannon
As someone with use of this, would you find this useful (i.e. +1, +0)? Serhiy already said "no" in another thread. On Mon, Dec 20, 2021 at 4:38 AM Andrew Svetlov wrote: > Perhaps Serhiy did more accurate counting, my estimate is very rough. > > On Mon, Dec 20, 2021 at 2:15 PM Serhiy Storchaka >

[Python-Dev] Re: Function Prototypes

2022-01-05 Thread Brett Cannon
On Thu, Dec 23, 2021 at 5:13 PM Guido van Rossum wrote: > On Thu, Dec 23, 2021 at 3:24 PM Steven D'Aprano > wrote: > >> On Thu, Dec 23, 2021 at 02:09:50PM -0800, Guido van Rossum wrote: >> >> > Without decorator too (that was Lukasz’ idea). Why bother with the >> > decorator (*if* we were to go

[Python-Dev] Re: Minor inconvenience: f-string not recognized as docstring

2022-01-11 Thread Brett Cannon
On Tue, Jan 11, 2022 at 10:40 AM Gregory P. Smith wrote: > > On Tue, Jan 11, 2022 at 10:29 AM Guido van Rossum > wrote: > >> I personally think F-strings should not be usable as docstrings. If you >> want a dynamically calculated docstring you should assign it dynamically, >> not smuggle it in u

[Python-Dev] Re: Request to revert unittest and configparser incompatible changes in Python 3.11

2022-01-18 Thread Brett Cannon
On Tue, Jan 18, 2022 at 9:43 AM Richard Damon wrote: > > > On Jan 18, 2022, at 11:34 AM, Guido van Rossum wrote: > >  > At best it shows that deprecations are complicated no matter how well you > plan them. I remember that "noisy by default" deprecation warnings were > widely despised. > > On T

[Python-Dev] Re: Slowly bend the C API towards the limited API to get a stable ABI for everyone

2022-02-03 Thread Brett Cannon
On Thu, Feb 3, 2022 at 9:27 AM Victor Stinner wrote: > Hi Guido, > [SNIP] > > On Thu, Feb 3, 2022 at 1:40 AM Guido van Rossum wrote: > > [SNIP] > > > > Maybe we need to help there. For example IIRC conda-forge will build > conda packages -- maybe we should offer a service like that for whee

[Python-Dev] Re: Moving away from _Py_IDENTIFIER().

2022-02-03 Thread Brett Cannon
On Thu, Feb 3, 2022 at 6:37 AM Victor Stinner wrote: > By the way, Argument Clinic now produces way faster calling > conventions than hand-written METH_VARARGS with PyArg_ParseTuple(). It > would be make this tool available to 3rd party projects. > > Either extract it and put it on PyPI, but it m

[Python-Dev] Re: Moving away from _Py_IDENTIFIER().

2022-02-03 Thread Brett Cannon
On Thu, Feb 3, 2022 at 6:31 AM Victor Stinner wrote: > On Wed, Feb 2, 2022 at 11:43 PM Eric Snow > wrote: > > My plan is to replace our use of _Py_IDENTIFIER() with statically > > initialized string objects (as fields under _PyRuntimeState). That > > involves the following: > > > > * add a PyUn

[Python-Dev] Re: Slowly bend the C API towards the limited API to get a stable ABI for everyone

2022-02-04 Thread Brett Cannon
On Thu, Feb 3, 2022 at 3:53 PM Eric V. Smith wrote: > On 2/3/2022 12:15 PM, Victor Stinner wrote: > > I'm working bottom-to-top: prepare PyObject and PyVarObject to become > > opaque, *and* top-to-bottom: prepare subclasses (structures > > "inheriting" from PyObject and PyVarObject) to become opa

[Python-Dev] Re: Should we require IEEE 754 floating-point for CPython?

2022-02-07 Thread Brett Cannon
On Mon, Feb 7, 2022 at 11:02 AM Victor Stinner wrote: > Hi Mark, > > Aha, good, you posted an email to python-dev, good :-) Last days, I > was trying to collect more data about this topic, especially find > platforms which *don't* support IEEE 754, before posting to > python-dev. > > Nowadays, ou

[Python-Dev] Re: Should we require IEEE 754 floating-point for CPython?

2022-02-07 Thread Brett Cannon
On Mon, Feb 7, 2022 at 12:31 PM Gregory P. Smith wrote: > > > On Mon, Feb 7, 2022 at 11:06 AM Victor Stinner > wrote: > >> Hi Mark, >> >> Aha, good, you posted an email to python-dev, good :-) Last days, I >> was trying to collect more data about this topic, especially find >> platforms which *d

[Python-Dev] Re: Replace debug runtime checks in release mode with assertions in debug mode

2022-02-07 Thread Brett Cannon
On Mon, Feb 7, 2022 at 8:59 AM Victor Stinner wrote: > On Mon, Feb 7, 2022 at 5:48 PM Guido van Rossum wrote: > > So you're proposing to completely get rid of those three? > > I don't propose to remove them, but only call them if Python is built > in debug mode. Or remove them from the release b

[Python-Dev] Re: It's now time to deprecate the stdlib urllib module

2022-02-07 Thread Brett Cannon
On Mon, Feb 7, 2022 at 4:56 AM Steve Dower wrote: > On 2/6/2022 4:44 PM, Christian Heimes wrote: > > If I had the power and time, then I would replace urllib with a simpler, > > reduced HTTP client that uses platform's HTTP library under the hood > > (WinHTTP on Windows, NSURLSession (?) on macOS

[Python-Dev] Re: RFC on PEP 675: Arbitrary Literal Strings

2022-02-07 Thread Brett Cannon
Can I suggest adding a "Specification" section (see https://www.python.org/dev/peps/pep-0012/#suggested-sections for the suggested sections to have in a PEP)? When you first pull up the PEP it goes from "Rationale" to "Valid Locations for LiteralString". As a reader that doesn't point me at a vali

<    8   9   10   11   12   13   14   15   16   17   >