Re: [Python-Dev] The `for y in [x]` idiom in comprehensions

2018-02-22 Thread Barry Warsaw
On Feb 22, 2018, at 11:04, Serhiy Storchaka wrote: > > Stephan Houben proposed an idiom which looks similar to new hypothetic syntax: > >result = [y + g(y) for x in range(10) for y in [f(x)]] > > `for y in [expr]` in a comprehension means just assigning expr to y. I never > seen this idiom

Re: [Python-Dev] How is the GitHub workflow working for people?

2018-02-23 Thread Barry Warsaw
On Feb 21, 2018, at 19:03, Dan Stromberg wrote: > > Is flake8 that much better than pylint, that pylint wouldn't even be > discussed? I honestly don’t use pylint all that much these days, but when I was evaluating them years ago, I found pylint to be too noisy about not-incorrect code. I als

Re: [Python-Dev] How is the GitHub workflow working for people?

2018-02-23 Thread Barry Warsaw
On Feb 22, 2018, at 02:12, Antoine Pitrou wrote: > Everytime I contribute to a project which has automatic style checks in > CI, I find myself having to push pointless "cleanup" commits because > the CI is barking at me for some ridiculous reason (such as putting two > linefeeds instead of one be

Re: [Python-Dev] How is the GitHub workflow working for people?

2018-02-23 Thread Barry Warsaw
> On Feb 22, 2018, at 08:08, Antoine Pitrou wrote: > > That's a fair point I hadn't considered. OTOH the style issues I > usually comment on as a reviewer aren't the kind that would be caught > by an automated style check (I tend to ask for comments or docstrings, > or be nitpicky about some va

Re: [Python-Dev] How is the GitHub workflow working for people?

2018-02-23 Thread Barry Warsaw
On Feb 22, 2018, at 09:09, Eric Snow wrote: > > I had exactly that experience on one particularly large Go project (on > GitHub, with slow CI, driven by bots). One thing that’s nice to set up if you can is multiple, parallel, independent CI runs. E.g. if your full test suite takes a long time

Re: [Python-Dev] Any way to only receive emails for threads that I am participating in?

2018-03-03 Thread Barry Warsaw
On Mar 2, 2018, at 20:41, Dan Stromberg wrote: > > Maybe gmane combined with a threaded newsreader (NNTP client) would be > close enough? While I guzzle the firehose of python-dev from my inbox, Gmane+NNTP is how I read many other Python mailing lists, including python-ideas. It’s a great sol

Re: [Python-Dev] Better support for consuming vendored packages

2018-03-22 Thread Barry Warsaw
On Mar 22, 2018, at 09:58, Gregory Szorc wrote: > > Not all consumers of Python packages wish to consume Python packages in the > common `pip install ` + `import ` manner. Some Python > applications may wish to vendor Python package dependencies such that known > compatible versions are always

Re: [Python-Dev] Better support for consuming vendored packages

2018-03-22 Thread Barry Warsaw
On Mar 22, 2018, at 12:33, Oleg Broytman wrote: > > On Thu, Mar 22, 2018 at 12:30:02PM -0700, Barry Warsaw > wrote: >> Developers are mostly going to use pip, and maybe a requirements.txt, > > +virtual envs to avoid problems with global site-packages. Yep, that was

Re: [Python-Dev] Python version numbers

2018-04-03 Thread Barry Warsaw
On Apr 3, 2018, at 05:51, Paul G wrote: > Switching to CalVer is a pretty clear sign that there is now a "rolling > backwards compatibility window", and it allows Python to skip right over the > mythical "Python 4" and directly to "Python 21". Additionally, since the > version number will be t

Re: [Python-Dev] Python version numbers

2018-04-03 Thread Barry Warsaw
On Apr 3, 2018, at 13:08, Brett Cannon wrote: > Are we at the PEP/language summit topic point yet in this discussion since > Guido has said he's not interested in changing the status quo? ;) Versioning > is like naming variables, so this thread could go on forever. Yeah probably so. And if yo

Re: [Python-Dev] Enum, Flag, __contains__, and False vs TypeError

2018-04-04 Thread Barry Warsaw
On Apr 4, 2018, at 11:32, Ethan Furman wrote: > > (A) A standard Enum class is a container of Enum members. It cannot hold > anything else. However, it has been returning False both in cases where the > in-question object was an Enum of a different class (a Fruit in a Color, for > example) a

Re: [Python-Dev] PEP 572: Assignment Expressions

2018-04-18 Thread Barry Warsaw
On Apr 18, 2018, at 10:43, MRAB wrote: > Some languages use '=' for assignment, others for equality, but do you know > of a language that uses ':=' for equality' or '==' for assignment? Clearly we should take a page from the ternary operator and make the assignment expression operator just ugl

Re: [Python-Dev] PEP 572: Assignment Expressions

2018-04-18 Thread Barry Warsaw
On Apr 18, 2018, at 11:17, Chris Angelico wrote: > At the moment, it isn't aware of 'del’. I don’t know if it’s relevant to the current discussion, but don’t forget about implicit dels: def foo(): x = 1 try: 1/0 except ZeroDivisionError as x: pass print(x) Thi

Re: [Python-Dev] PEP 572: Assignment Expressions

2018-04-23 Thread Barry Warsaw
On Apr 23, 2018, at 13:01, Ethan Furman wrote: > > On 04/22/2018 10:44 PM, Tim Peters wrote: >> >> >> I find myself warming more to binding expressions the more I keep them >> in mind while writing new code. And I really like the term “binding expressions” because that’s how I think about thi

Re: [Python-Dev] assignment expressions: an alternative proposal

2018-04-24 Thread Barry Warsaw
On Apr 24, 2018, at 06:55, Antoine Pitrou wrote: > > If the ambition is to find a piece of syntax that reads as "binds", > then we can use a variation on the FLUFL operator: "<->". FLUFL Override Approved! -Barry signature.asc Description: Message signed with OpenPGP

Re: [Python-Dev] (Looking for) A Retrospective on the Move to Python 3

2018-04-26 Thread Barry Warsaw
On Apr 26, 2018, at 09:28, Eric Snow wrote: > > On Thu, Apr 26, 2018 at 10:25 AM, Eric Snow > wrote: >> In pondering our approach to future Python major releases, I found >> myself considering the experience we've had with Python 3. The whole >> Py3k effort predates my involvement in the commu

[Python-Dev] Superseding PEPs (was Re: PEP 394: Allow the `python` command to not be installed (and other minor edits))

2018-04-30 Thread Barry Warsaw
On Apr 30, 2018, at 06:36, Nick Coghlan wrote: > Instead of editing old PEPs, would it make sense to write a new one > which replaces the old one? As a general rule, at least the way I think about it, Informational PEPs can mostly be updated inline, evolving with new insights as we go along. A

Re: [Python-Dev] Python startup time

2018-05-02 Thread Barry Warsaw
Thanks for bringing this topic up again. At $day_job, this is a highly visible and important topic, since the majority of our command line tools are written in Python (of varying versions from 2.7 to 3.6). Some of those tools can take upwards of 5 seconds or more just to respond to —help, whic

Re: [Python-Dev] Python startup time

2018-05-02 Thread Barry Warsaw
On May 2, 2018, at 09:42, Gregory Szorc wrote: > As for things Python could do to make things better, one idea is for "package > bundles." Instead of using .py, .pyc, .so, etc files as separate files on the > filesystem, allow Python packages to be distributed as standalone "archive" > files.

Re: [Python-Dev] Python startup time

2018-05-02 Thread Barry Warsaw
On May 2, 2018, at 15:24, Gregory Szorc wrote: > > FWIW, Google has a patched glibc that implements dlopen_with_offset(). > It allows you to do things like memory map the current binary and then > dlopen() a shared library embedded in an ELF section. > > I've seen the code in the branch at > htt

Re: [Python-Dev] Slow down...

2018-05-07 Thread Barry Warsaw
On May 7, 2018, at 11:49, Craig Rodrigues wrote: > > Would it be reasonable to request a 10 year moratorium on making changes to > the core Python language, > and for the next 10 years only focus on things that do not require core > language changes, > such as improving/bugfixing existing libra

Re: [Python-Dev] Python startup time - daemon

2018-05-11 Thread Barry Warsaw
On May 11, 2018, at 12:23, Guido van Rossum wrote: > > Indeed, we have an implementation of this specific to mypy. Is there anything in mypy’s implementation that can be generalized into a library? -Barry signature.asc Description: Message signed with OpenPGP ___

Re: [Python-Dev] What is the rationale behind source only releases?

2018-05-16 Thread Barry Warsaw
On May 16, 2018, at 00:35, Alex Walters wrote: > > In the spirit of learning why there is a fence across the road before I tear > it down out of ignorance [1], I'd like to know the rationale behind source > only releases of cpython. Historically, it was a matter of resources. Making binary rele

Re: [Python-Dev] Preserving the definition order of class namespaces.

2015-05-27 Thread Barry Warsaw
On May 27, 2015, at 06:34 PM, Nick Coghlan wrote: >I'd actually like to pursue a more nuanced view of what's permitted in >maintenance releases, based on a combination of the language moratorium >PEP, and an approach inspired by PEP 466, requiring that every feature >added in a maintenance release

[Python-Dev] time-based releases (was Re: Preserving the definition order of class namespaces.)

2015-05-27 Thread Barry Warsaw
On May 27, 2015, at 05:15 PM, Terry Reedy wrote: >How about a feature release once a year, on a schedule we choose as best for >us. We discussed timed releases ages ago and they were rejected by the majority. Time-based releases can make a lot of sense, especially if the interval is short enough.

Re: [Python-Dev] Single-file Python executables (was: Computed Goto dispatch for Python 2)

2015-05-28 Thread Barry Warsaw
On May 28, 2015, at 11:39 AM, Donald Stufft wrote: >You don’t need a "fully functioning Python" for a single file binary, you >only need enough to actually run your application. For example, if you're >making an application that can download files over HTTP, you don't need to >include parts of the

[Python-Dev] Keeping competitive with Go (was Re: Computed Goto dispatch for Python 2)

2015-05-28 Thread Barry Warsaw
Go seems to be popular where I work. It is replacing Python in a number of places, although Python (and especially Python 3) is still a very important part of our language toolbox. There are several reasons why Go is gaining popularity. Single-file executables is definitely a reason; it makes de

Re: [Python-Dev] Single-file Python executables (was: Computed Goto dispatch for Python 2)

2015-05-28 Thread Barry Warsaw
On May 28, 2015, at 09:23 AM, Chris Barker wrote: >Barry Warsaw wrote: >>I do think single-file executables are an important piece to Python's >>long-term competitiveness. > >Really? It seems to me that desktop development is dying. What are the >critical use-cases

Re: [Python-Dev] Single-file Python executables (was: Computed Goto dispatch for Python 2)

2015-05-28 Thread Barry Warsaw
On May 28, 2015, at 12:44 PM, Donald Stufft wrote: >Pex would be improved by having native support for importing .so’s from within >a zipfile via zipimport. It would also be improved by having good, built in >support for extraneous resources in the stdlib too. Completely agree on both points. Ha

Re: [Python-Dev] Keeping competitive with Go (was Re: Computed Goto dispatch for Python 2)

2015-05-28 Thread Barry Warsaw
On May 28, 2015, at 11:48 PM, Matthias Klose wrote: >And the very same place where you are working is investing in getting shared >libraries working for Go. Single binaries may be popular for distributing end >user applications, but definitely not for distributing a core OS or a SDK. Yep, I ment

Re: [Python-Dev] 2.7 is here until 2020, please don't call it a waste.

2015-05-29 Thread Barry Warsaw
On May 29, 2015, at 04:04 PM, Guido van Rossum wrote: >There are a fair number of people on this thread whose employer pays them to >work on Python. My guess is that as Python 2.7 gets longer in the tooth, and it becomes harder to motivate volunteers to shepherd contributed patches into Python 2,

Re: [Python-Dev] 2.7 is here until 2020, please don't call it a waste.

2015-05-30 Thread Barry Warsaw
On May 30, 2015, at 06:55 PM, Nick Coghlan wrote: >Intel are looking to get involved in CPython core development >*specifically* to work on performance improvements, so it's important >to offer folks in the community good reasons for why we're OK with >seeing at least some of that work applied to

Re: [Python-Dev] RM for 3.6?

2015-06-01 Thread Barry Warsaw
On May 30, 2015, at 10:09 AM, Serhiy Storchaka wrote: >Isn't it a time to assign release manager for 3.6-3.7? Indeed! Please welcome Ned Deily as RM for 3.6: https://www.python.org/dev/peps/pep-0494/ Cheers, -Barry pgpArSFCqg7XM.pgp Description: OpenPGP digital signature

[Python-Dev] Getting ready for Python 3.5

2015-06-23 Thread Barry Warsaw
[Apologies for the cross-posting! -BAW] For Ubuntu 15.10 (Wily Werewolf), we want to make Python 3.5 the default Python 3 version. It's currently undecided whether we will keep Python 3.4 as a supported version, but a lot of that depends on how easily an archive port to Python 3.5 goes. Ideally,

Re: [Python-Dev] What's New editing

2015-07-07 Thread Barry Warsaw
On Jul 06, 2015, at 09:32 PM, Raymond Hettinger wrote: >FWIW, it took me 100+ hours. Doing this right is a non-trivial undertaking >(in modern times, there are an astonishing number of changes per release). >That said, it is rewarding work that makes a difference. Indeed. During distro Python

[Python-Dev] Issue #15014 - SMTP AUTH initial-response (beta exception requested)

2015-07-07 Thread Barry Warsaw
Larry and others, I'd like to bring your attention to issue #15014. This issue added arbitrary auth methods to smtplib, which is a good thing. Implicitly though, a regression was introduced w.r.t. RFC 4954's optional initial-response for the AUTH command, for authentication methods that support

Re: [Python-Dev] Issue #15014 - SMTP AUTH initial-response (beta exception requested)

2015-07-07 Thread Barry Warsaw
On Jul 07, 2015, at 02:53 PM, Terry Reedy wrote: >To me, the main question is whether you are sure that your proposal is the >right fix, or whether you might reasonably do something different (with the >new arguments) if changes were reverted for the present and you two took more >time to think ab

Re: [Python-Dev] Issue #15014 - SMTP AUTH initial-response (beta exception requested)

2015-07-09 Thread Barry Warsaw
On Jul 09, 2015, at 08:47 PM, Nick Coghlan wrote: >That strikes me as just the kind of >not-quite-as-finished-as-we-thought case that the beta cycle is >designed to flush out, so the minor further enhancement sounds like a >good idea to me. Cool. RDM provided some good feedback in the review, so

Re: [Python-Dev] How far to go with user-friendliness

2015-07-14 Thread Barry Warsaw
On Jul 14, 2015, at 02:06 PM, Dima Tisnek wrote: >Michael and Kushal are of the opinion that "assret" is a common typo >of "assert" and should be supported in a sense that it also triggers >AttributeError and is not silently ignored like a mocked user >attribute. It's seems like a dubious special

Re: [Python-Dev] PEP-498: Literal String Formatting

2015-08-10 Thread Barry Warsaw
On Aug 09, 2015, at 06:14 PM, David Mertz wrote: >That said, there *is* one small corner where I believe f-strings add >something helpful to the language. There is no really concise way to spell: > > collections.ChainMap(locals(), globals(), __builtins__.__dict__). > >If we could spell that as,

Re: [Python-Dev] PEP-498: Literal String Formatting

2015-08-10 Thread Barry Warsaw
On Aug 11, 2015, at 03:26 AM, Steven D'Aprano wrote: >I think I would be happy with f-strings, or perhaps i-strings if we use >Nick's ideas about internationalisation, and limit what they can evaluate to >name lookups, attribute lookups, and indexing, just like format(). I still think you really

Re: [Python-Dev] PEP-498: Literal String Formatting

2015-08-10 Thread Barry Warsaw
On Aug 10, 2015, at 02:49 PM, Eric V. Smith wrote: >It's possible. But my point is that Barry doesn't even want >attribute/item getters for an i18n solution, and I'm not willing to >restrict it that much. Actually, attribute chasing is generally fine, and flufl.i18n supports that. Translators can

Re: [Python-Dev] PEP-498: Literal String Formatting

2015-08-11 Thread Barry Warsaw
On Aug 10, 2015, at 11:05 PM, ISAAC J SCHWABACHER wrote: >code.putlines(f""" >static char {entry.doc_cname}[] = "{ >split_string_literal(escape_bytestring(docstr))}"; > >{ # nested! >f""" >#if CYTHON_COMPILING_IN_CPYTHON >struct wrapperbase {entry.wrapperbase_cname}; >#endif >""" if entry.

Re: [Python-Dev] PEP-498: Literal String Formatting

2015-08-17 Thread Barry Warsaw
On Aug 17, 2015, at 11:02 AM, Paul Moore wrote: >print(f"Iteration {n}: Took {end-start) seconds") This illustrates (more) problems I have with arbitrary expressions. First, you've actually made a typo there; it should be "{end-start}" -- notice the trailing curly brace. Second, what if you

Re: [Python-Dev] PEP-498: Literal String Formatting

2015-08-17 Thread Barry Warsaw
On Aug 18, 2015, at 12:58 AM, Chris Angelico wrote: >The linters could tell you that you have no 'end' or 'start' just as >easily when it's in that form as when it's written out in full. >Certainly the mismatched brackets could easily be caught by any sort >of syntax highlighter. The rules for f-s

[Python-Dev] Compiler hints to control how f-strings are construed

2015-08-21 Thread Barry Warsaw
On Aug 17, 2015, at 01:36 PM, Guido van Rossum wrote: >> 1. Barry wants the substitutions to look like $identifier and possibly >> ${identifier}, and the PEP 498 proposal just uses {}. >> >> 2. There needs to be a way to identify interpolated strings and i18n >> strings, and possibly combinations

Re: [Python-Dev] PEPs and PEP 8 changes

2015-09-05 Thread Barry Warsaw
On Sep 05, 2015, at 03:57 PM, Jim J. Jewett wrote: >Would it be reasonable to ask PEPs to start including a section on any >recommended changes to PEP8? (e.g., "If an embedded expression >doesn't fit on a single line, factor it out to a named variable.") Yes, I think it's reasonable to encourage

Re: [Python-Dev] PEP 498: Literal String Interpolation is ready for pronouncement

2015-09-05 Thread Barry Warsaw
On Sep 04, 2015, at 08:01 PM, Guido van Rossum wrote: >And I'm ready to accept it. As I've mentioned to Eric, I think it's a great PEP, so congratulations on getting one through The Gauntlet. I know that in my own code, I'm looking forward to using it in however many years it takes for 3.6 to be

Re: [Python-Dev] Choosing an official stance towards module deprecation in Python 3

2015-09-08 Thread Barry Warsaw
On Sep 08, 2015, at 10:02 AM, Guido van Rossum wrote: >#2 sounds fine to me. Agreed. -Barry ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/pytho

Re: [Python-Dev] PEP: Collecting information about git

2015-09-13 Thread Barry Warsaw
On Sep 12, 2015, at 03:54 PM, Oleg Broytman wrote: >This Informational PEP collects information about git. There is, of course, a >lot of documentation for git, so the PEP concentrates on more complex (and >more related to Python development) issues, scenarios and examples. Thanks for this Oleg.

Re: [Python-Dev] PEP: Collecting information about git

2015-09-16 Thread Barry Warsaw
On Sep 16, 2015, at 09:34 AM, R. David Murray wrote: >My experience with DVCS started with bazaar, moved on to hg for the >CPython project, and finally git. Through all of that I did not >understand the DAG, and had trouble wrapping my mind around what was >going on, despite being able to get thi

Re: [Python-Dev] Proposing the deprecation of the pyvenv script

2015-09-17 Thread Barry Warsaw
On Sep 17, 2015, at 06:40 PM, Brett Cannon wrote: >I propose that the pyvenv script be deprecated in Python 3.5.1 and >removed in Python 3.8. The reason for this proposal is because it is >non-obvious what version of Python a pyvenv command is tied to (heck, >it isn't necessarily obvious that it's

Re: [Python-Dev] Proposing the deprecation of the pyvenv script

2015-09-18 Thread Barry Warsaw
On Sep 18, 2015, at 07:53 PM, Nick Coghlan wrote: >I currently use pyvenv directly, but I agree with starting a migration >to only supporting the more explicit "python -m venv". There's always >an inherent ambiguity on *nix with unqualified version sensitive >Python commands as to whether they're

[Python-Dev] Washington DC Python sprint report

2015-09-28 Thread Barry Warsaw
Yesterday (27-Sep-2015), four Washington DC area Python developers got together for a local Python hacking sprint. Andrew, Eric, Jason, and I were joined remotely by the esteemed R. David Murray. We did stuff and had fun! We hope to do stuff and have fun again! If you want to join us for stuff a

Re: [Python-Dev] Washington DC Python sprint report

2015-09-28 Thread Barry Warsaw
On Sep 28, 2015, at 08:22 AM, Guido van Rossum wrote: >I saw that you had a need for an asyncio tutorial. I wonder if the "500 >lines" chapter on asyncio would help? I didn't write it; I only write the >500 lines of code, A. Jesse Jiryu Davis wrote the text, and it's wonderful: >http://aosabook.or

Re: [Python-Dev] Washington DC Python sprint report

2015-09-28 Thread Barry Warsaw
On Sep 28, 2015, at 02:38 PM, Guido van Rossum wrote: >Your comments make total sense -- we're just short on people who can write >that kind of docs. :-( Oh well, maybe someday we will! ;) -Barry pgpGVDxk58hN8.pgp Description: OpenPGP digital signature _

Re: [Python-Dev] PEP acceptance and SIGs

2015-09-30 Thread Barry Warsaw
On Sep 30, 2015, at 09:14 PM, Alexander Belopolsky wrote: >When I faced a similar situation with PEP 495, Guido's advise was "I think >that a courtesy message to python-dev is appropriate, with a link to the >PEP and an invitation to discuss its merits on datetime-sig." [1] Certainly Discussions-

Re: [Python-Dev] Issue #25256: Add sys.debug_build?

2015-10-02 Thread Barry Warsaw
On Oct 02, 2015, at 11:46 AM, Victor Stinner wrote: >Should I write a PEP for a new field in sys.implementation? Specifically PEP 421 says that a PEP is needed if the new sys.implementation attribute is required to be defined in all implementations, i.e. it's a new required attribute. Will debug

Re: [Python-Dev] Migrating to Python 3: the python 3 install issue

2015-10-02 Thread Barry Warsaw
On Oct 03, 2015, at 01:05 AM, Victor Stinner wrote: >Ubuntu is also working on a similar change. I don't know when it will happen. For the desktop, we're aiming for 16.04 LTS. Cheers, -Barry ___ Python-Dev mailing list Python-Dev@python.org https://mai

Re: [Python-Dev] Bytcode "magic tag"

2015-10-28 Thread Barry Warsaw
On Oct 28, 2015, at 08:35 AM, Eric V. Smith wrote: >The "following table" is a comment, that contains a few references to >the tag "cpython-", specifically cpython-32. It doesn't seem >that the tag is routinely updated in the comment. IIRC, it used to have to be changed in the code, but with this

Re: [Python-Dev] PYC filename and optimization

2015-11-05 Thread Barry Warsaw
On Nov 05, 2015, at 11:33 AM, Victor Stinner wrote: >- Lib/__pycache__/os.cpython-36.pyc: default mode >- Lib/__pycache__/os.cpython-36.fat-0.pyc: FAT mode > >With -O: > >- Lib/__pycache__/os.cpython-36.opt-1.pyc: default mode >- Lib/__pycache__/os.cpython-36.fat-1.pyc: FAT mode > > >With -OO: > >

Re: [Python-Dev] Clarification of PEP 394 for scripts that run under Python 2 and 3

2015-11-13 Thread Barry Warsaw
On Nov 13, 2015, at 10:32 PM, Damien George wrote: >1. What is the true intent of PEP 394 when only Python 3 is installed? Is >"python" available or not to run scripts compatible with 2.x and 3.x? > >2. Is it possible to write a shebang line that supports all variations of >Python installations o

Re: [Python-Dev] Request for pronouncement on PEP 493 (HTTPS verification backport guidance)

2015-11-23 Thread Barry Warsaw
On Nov 24, 2015, at 10:18 AM, Nick Coghlan wrote: >Since we already know Red Hat are OK with the draft recommendations, >and I missed the RHEL 7.2 release date anyway, perhaps Barry or >Matthias might be interested in tilting at the Ubuntu 14.04 LTS stable >release update windmill? I know there wa

Re: [Python-Dev] Request for pronouncement on PEP 493 (HTTPS verification backport guidance)

2015-11-23 Thread Barry Warsaw
On Nov 17, 2015, at 11:44 PM, Nick Coghlan wrote: >For Debian, Ubuntu and SUSE, their original determinations for the >relevant CVE were "too intrusive to backport", so folks currently need >to upgrade to newer versions of those distros to get the improved >default behaviour: This is an example o

Re: [Python-Dev] Request for pronouncement on PEP 493 (HTTPS verification backport guidance)

2015-11-25 Thread Barry Warsaw
There's a lot to process in this thread, but as I see it, the issue breaks down to these questions: * How should PEP 493 be implemented? * What should the default be? * How should PEP 493 be worded to express the right tone to redistributors? Let me take on the implementation details here. On

Re: [Python-Dev] Request for pronouncement on PEP 493 (HTTPS verification backport guidance)

2015-11-25 Thread Barry Warsaw
On Nov 24, 2015, at 09:16 AM, Toshio Kuratomi wrote: >It sounds like the implementation sections of the PEP are acceptable Well, see my follow up to MAL's email. From Rob's and RDM's responses, it seems we're not alone. :) I like all your other proposed changes, although I'll note the preferenc

Re: [Python-Dev] Request for pronouncement on PEP 493 (HTTPS verification backport guidance)

2015-11-25 Thread Barry Warsaw
On Nov 24, 2015, at 02:12 PM, Nick Coghlan wrote: >On 24 November 2015 at 11:59, Barry Warsaw wrote: >> We'd have to also handle >> migration paths to newer Ubuntu releases, which probably means removing the >> config file on future upgrades. > >You'll nee

Re: [Python-Dev] Request for pronouncement on PEP 493 (HTTPS verification backport guidance)

2015-11-25 Thread Barry Warsaw
On Nov 25, 2015, at 03:39 PM, R. David Murray wrote: >I think we should include the environment variable support in CPython >and be done with it (nuke the PEP otherwise). Which is what I've >thought from the beginning :) +1. I'd like to see my proposed convenience function added too. I'm -0 on

Re: [Python-Dev] Request for pronouncement on PEP 493 (HTTPS verification backport guidance)

2015-11-26 Thread Barry Warsaw
On Nov 26, 2015, at 02:13 PM, Nick Coghlan wrote: >PEP 476 rejected providing a public indefinitely maintained API for this, so >PEP 493 is specifically about helping commercial redistributors offer a >smoother transition plan to customers without affecting the public Python >level API, and withou

Re: [Python-Dev] Request for pronouncement on PEP 493 (HTTPS verification backport guidance)

2015-11-26 Thread Barry Warsaw
On Nov 26, 2015, at 03:06 PM, Nick Coghlan wrote: >I'm not a big fan of it either, but it's the way sustainable >commercial open source distribution works in practice: While it's inevitable that redistributors have to deviate from upstream, in Debian and Ubuntu, we really try to keep that at a mi

Re: [Python-Dev] Request for pronouncement on PEP 493 (HTTPS verification backport guidance)

2015-11-30 Thread Barry Warsaw
On Nov 27, 2015, at 04:04 PM, Nick Coghlan wrote: >New draft pushed: https://hg.python.org/peps/rev/f602a47ea795 > >This is a significant rewrite that switches the PEP to a Standards Track PEP >proposing two new features for 2.7.12+: an "ssl._verify_https_certificates()" >configuration function, a

[Python-Dev] Python 4 musings (was Re: Deleting with setting C API functions)

2015-12-02 Thread Barry Warsaw
On Dec 02, 2015, at 08:35 AM, Guido van Rossum wrote: >I wholeheartedly agree with what Nick writes there As do I. One interesting point will be what *nix calls the /usr/bin thingie for Python 4. It would seem weird to call it /usr/bin/python3 and symlink it to say /usr/bin/python4.0 but maybe

Re: [Python-Dev] Python 4 musings (was Re: Deleting with setting C API functions)

2015-12-02 Thread Barry Warsaw
On Dec 02, 2015, at 11:26 PM, Gregory P. Smith wrote: >Except that we should skip version 4 and go directly to 5 in homage to >http://www.montypython.net/scripts/HG-handgrenade.php. Five is right out. https://youtu.be/QM9Bynjh2Lk?t=3m35s -Barry pgplrHBCVtY0F.pgp Description: OpenPGP digital s

Re: [Python-Dev] async/await behavior on multiple calls

2015-12-15 Thread Barry Warsaw
On Dec 15, 2015, at 05:29 PM, Roy Williams wrote: >@Kevin correct, that's the point I'd like to discuss. Most other >mainstream languages that implements async/await expose the programming >model with Tasks/Futures/Promises as opposed to coroutines PEP 492 states >'Objects with __await__ method

[Python-Dev] PEP 9 - plaintext PEP format - is officially deprecated

2016-01-05 Thread Barry Warsaw
I don't think this will be at all controversial. Brett suggested, and there was no disagreement from the PEP editors, that plain text PEPs be deprecated. reStructuredText is clearly a better format, and all recent PEP submissions have been in reST for a while now anyway. I am therefore withdrawin

Re: [Python-Dev] [Python-ideas] PEP 9 - plaintext PEP format - is officially deprecated

2016-01-11 Thread Barry Warsaw
On Jan 11, 2016, at 03:25 PM, anatoly techtonik wrote: >On Wed, Jan 6, 2016 at 2:49 AM, Barry Warsaw wrote: > >> reStructuredText is clearly a better format > >Can you expand on that? I use markdown everywhere reST is better than plain text. Markdown is not a PEP format opti

Re: [Python-Dev] Boolean value of an Enum member

2016-01-15 Thread Barry Warsaw
On Jan 15, 2016, at 10:22 AM, Ethan Furman wrote: >So the question now is: for a standard Enum (meaning no other type besides >Enum is involved) should __bool__ look to the value of the Enum member to >determine True/False, or should we always be True by default and make the >Enum creator add thei

Re: [Python-Dev] Update PEP 7 to require curly braces in C

2016-01-18 Thread Barry Warsaw
On Jan 17, 2016, at 07:10 PM, Brett Cannon wrote: >Anyone object if I update PEP 7 to remove the optionality of curly braces >in PEP 7? +1 for requiring them everywhere, -1 for a wholesale reformatting of existing code. New code and significant refactoring/rewriting can adopt braces everywhere.

Re: [Python-Dev] PEP 509: Add a private version to dict

2016-01-18 Thread Barry Warsaw
On Jan 18, 2016, at 11:43 PM, Victor Stinner wrote: >Is someone opposed to this PEP 509? > >The main complain was the change on the public Python API, but the PEP >doesn't change the Python API anymore. > >I'm not aware of any remaining issue on this PEP. Have you done any performance analysis fo

Re: [Python-Dev] FAT Python (lack of) performance

2016-01-25 Thread Barry Warsaw
On Jan 25, 2016, at 07:16 PM, Victor Stinner wrote: >Barry also wrote: "Did you address my suggestion on python-ideas to >make the new C API optionally compiled in?" > >Well, it is an option, but I would prefer to have the API for AST >optimizer directly built in Python. In my plan, it would be,

Re: [Python-Dev] Fun with ancient unsupported platforms

2016-01-28 Thread Barry Warsaw
Just as long as you can still build and run Python on Guido's ancient SGI machine . -Barry ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-

Re: [Python-Dev] More optimisation ideas

2016-02-01 Thread Barry Warsaw
On Feb 01, 2016, at 11:40 AM, R. David Murray wrote: >Well, Brett said it would be optional, though perhaps the above >paragraph is asking about doing it in our Windows build. But the linux >distros might make also use the option if it exists, so the question is >very meaningful. However, you'd

Re: [Python-Dev] Licensing issue (?) for Frozen Python? [was: More optimisation ideas]

2016-02-06 Thread Barry Warsaw
On Feb 06, 2016, at 04:38 PM, Chris Angelico wrote: >Right, sure. The technical problems are still there. Although I'm >fairly confident that Debian's binaries would correspond to Debian's >source - but honestly, if I'm looking for sources for anything other >than the kernel, I probably want to ge

Re: [Python-Dev] PEP 515: Underscores in Numeric Literals

2016-02-11 Thread Barry Warsaw
On Feb 11, 2016, at 09:22 AM, Georg Brandl wrote: >based on the feedback so far, I revised the PEP. There is now >a much simpler rule for allowed underscores, with no exceptions. >This made the grammar simpler as well. I'd be +1, but there's something missing from the PEP: what the underscores *

Re: [Python-Dev] PEP 515: Underscores in Numeric Literals

2016-02-11 Thread Barry Warsaw
On Feb 11, 2016, at 05:57 PM, Georg Brandl wrote: >D'oh :) I added (hopefully) clarifying wording. I saw the diff - perfect! Thanks. -Barry ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscr

[Python-Dev] Accepted: PEP 493 (HTTPS verification migration tools for Python 2.7)

2016-03-02 Thread Barry Warsaw
As BDFL-Delegate, I am officially accepting PEP 493. Congratulations Nick, Robert, and MAL. I want to personally thank Nick for taking my concerns into consideration, and re-working the PEP to resolve them. Thanks also to everyone who contributed to the discussion. Cheers, -Barry pgp7WPyEgE2s

Re: [Python-Dev] When should pathlib stop being provisional?

2016-04-06 Thread Barry Warsaw
On Apr 05, 2016, at 09:29 PM, Ethan Furman wrote: >We should either remove it or make the rest of the stdlib work with it. >Currently, pathlib.*Paths are second-class citizens, and working with them is >not significantly better than working with os.path.* simply because we have >to cast to str eve

Re: [Python-Dev] When should pathlib stop being provisional?

2016-04-06 Thread Barry Warsaw
On Apr 06, 2016, at 12:44 PM, Nick Coghlan wrote: >The next challenge would then be to make a list of APIs to be updated >for 3.6 to implicitly accept "rich path" objects via the agreed >convention, with pathlib.PurePath used as a test class: > >* open() >* codecs.open() (et al) >* io.* >* os.path

Re: [Python-Dev] RFC: PEP 509: Add a private version to dict

2016-04-14 Thread Barry Warsaw
On Apr 14, 2016, at 09:49 PM, Victor Stinner wrote: >It would be nice to hear Barry Warsow who was opposed to the PEP in >january. He wanted to wait until FAT Python was proven to really be faster, >which is still not case right now. (I mean that I didnt't run seriously >benchmarks, but early macr

Re: [Python-Dev] RFC: PEP 509: Add a private version to dict

2016-04-14 Thread Barry Warsaw
On Apr 14, 2016, at 11:17 PM, Victor Stinner wrote: >You're right that incrementing the global version is useless for these >specific cases, and using the version 0 should work. It only matters >that the version (version? version tag?) is different. > >I will play with that. If I don't see any iss

Re: [Python-Dev] PEP 8 updated on whether to break before or after a binary update

2016-04-15 Thread Barry Warsaw
On Apr 15, 2016, at 09:53 AM, Guido van Rossum wrote: >After a fruitful discussion on python-ideas I've decided that it's fine to >break lines *before* a binary operator. Thanks Guido, your changes look great. -Barry ___ Python-Dev mailing list Python-

Re: [Python-Dev] When the infamous Bier trunk hits ... where is our Python backup?

2016-04-21 Thread Barry Warsaw
On Apr 21, 2016, at 10:43 PM, Chris Angelico wrote: >I still have no clue what you're talking about. Every project has a >leader. If Guido dies, goes insane [1], or gets bored with the Python >project, someone else can and will take over. Fortunately, the Python Secret Underground (PSU) which mos

Re: [Python-Dev] Terminal console

2016-04-26 Thread Barry Warsaw
On Apr 26, 2016, at 09:02 AM, Paul Moore wrote: >I'm not against having an easy reminder of how to unsubscribe, but the >clickable link on every message that requests that the poster be >unsubscribed seems like the wrong way to do it, to me... And yet, we have it anyway! This list turns on full

Re: [Python-Dev] Terminal console

2016-04-26 Thread Barry Warsaw
On Apr 27, 2016, at 01:40 AM, Steven D'Aprano wrote: >I don't think it's just Google. If I remember correctly, having a clearly >visible and *working* unsubscribe link in the body of the email (not merely >hidden away in the headers where non-technical users would never think to >look) is a requir

Re: [Python-Dev] Yearly PyPI breakage

2016-05-05 Thread Barry Warsaw
On May 05, 2016, at 11:58 PM, Mark Lawrence via Python-Dev wrote: >On 05/05/2016 23:22, Stefan Krah wrote >> >> Fredrik Lundh is also affected (and might not have received any mail, >> same as me): >> >> https://pypi.python.org/pypi/PIL Maybe, but then there's the friendly fork: https://pypi.p

Re: [Python-Dev] File system path PEP, 3rd draft

2016-05-13 Thread Barry Warsaw
On May 13, 2016, at 06:37 PM, Brett Cannon wrote: >PEP: NNN >Title: Adding a file system path protocol >Version: $Revision$ >Last-Modified: $Date$ >Author: Brett Cannon , >Koos Zevenhoven >Status: Draft >Type: Standards Track >Content-Type: text/x-rst >Created: 11-May-2016 >Post-History:

Re: [Python-Dev] Removing the provisional label from pathlib

2016-05-24 Thread Barry Warsaw
On May 24, 2016, at 02:03 PM, Koos Zevenhoven wrote: >I guess we might consider adding __fspath__ in maintenance releases, >and make open() support it? That would cover a significant share of >use cases, although it might be weird if code written for 3.5.2 >doesn't run on 3.5.1... Please, no. We

Re: [Python-Dev] PEP 492: __aiter__ should return async iterator directly instead of awaitable

2016-06-06 Thread Barry Warsaw
On Jun 06, 2016, at 01:02 PM, Łukasz Langa wrote: >There’s a problem with this approach. It will force people to write >deprecated code because you never know if your library is going to run on >3.5.0 or 3.5.1. Barry, Ubuntu wily, xenial and yakkety currently package >3.5.0 or 3.5.1. When 3.5.2 is

Re: [Python-Dev] Coding practice for context managers

2013-10-21 Thread Barry Warsaw
On Oct 21, 2013, at 08:46 PM, Nick Coghlan wrote: >There's also the fact that I prefer the current lower case names, but >strongly dislike using lower case names for classes (despite the fact >closing was included in the original contextlib with a non PEP 8 compliant >class name). Ha! The only t

Re: [Python-Dev] Coding practice for context managers

2013-10-21 Thread Barry Warsaw
On Oct 21, 2013, at 08:46 PM, Nick Coghlan wrote: >There's also the fact that I prefer the current lower case names, but >strongly dislike using lower case names for classes (despite the fact >closing was included in the original contextlib with a non PEP 8 compliant >class name). I think PEP 8 n

<    1   2   3   4   5   6   7   8   9   10   >