Re: [Python-Dev] Policy on refactoring/clean up

2018-06-27 Thread Kyle
n fixing actual problems. -- *Q::Drone's Co-Founder and Co-CEO* *Hervé "Kyle" MUTOMBO* *Envoyé depuis le web.* ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.pyt

[Python-Dev] Re: What is a public API?

2019-07-20 Thread Kyle Stanley
Brett Cannon wrote: > I agree with Raymond that if the calendar module was following the leading > underscore practice (which we should probably encourage all new modules to > follow for > consistency going forward) then I think the module should be updated to keep > the practice > going. > -Bre

[Python-Dev] Re: What is a public API?

2019-07-20 Thread Kyle Stanley
Serhiy Storchaka wrote: > Either we establish the rule that all non-public names must be > underscored, and do mass renaming through the whole stdlib. Or allow to > use non-underscored names for internal things and leave the sources in Personally, I would be the most in favor of doing a mass re

[Python-Dev] Re: The order of operands in the comparison

2019-07-22 Thread Kyle Stanley
Serhiy Storchaka wrote: > Thank you. The majority of the code uses needle on the right. There are > just 6 places where it is on the left, and the half of them look > copy-pasted, and in one place the C code differs from the corresponding > Python implementation. There is an order more places wh

[Python-Dev] Re: What is a public API?

2019-07-22 Thread Kyle Stanley
Brett Cannon wrote: > Same would happen with a rename where people's code suddenly broke. We > don't do renames on purpose without a proper deprecation cycle and doing that > en-mass would be extremely disruptive. Good point, this would probably have to be a gradual change if it did happen, rathe

[Python-Dev] Re: What is a public API?

2019-07-22 Thread Kyle Stanley
Upon further consideration and reading your response, I'm starting to think that the proposal to perform a mass renaming across stdlib might have been a bit too drastic, even if it was done over a longer period of time. Thanks for the detailed explanation of the costs, that significantly improve

[Python-Dev] Re: What is a public API?

2019-07-23 Thread Kyle Stanley
Barry Warsaw wrote: > This leads to the second problem, which is that it’s too easy for the __all__ > to get > out of sync with the module’s contents. Often a function or class is renamed, > removed, or > added without the __all__ being updated. IMO, this seems to be the best part of the @publi

[Python-Dev] Re: What is a public API?

2019-07-23 Thread Kyle Stanley
Steve Dower wrote: > So I apologise for mentioning that people care about import performance. > Let's ignore them/that issue for now and worry instead about making sure > people (including us!) know what the canonical reference for > public/internal is. Good point, the discussion about __all__,

[Python-Dev] Re: Comparing dict.values()

2019-07-23 Thread Kyle Stanley
I find myself in agreement with Inada (https://bugs.python.org/issue12445), in that comparing the values view between two dictionaries by itself would not be particularly useful for enough people to warrant implementing the comparison. In most situations when using the data structure, it is only

[Python-Dev] Re: Comparing dict.values()

2019-07-25 Thread Kyle Stanley
Serhiy Storchaka wrote: > Is there any precedence of raising an exception in the equality comparison? > Does 3 == "3" returning False make more sense to you? Personally, I don't find ``3 == "3"`` to be an equivalent comparison to ``d0.values() == d1.values()``. Generally, it makes sense when comp

[Python-Dev] Re: Comparing dict.values()

2019-07-25 Thread Kyle Stanley
Eric V. Smith wrote: >That makes things worse. Now the comparison is always true in a boolean >context. And presumably you'd want __ne__ to also return >NotImplemented, >so then both __eq__ and __ne__ would be true, since >bool(NotImplemented) >is True. Eric V Smith wrote: 7/25/2019 6:00 AM, Er

[Python-Dev] Re: Comparing dict.values()

2019-07-25 Thread Kyle Stanley
Brett Cannon wrote: > You're correct that I misspoke, but I personally still think a doc change > is the best solution. I would agree that a doc change should occur if it is decided that the current behavior is appropriate, but I would like to mention that in the current [documentation for `obj

[Python-Dev] Re: Comparing dict.values()

2019-07-25 Thread Kyle Stanley
Serhiy Storchaka wrote: > Actually, the == operator cannot return NotImplemented. Thanks for the clarification. What is the reason for this limitation and is it only possible for the `==` operator to return one of `None`, `False`, or `True`? It seems like it would be useful for it to be able to

[Python-Dev] Re: Comparing dict.values()

2019-07-25 Thread Kyle Stanley
Terry Reedy wrote: > Given the absence of a consensus on when values() views should be > considered equal, I strongly agree. I strongly oppose raising an exception. I am with you regarding the strong opposition regarding the raising of an exception. I don't think that the `==` operator should r

[Python-Dev] Re: Comparing dict.values()

2019-07-25 Thread Kyle Stanley
> I want a real-world application which requires it. > Without a strong use case, I think the discussion is just wasting time. I would have to agree. Initially I was in support of changing the behavior, but upon reading the responses of several core developers and further consideration, the most

[Python-Dev] Re: 🍝 New keyword in bpo: `newcomer friendly`

2019-07-26 Thread Kyle Stanley
> Essentially those "easy" issues aren't so easy, > and we're starting over. Is "easy" still going to be used for intermediate level issues or will it be no longer used? Apologies if this was already discussed in the initial thread, I don't have access to core-mentorship. _

[Python-Dev] Re: 🍝 New keyword in bpo: `newcomer friendly`

2019-07-27 Thread Kyle Stanley
Not sure if this would be the right place to mention it, but the side menu url/button "Easy issues" in bpo should probably be renamed to "Newcomer friendly" and the "dispname" property in the url could also be similarly updated. This could be done by changing the url from: [current](https://bugs.

[Python-Dev] Re: 🍝 New keyword in bpo: `newcomer friendly`

2019-07-27 Thread Kyle Stanley
Clarification: The url change is only for updating the "dispname" property, which is shown at the top of the page. It would change the header from: "List of issues - Easy issues" => "List of issues - Newcomer friendly" Also, I realized that I accidentally included the "nosy" property at the end,

[Python-Dev] Re: [core-workflow] Re: Re: %G🍝%@ New keyword in bpo: `newcomer friendly`

2019-07-29 Thread Kyle Stanley
Stephen J. Turnbull wrote: > In general, it's not obvious to me how much extra burden we want to > put on triagers. This tag has basically the same problems that "easy" > does, except that it deters experienced developers from snatching up > easy issues. I think we should see how this works out i

[Python-Dev] Re: Drop Solaris, OpenSolaris, Illumos and OpenIndiana support in Python

2020-10-30 Thread Kyle Stanley
+1 to remove support for Solaris going forward. 4 years is plenty of time to wait for someone to volunteer to maintain it, IMO. So my preference would be for option 3 to remove it now, but I wouldn't be opposed to option 2 either w/ deprecating support and waiting a couple versions to remove it. I'

[Python-Dev] Re: Who is target reader of tutorial?

2020-11-05 Thread Kyle Stanley
I can't speak for all of the members of the upcoming documentation WG, but as someone that will be on it (based on our discussions at the recent core dev sprint), my personal vote would be for keeping it as a comprehensive guide for beginners of Python. Detailed enough that it covers the fundamenta

[Python-Dev] Re: Please do not remove random bits of information from the tutorial

2020-11-09 Thread Kyle Stanley
On Sun, Nov 8, 2020 at 8:17 PM Inada Naoki wrote: > OK. Since checking all mails in the long thread is tedious job, I will > pick some up and leave a comment in the b.p.o. > Personally, I think that just linking to the python-dev thread in bpo (and/or PR) is adequate for most cases, especially i

[Python-Dev] Re: Please do not remove random bits of information from the tutorial

2020-11-09 Thread Kyle Stanley
Rather than trying to specifically transform the existing tutorial into a guide exclusively aimed at beginners, I think that we should use the guideline of: "Is this useful information in 95% of real-world use cases or does it have a strong niche purpose that will be useful at *some *point for sig

[Python-Dev] Re: PEP 642 v2: Explicit constraint patterns *without* question marks in the syntax

2020-11-14 Thread Kyle Stanley
On Sat, Nov 14, 2020 at 7:54 AM Nick Coghlan wrote: > On Sat, 14 Nov 2020 at 09:51, Greg Ewing > wrote: > > > > On 14/11/20 7:45 am, Brandt Bucher wrote: > > > with (using your own syntactic flavor): > > > ``` > > > case >first, *>middle, >last: > > > rebuilt = first, *middle, last > > > ca

[Python-Dev] Re: PEP 642 v2: Explicit constraint patterns *without* question marks in the syntax

2020-11-14 Thread Kyle Stanley
On Sun, Nov 15, 2020 at 1:56 AM Chris Angelico wrote: > On Sun, Nov 15, 2020 at 4:28 PM Kyle Stanley wrote: > > > > FWIW, I'd like to add my +1 to usage of "as" for spelling class capture > patterns. This is by far the clearest and easiest to read form I'

[Python-Dev] Re: Please explain how to migrate when a function is removed, thanks ;-)

2021-01-20 Thread Kyle Stanley
Thanks for bringing attention to this, Victor, and to Ken Jin (GH: Fidget-Spinner) for the PR. I've just completed reviewing and merging the PR, so hopefully anyone affected will now have a more clear idea of how to migrate their asyncio code to 3.10. Having the porting method explicitly documented

[Python-Dev] Re: Please explain how to migrate when a function is removed, thanks ;-)

2021-01-21 Thread Kyle Stanley
On Jan 20, 2021 at 9:51 PM Chros Jerdonek wrote: > Is there / would it make sense to have a section analogous to "Porting to > Python X" that covers "Make All DeprecationWarnings Go Away in X"? If we > had such a section, the "Porting to" section could be constructed by > copying the relevant bit

[Python-Dev] The importance of mental health

2021-05-10 Thread Kyle Stanley
have overcome past struggles* . -- --Kyle R. Stanley, Python Core Developer (what is a core dev? <https://devguide.python.org/coredev/>) *Pronouns: they/them **(why is my pronoun here?* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-ch

[Python-Dev] Farewell, for now :)

2021-05-31 Thread Kyle Stanley
With Loving Regards, -- --Kyle R. Stanley, Python Core Developer (what is a core dev? <https://devguide.python.org/coredev/>) *Pronouns: they/them **(why is my pronoun here?* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-c

[Python-Dev] Re: PEP 661: Sentinel Values

2021-06-06 Thread Kyle Stanley
As someone who's had to make use of the pattern `_sentinel = object()` a few times within stdlib code, I'd like to give a strong +1 for the proposal to add a new `sentinel()` function. This is much more intuitive, easier to look up, etc. From my experience, it's a common enough pattern to be well

[Python-Dev] Re: Why list.sort() uses mergesort and not timsort?

2021-06-07 Thread Kyle Stanley
On Sun, Jun 6, 2021 at 7:09 PM Dan Stromberg wrote: > I've got a comparison of sort algorithms in both Cython and Pure Python > (your choice) at: > https://stromberg.dnsalias.org/~strombrg/sort-comparison/ > ...including a version of timsort that is in Cython or Pure Python. > Thanks for sharing

[Python-Dev] Re: Is the Python review process flawed?

2021-07-01 Thread Kyle Stanley
bsolute 100% certainty that no regressions or future unexpected issues will occur as a result of the change. Also, for fun, here's a pythonized version of the quote: “[Guido] said that I was the wisest of all the [pythonistas]. It is because I alone, of all the [pythonistas], know that I know

[Python-Dev] Re: Bug report

2021-07-21 Thread Kyle Stanley
s to (or be able to fix it). Best Regards, -- --Kyle R. Stanley, Python Core Developer (what is a core dev? <https://devguide.python.org/coredev/>) *Pronouns: they/them **(why is my pronoun here?* <http://feministing.com/2015/02/03/how-us

[Python-Dev] Re: python-dev thread w/ Marco Sulla

2021-08-16 Thread Kyle Stanley
I can agree with the general premise of what Antoine is saying, but to me even as a non-participant, the following quote from the thread Brett linked seems a clear CoC violation: I repeat, even the worst AI will understand from the context what I meant. > But let me do a very rude example: > > Wha

[Python-Dev] Re: Bug fixed in the bugs.python.org OAuth-based authentication: user logged as the wrong account

2021-09-13 Thread Kyle Stanley
Thanks for the fix! This could have caused some serious issues, so glad we were able to address it ahead of time. On Mon, Sep 13, 2021 at 5:06 AM Victor Stinner wrote: > Hi, > > A bug has been identified and *fixed* in the OAuth-based > authentication code used on the Python bug tracker bugs.pyt

[Python-Dev] Re: pre-PEP: Unicode Security Considerations for Python

2021-11-02 Thread Kyle Stanley
I'd suggest both: briefer, easier to read write up for average user in docs, more details/semantics in informational PEP. Thanks for working on this, Petr! On Tue, Nov 2, 2021 at 2:07 PM David Mertz, Ph.D. wrote: > This is an amazing document, Petr. Really great work! > > I think I agree with Ma

[Python-Dev] Re: Preventing Unicode-related gotchas (Was: pre-PEP: Unicode Security Considerations for Python)

2021-11-15 Thread Kyle Stanley
0_o color me impressed, I did not think that would be legal syntax. Would be interesting to include in a textbook, if for nothing else other than to academically demonstrate that it is possible, as I suspect many are not aware. -- --Kyle R. Stanley, Python Core Developer (what is a core

[Python-Dev] Re: The Steering Council elections.

2021-11-15 Thread Kyle Stanley
t is great to see that the incumbents desire to have a wide pool of applicants for the longevity of Python; rather than being on the SC indefinitely. Best Regards, -- --Kyle R. Stanley, Python Core Developer (what is a core dev? <https://devguide.python.org/coredev/>) *Pronouns: they/them *

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

2021-11-16 Thread Kyle Stanley
ate, rather than 2 versions for all. Module removal certainly takes more effort to adjust in code vs simple function name change with 1:1 replacement. -- --Kyle R. Stanley, Python Core Developer (what is a core dev? <https://devguide.python.org/coredev/>) *Pronouns: they/them **(why is my pro

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

2021-11-18 Thread Kyle Stanley
FWIW that seems like a reasonable approach, at least to me. On Thu, Nov 18, 2021, 5:29 PM Guido van Rossum wrote: > I know PEP 646 was one of these. In our defense, we *did* notify the SC > that there was a pending issue ( > https://github.com/python/steering-council/issues/59#issuecomment-95172

[Python-Dev] Re: peps, devguide, voters repositories: master branch renamed to main

2021-12-04 Thread Kyle Stanley
Thanks for the update! Although possibly a minor inconvenience to some, I am certainly of the belief that our choice in language has a subtle, yet powerful effect on our perception of the world around us, so although some may see it as needless, I think small changes such as "master" to "main" are

[Python-Dev] Re: [python-committers] Sad news from Zurich

2021-12-11 Thread Kyle Stanley
May he rest in peace, I can't even fathom the impact PIL has had on Python over the years. On Fri, Dec 10, 2021 at 3:20 PM Guido van Rossum wrote: > A former core dev who works at Google just passed the news that Fredrik > Lundh (also known as Effbot) has died. > > Fredrik was an early Python co

[Python-Dev] Re: PEP 572 TargetScopeError

2019-08-08 Thread Kyle Stanley
Barry Warsaw wrote: > The PEP doesn’t really go into the rationale for why a new exception is being > defined, > and in the issue I’ve argued that we should just raise SyntaxError in those > cases. To me, > “TargetScopeError” is pretty obscure and doesn’t give users an obvious clue > as to what

[Python-Dev] Re: What is a public API?

2019-08-09 Thread Kyle Stanley
Nick Coghlan wrote: > It's not an unwritten rule, as it already has its own subsection in > PEP 8: > https://www.python.org/dev/peps/pep-0008/#public-and-internal-interfaces > The main question in this thread is what to do about standard library > modules that were written before those documented

[Python-Dev] Re: What is a public API?

2019-08-09 Thread Kyle Stanley
Kyle Stanley wrote: > It would also be appropriate to provide any user attempting to import > a module that is going to be prepended with an underscore with > warnings, and at least a couple of versions to update their code. Clarification: When I mentioned prepending a module with an u

[Python-Dev] Inline links in Misc/NEWS entries

2019-08-12 Thread Kyle Stanley
Recently, on Discuss, I created a new topic: https://discuss.python.org/t/should-news-entries-contain-documentation-links/2127 However, many may not have the time to read the full post or don’t regularly check the core workflow category on Discuss, so I'll provide a shortened version here. Dur

[Python-Dev] Re: Inline links in Misc/NEWS entries

2019-08-13 Thread Kyle Stanley
eST features. But if that's also an issue, a more explicit reST hyper link could be provided with: \`Link text < http://target>\`_. However, direct links are probably the most likely to become deprecated or lead to dead ends, so the other options would be more preferable for less maintenanc

[Python-Dev] Re: Inline links in Misc/NEWS entries

2019-08-13 Thread Kyle Stanley
als are to further improve the documentation and other resources for newer users of the language. Thanks, Kyle Stanley On Tue, Aug 13, 2019 at 3:58 AM Ned Deily wrote: > On Aug 13, 2019, at 00:20, Kyle Stanley wrote: > > On Tue, Aug 13, 2019 at 2:41 AM Mariatta > wrote: >

[Python-Dev] Re: Inline links in Misc/NEWS entries

2019-08-13 Thread Kyle Stanley
> There seems to be some sentiment that it's perfectly fine to exclusively use plaintext in every news entry. Oops, that third sentence was a typo, I didn't intend to repeat myself there. On Tue, Aug 13, 2019 at 6:31 PM Kyle Stanley wrote: > > Note that there is an open

[Python-Dev] Re: Inline links in Misc/NEWS entries

2019-08-13 Thread Kyle Stanley
ew, so in general they would end up being less time consuming anyways. Also, thanks for the tips! I'll definitely look into helping with this. Thanks, Kyle Stanley On Tue, Aug 13, 2019 at 7:30 PM Ned Deily wrote: > On Aug 13, 2019, at 15:31, Kyle Stanley wrote: > > > In

[Python-Dev] Re: Inline links in Misc/NEWS entries

2019-08-13 Thread Kyle Stanley
e future as well. Thanks, Kyle Stanley On Tue, Aug 13, 2019 at 11:30 PM Wes Turner wrote: > Could a bot be written to suggest upgraded markup for Misc/NEWS entries as > a PR? > > Most e.g. class, method, and function references probably need ReST markup > AND a more specific fu

[Python-Dev] Re: Inline links in Misc/NEWS entries

2019-08-14 Thread Kyle Stanley
provide instructions on when it's appropriate to utilize. Thanks, Kyle Stanley On Wed, Aug 14, 2019 at 3:31 AM Terry Reedy wrote: > On 8/13/2019 6:31 PM, Kyle Stanley wrote: > > > The primary purpose of me creating this topic was because there seems to > > be some sentimen

[Python-Dev] Re: Inline links in Misc/NEWS entries

2019-08-15 Thread Kyle Stanley
ing/#what-s-new-and-news-entries > > On Thu, Aug 15, 2019 at 3:39 AM Kyle Stanley wrote: > >> > Also, for IDLE, news entries to idlelib/NEWS.txt >> > where markup, as opposed to unicode, is noise. >> >> Interesting, I actually wasn't aware of the dist

[Python-Dev] Re: Inline links in Misc/NEWS entries

2019-08-16 Thread Kyle Stanley
ers. Once I open the PR for it in the devguide, I'll be sure to send a message in this topic which includes a link to it. It would greatly benefit from review from those who are less familiar with documentation. That will help to ensure the section is easy to understand for the intended

[Python-Dev] Re: Inline links in Misc/NEWS entries

2019-08-16 Thread Kyle Stanley
appreciate feedback from contributors and developers less experienced with documentation to ensure that the section is easy to understand for the intended target audience. Also, review from those who are experienced with documentation and news entries is needed to ensure it is as accurate as possible. Tha

[Python-Dev] Re: Inline links in Misc/NEWS entries

2019-08-19 Thread Kyle Stanley
> the talk I gave last month at PyOhio ( https://www.pyohio.org/2019/presentations/137) > Right now I have the slides up as a view-only share in my Google Drive ( bit.ly/bskinn-pyohio2019-intersphinx). Perhaps it would be useful to link to them? Or, to host a PDF someplace more permanent, and link

[Python-Dev] Re: Announcing the new Python triage team on GitHub

2019-08-22 Thread Kyle Stanley
eated here: https://github.com/python/cpython/pull/14976. Even if it hadn't been recreated, I think it would still be a good example as of a stale PR, since it had changes requested for over a year with no response from the author since then. Regards, Kyle Stanley On Thu, Aug 22, 2019 at 2:2

[Python-Dev] Re: Announcing the new Python triage team on GitHub

2019-08-22 Thread Kyle Stanley
Kyle Stanley wrote: > as it has been awaiting changes since Feb 20, 2018 Clarification: The author addressed the suggested changes on Feb 19, 2017 but had made no response after Brett added the ``awaiting changes`` label. As a related question, would it be okay for triagers to manually add

[Python-Dev] Re: Announcing the new Python triage team on GitHub

2019-08-22 Thread Kyle Stanley
Mariatta wrote: > It still requires earning trust from at least one core developer who will approve their request, which I don't actually believe is an easy > thing to do. Agreed, it may be a low bar in comparison to the 66% approval required for becoming a core developer, but it's definitely not

[Python-Dev] Re: Announcing the new Python triage team on GitHub

2019-08-22 Thread Kyle Stanley
> That was Brett's bot for backfilling the "awaiting ..." label to PRs created before we had any "awaiting .." label. A script was used to > automatically determine the stage of the PR and apply appropriate label. Ah, that makes sense. I wasn't aware that personal GitHub accounts were previously u

[Python-Dev] Re: Announcing the new Python triage team on GitHub

2019-08-23 Thread Kyle Stanley
> For instance, I don't think a triager should be able to edit other users' comments or lock conversations, but I'm afraid GitHub > doesn't provide that level of granularity (correct?). You are correct in that GitHub does not allow customization of the permissions, but those with the "Triage" per

[Python-Dev] Re: Python for Windows (python-3.7.4.exe) location confusing

2019-09-08 Thread Kyle Stanley
Terry Jan Reedy wrote: > "This installer also installs the multiversion py.exe launcher if doing so would not be a downgrade. If you have admin access, we recommend installing one py.exe for all users. See xxx for how to use py.exe. [ ] Install py.exe for all users. +1, Particularly on this pa

[Python-Dev] Re: The Python 2 death march

2019-09-18 Thread Kyle Stanley
Benjamin, what are you thoughts on usage of the "needs backport to 2.7" label? For most of the PRs I've reviewed I tend to avoid adding it myself, but I've seen it used periodically. It seems to be used rather infrequently ( https://github.com/python/cpython/pulls?q=is%3Apr+label%3A%22needs+backpor

[Python-Dev] Re: static variables in CPython - duplicated _Py_IDENTIFIERs?

2019-09-23 Thread Kyle Stanley
> How easy would it be to search the sources and the docs for the ones that are currently public but not documented? Comparing the docs and .c files for functions that are not documented would be fairly trivial, but it's very difficult to define something as being public if it's not documented, si

[Python-Dev] Adding GitHub usernames to the developer log

2019-09-24 Thread Kyle Stanley
Recently, Brett updated the developer log in the devguide (https://devguide.python.org/developers/) to fetch the names of each core developer and the date they were given commit privileges from the private python-committers repository. I think it would also be quite useful to include GitHub userna

[Python-Dev] Re: Adding GitHub usernames to the developer log

2019-09-25 Thread Kyle Stanley
> But I will say that listing our GitHub usernames with our real names is not required to tell who is a core developer. In GitHub's UI there are multiple places it will tell you if a person is a member of the repository/team Within the GitHub UI if you're not a member of the organization, it tells

[Python-Dev] Re: Adding GitHub usernames to the developer log

2019-09-25 Thread Kyle Stanley
nt for a decent while before I started contributing to Python). This would be a non-issue with a public listing of core developer real names -> GitHub usernames that isn't dependent on bpo. On Wed, Sep 25, 2019 at 7:12 AM Victor Stinner wrote: > Le mer. 25 sept. 2019 à 08:24, Kyle Stanley

[Python-Dev] Re: Currently working on the release of Python 3.8.0rc1

2019-10-03 Thread Kyle Stanley
> Can you help with the "What's New" document? After seeing this, I went through the whatsnew for 3.8 and found a couple of typos and broken links (from Sphinx roles that were slightly off). I opened a PR to fix as many as I was able to: https://github.com/python/cpython/pull/16535. Raymond will b

[Python-Dev] Re: Need help to fix test_asyncio issues

2019-10-21 Thread Kyle Stanley
> Recently, I started to experiment "./python -m test [options] -F -j100" to attempt to reproduce some tricky race conditions: -j100 spawns 100 worker processes in parallel and -F stands for --forever (run tests in loop and stop at the first failure). Interesting, even as someone who has recently

[Python-Dev] Re: Awareness creation of a new IDE

2019-10-21 Thread Kyle Stanley
> You don't need permission to support Python in a commercial IDE. It's open source. Adding to this, see https://docs.python.org/3/license.html#terms-and-conditions-for-accessing-or-otherwise-using-python for the complete licensing information on Python. On a somewhat related note to the licensin

[Python-Dev] Re: Allow custom headers in `http.server`

2019-10-26 Thread Kyle Stanley
> Probably python-list/comp.lang.python mailing list/news group is the best place Since this involves a potential suggested change (adding a feature to assign custom headers to http.server), python-ideas or the "Ideas" section of https://discuss.python.org/ would also be appropriate. On Sat, Oct

[Python-Dev] Re: A much better tokenize.untokenize function

2019-11-04 Thread Kyle Stanley
> This is all irrelevant if you haven't signed the CLA*. IMO, this shouldn't be an argument against the proposed changes, as the CLA is fairly straightforward and only takes 24-48 hours to process. Unless the OP specifically is unable to or doesn't want to sign the CLA, it won't be a significant c

[Python-Dev] Re: Implementation of PEP-0604

2019-11-04 Thread Kyle Stanley
> I agree with Nick, this is indeed big, but not impossible. If you are not sure yet whether you will work on implementation, you can focus on polishing the PEP text, and then if it is accepted and you will decide to give implementation to someone else, we will find a volunteer. Unless I'm misunde

[Python-Dev] Re: PEP proposal to limit various aspects of a Python program to one million.

2019-12-03 Thread Kyle Stanley
> The number of live coroutines in a running interpreter. Could you further elaborate on what is meant by "live coroutines"? My guesses (roughly from most likely to least likely) would be: 1) All known coroutine objects in a state of either CORO_RUNNING or CORO_SUSPENDED, but *not* CORO_CREATED

[Python-Dev] Re: Deprecating the "u" string literal prefix

2019-12-03 Thread Kyle Stanley
> BTW, I think 2to3 can help to move from 2&3 code to 3-only code. > Instead, we can do: > * Don't recommend u-prefix except in Python 2&3 code. > * Provide a tool to remove the u-prefix. +1, this seems like the smoothest way of handling it and has very minimal impact on users. In 5+ years from

[Python-Dev] Re: Travis CI for backports not working.

2019-12-06 Thread Kyle Stanley
Steve Dower wrote: > As a related aside, I've been getting GitHub Actions support together > (which I started at the sprints). Would adding support for GitHub Actions make it easier/faster to temporarily disable and re-enable specific CI services when they're having external issues? IIUC, that see

[Python-Dev] Re: Should we require all deprecations to have a removal version that we follow through on?

2019-12-06 Thread Kyle Stanley
Victor Stinner wrote: > Isn't it already the current unwritten deprecation process? Personally, I don't think we should rely on an unwritten process for something as important and potentially breaking as a deprecation process. Regardless of the outcome of this discussion, I think we should try to

[Python-Dev] Re: Travis CI for backports not working.

2019-12-06 Thread Kyle Stanley
han closing+reopening the PR. Restarting the checks is typically a last resort since intermittent regression test failures are a concern, but it's highly useful when the failure is occurring due to external factors (such as a recently merged PR or issues with the CI service itself). On Fri

[Python-Dev] Re: PEP 611 -- why limit coroutines and classes?

2019-12-09 Thread Kyle Stanley
> (b) Why limit coroutines? It's just another Python object and has no operating resources associated with it. Perhaps your definition of coroutine is different, and you are thinking of OS threads? This was my primary concern with the proposed PEP. At the moment, it's rather trivial to create one

[Python-Dev] Re: PEP 611 -- why limit coroutines and classes?

2019-12-09 Thread Kyle Stanley
, 2019 at 10:17 PM Khazhismel Kumykov wrote: > > > On Mon, Dec 9, 2019, 18:48 Kyle Stanley wrote: > >> > (b) Why limit coroutines? It's just another Python object and has no >> operating resources associated with it. Perhaps your definition of >> coroutine i

[Python-Dev] Re: PEP 611 -- why limit coroutines and classes?

2019-12-09 Thread Kyle Stanley
> I also would suggest for PEP 611 that any limits are discoverable (maybe in sys) so it can be used by other implementations like Jython. I agree, I think that sys would likely be the most reasonable place to read these limits from. Also, it seems like a good location for setting of the limits, i

[Python-Dev] Re: Please be more precise when commenting on PEP 611.

2019-12-09 Thread Kyle Stanley
Chris Angelico wrote: > We have people who believe that a bit > mask will slow things down, others who claim that improved cache > locality will speed things up, and Mark asks us to please justify our > objections with numbers. But surely it's up to Mark to show numbers > first? +1. While it would

[Python-Dev] Re: PEP 611 -- why limit coroutines and classes?

2019-12-10 Thread Kyle Stanley
7;re not (reasonably) configurable by most users, I would consider that to further reinforce my previous statement that we should have some form of concrete evidence; to prove that imposing the limits will provide tangible benefits to the vast majority of Python users. On Tue, Dec 10, 2019 at 4:45 AM S

[Python-Dev] Re: Dropping coroutines from PEP 611.

2019-12-11 Thread Kyle Stanley
With the removal of the coroutine limit, I think that PEP 611 will be a lot easier to consider. Personally, I've gone from -1 to +0. But, with the class limit also being rather controversial, I think the PEP would benefit significantly from backing that up with some form of analysis on memory usage

[Python-Dev] Re: PEP 611 -- why limit coroutines and classes?

2019-12-11 Thread Kyle Stanley
ith each FD, but I believe this can be limited through the FD option F_SETPIPE_SZ ( https://linux.die.net/man/2/fcntl). Note: I was unable to find a credible source on the minimum memory usage per additional FD, so clarification on that would be appreciated. On Wed, Dec 11, 2019 at

[Python-Dev] Re: PEP 611 -- why limit coroutines and classes?

2019-12-11 Thread Kyle Stanley
ill worthwhile to write. I suspect that the topic of "coroutine object limits" is likely to come up again in the future. On Wed, Dec 11, 2019 at 4:46 PM Antoine Pitrou wrote: > On Mon, 9 Dec 2019 21:42:36 -0500 > Kyle Stanley wrote: > > > > (b) Why limit corout

[Python-Dev] Re: Travis CI for backports not working.

2019-12-12 Thread Kyle Stanley
Victor Stinner wrote: > What is the issue? Can someone please open a bug report at https://bugs.python.org/ so I can try to investigate? >From my understanding, it looks to be pyenv related and not something we can fix on our end, at least based on the build logs: https://travis-ci.org/python/cpyt

[Python-Dev] Re: Travis CI for backports not working.

2019-12-12 Thread Kyle Stanley
that keeps the breakage from landing on > master? > > On Thu, Dec 12, 2019 at 5:46 PM Kyle Stanley wrote: > >> Victor Stinner wrote: >> > What is the issue? Can someone please open a bug report at >> https://bugs.python.org/ so I can try to investigate? >> >>

[Python-Dev] Re: Parameters of str(), bytes() and bytearray()

2019-12-15 Thread Kyle Stanley
Serhiy Storchaka wrote: > Forbids calling str() without object if encoding or errors are > specified. It is very unlikely that this can break a real code, so I > propose to make it an error without a deprecation period. +1, I suspect that nobody would intentionally pass an argument to the encoding

[Python-Dev] Re: Parameters of str(), bytes() and bytearray()

2019-12-16 Thread Kyle Stanley
as UTF-8, assume the user meant str(bytes_obj, encoding='utf-8') Personally, I'm more in favor of (1) since it's much more explicit and obvious, but I think (2) would at least be more useful than the current behavior. On Sun, Dec 15, 2019 at 8:13 PM Chris Angelico wrote: > On Mon,

[Python-Dev] Re: Parameters of str(), bytes() and bytearray()

2019-12-16 Thread Kyle Stanley
pect via string conversion. Thanks for the insight. On Mon, Dec 16, 2019 at 3:43 AM Eric V. Smith wrote: > On 12/16/2019 3:05 AM, Kyle Stanley wrote: > > Chris Angelico wrote: > > ANY object can be passed to str() in order to get some sort of valid > > printable form. The awkw

[Python-Dev] Re: Parameters of str(), bytes() and bytearray()

2019-12-16 Thread Kyle Stanley
haka wrote: > You can get an error here if you run Python with -bb. This is a > temporary option to catch common errors of porting from Python 2. Huh, interesting. On Mon, Dec 16, 2019 at 3:59 AM Serhiy Storchaka wrote: > 16.12.19 02:55, Kyle Stanley пише: > > I'd much pref

[Python-Dev] Re: Parameters of str(), bytes() and bytearray()

2019-12-16 Thread Kyle Stanley
Inada Naoki wrote: > If we find it broke some software, we can step back to regular > deprecation workflow. > Python 3.9 is still far from beta yet. That's why I'm +1 on these proposals. IMO, since this would be changing a builtin function, we should at least use a version+2 deprecation cycle (in

[Python-Dev] Re: Parameters of str(), bytes() and bytearray()

2019-12-16 Thread Kyle Stanley
Kyle Stanley wrote: > or making *object* a positional only argument. Typo: I meant "positional only parameter", not "argument". On Mon, Dec 16, 2019 at 4:39 AM Kyle Stanley wrote: > > Inada Naoki wrote: > > If we find it broke some software, we can step back

[Python-Dev] Re: Should set objects maintain insertion order too?

2019-12-23 Thread Kyle Stanley
Larry Hastings wrote: > a hypothetical collections.OrderedSet would probably work just fine. I'm also in agreement with adding a collections.OrderedSet. There certainly seems to be a practical use case for a Set that preserves insertion order, but with significant push back to modifying the existi

[Python-Dev] Re: Should set objects maintain insertion order too?

2019-12-23 Thread Kyle Stanley
the "Add" ones. This should provide a decent general idea though. On Mon, Dec 23, 2019 at 8:12 PM Guido van Rossum wrote: > To begin with, please compare performance of dict-with-None-values to that > of a set, for operations that can be expressed by both (e.g. both have > up

[Python-Dev] Re: Should set objects maintain insertion order too?

2019-12-23 Thread Kyle Stanley
10.22558353268 Some more in-depth comparisons might be required for addition of single items to the containers. I might experiment further with this at some point in the next week or so, likely with implementing proper tests that omit the time to initialize the container. On Mon, De

[Python-Dev] Re: Should set objects maintain insertion order too?

2019-12-23 Thread Kyle Stanley
Tim Peters wrote: > Sorry! A previous attempt to reply got sent before I typed anything :-( No worries, I only saw the link in the footer to the PSF CoC, and I was mildly concerned for a moment. My first thought was "Oh no, what did I do?". Thanks for clearing that up (: > The collision resoluti

[Python-Dev] Re: Should set objects maintain insertion order too?

2020-01-07 Thread Kyle Stanley
> The only `OrderedSet` use I have seen in the wild is https://github.com/python-hyper/uritemplate/search?q=orderedset&unscoped_q=orderedset . A more generalized Python code search across GitHub of "orderedset" returns ~500k results: https://github.com/search?l=Python&q=orderedset&type=Code . Of

[Python-Dev] Re: Python Language Summit at PyCon 2020

2020-01-28 Thread Kyle Stanley
On the attendance application, there is currently an incorrect link to the informational page for the Language Summit: " https://us.pycon.org/2020/events/language-summit/";. Either the link could be changed to " https://us.pycon.org/2020/events/languagesummit/"; or " https://us.pycon.org/2020/even

  1   2   >