Re: [Python-Dev] PEPs: ``.. code:: python`` or ``::`` (syntaxhighlighting)

2017-12-02 Thread Steve Dower
I tried using code blocks while writing PEP 551 but they weren’t highlighted on the python.org rendering. Personally I think it would be great, provided a good colour scheme is available (some default schemes are... not always works of art). I’m not sure who is responsible for that side of thin

Re: [Python-Dev] Guarantee ordered dict literals in v3.7?

2017-12-18 Thread Steve Dower
On 18Dec2017 2309, Steven D'Aprano wrote: > [A LOT OF THINGS I AGREE WITH] I agree completely with Steven's reasoning here, and it bothers me that what is an irrelevant change to many users (dict becoming ordered) seems to imply that all users of dict have to be updated. I have never needed Ordere

Re: [Python-Dev] Guarantee ordered dict literals in v3.7?

2017-12-19 Thread Steve Dower
On 19Dec2017 1004, Chris Barker wrote: Nathaniel Smith has pointed out that eval(pprint(a_dict)) is supposed to return the same dict -- so documented behavior may already be broken. Two relevant quotes from the pprint module docs: >>> The pprint module provides a capability to “pretty-print” a

Re: [Python-Dev] subprocess not escaping "^" on Windows

2018-01-07 Thread Steve Dower
Quoting the /c and /k values to cmd.exe is... complicated, to say the least. I struggle to get it right for a single example, let alone generalising it. The /s option also has an impact – sometimes it helps you avoid double-escaping everything, but not always. Writing complex shell=True command

Re: [Python-Dev] subprocess not escaping "^" on Windows

2018-01-08 Thread Steve Dower
On 09Jan2018 0744, eryk sun wrote: It's common to discourage using `shell=True` because it's considered insecure. One of the reasons to use CMD in Windows is that it tries ShellExecuteEx if CreateProcess fails. ShellExecuteEx supports "App Paths" commands, file actions (open, edit, print), UAC el

Re: [Python-Dev] [RELEASE] Python 3.7.0a4 is now available fortesting

2018-01-09 Thread Steve Dower
FWIW, the ansi and mbcs encodings on Windows do exactly this (as does the oem encoding with a minor twist). Feel free to reuse either alias if it makes sense, or make sure a new one also works on Windows. Top-posted from my Windows phone From: Victor Stinner Sent: Wednesday, January 10, 2018 3

Re: [Python-Dev] Deprecate PEP 370 Per user site-packages directory?

2018-01-13 Thread Steve Dower
I’m generally +1, though I don’t see an easy migration path. Moving to a node.js project model might be feasible, but I suspect our real solution will end up having to be ensuring use of -s where it’s needed. Top-posted from my Windows phone From: Christian Heimes Sent: Sunday, January 14, 2018

Re: [Python-Dev] Python 3.7: Require OpenSSL >=1.0.2 / LibreSSL >=2.5.3

2018-01-15 Thread Steve Dower
>From my perspective, we can’t keep an OpenSSL-like API and use Windows >platform libraries (we could do a requests-like API easily enough, but even >urllib3 is painfully low-level). We have to continue shipping our own copy of OpenSSL on Windows. Nothing to negotiate here except whether OpenSS

Re: [Python-Dev] Python 3.7: Require OpenSSL >=1.0.2 / LibreSSL >=2.5.3

2018-01-16 Thread Steve Dower
OpenSSL >=1.0.2 / LibreSSL >=2.5.3 On 2018-01-16 12:28, Wes Turner wrote: > > > On Tuesday, January 16, 2018, Steve Dower <mailto:steve.do...@python.org>> wrote: > > From my perspective, we can’t keep an OpenSSL-like API and use > Windows platform librari

Re: [Python-Dev] Python 3.7: Require OpenSSL >=1.0.2 / LibreSSL>=2.5.3

2018-01-16 Thread Steve Dower
;=2.5.3 On 2018-01-16 08:08, Steve Dower wrote: > From my perspective, we can’t keep an OpenSSL-like API and use Windows > platform libraries (we *could* do a requests-like API easily enough, but > even urllib3 is painfully low-level). > >   > > We have to continue shipping ou

Re: [Python-Dev] python exe installer is broken

2018-01-17 Thread Steve Dower
And please include all the Python log files from your %TEMP% directory. On 18Jan2018 0802, Brett Cannon wrote: This seems like a bug report and is best reported on bugs.python.org . On Wed, 17 Jan 2018 at 08:05 Joshua Yeow > wrote: Dear

Re: [Python-Dev] GH-NNNN vs #NNNN in merge commit

2018-01-25 Thread Steve Dower
-1 on using magic words in comments rather than the normal UI. Perhaps one of the bots could post a reminder at a time when it makes sense? All checks passed, maybe? Top-posted from my Windows phone From: Brett Cannon Sent: Friday, January 26, 2018 6:01 To: Berker Peksağ Cc: Python Dev Subject:

Re: [Python-Dev] Why is Python for Windows compiled with MSVC?

2018-01-31 Thread Steve Dower
Because every other supported platform builds using the native tools, so why shouldn’t the one with the most users? I’m likely biased because I work there and I’m the main intermediary with python-dev, but these days Microsoft is one of the strongest supporters of CPython. We employ the most co

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

2018-02-22 Thread Steve Dower
It then becomes grunt work for reviewers, who also have to carefully balance encouraging new contributors against preventing the code base from getting worse. I’d rather have a review bot that can detect problems in PRs and comment on them. We can choose to merge anyway and it won’t keep being

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

2018-03-23 Thread Steve Dower
FWIW, this is a topic I was planning to bring up at the language summit this year, so for those who are going to be there and want to toss around ideas (mine is nearly developed enough to present, but not quite yet), bring them. That said, I don’t think relying on relative imports within a packa

Re: [Python-Dev] Move ensurepip blobs to external place

2018-03-24 Thread Steve Dower
Or we could just pull the right version directly from PyPI? (Note that updating the version should be an explicit step, as it is today, but the file should be identical to what’s on PyPI, right? And a urlretrieve is easier than pulling from a git repo.) Top-posted from my Windows phone From: P

Re: [Python-Dev] Soliciting comments on the future of the cmdmodule (bpo-33233)

2018-04-06 Thread Steve Dower
Better to deprecate it before it becomes broken, in my opinion. Having someone willing and able to review and merge changes is the best criteria for whether a module is still supported or not. Top-posted from my Windows phone From: Raymond Hettinger Sent: Friday, April 6, 2018 18:55 To: Ned Dei

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

2018-04-17 Thread Steve Dower
Agree with Paul. The PEP is well thought out and well presented, but I really don’t think we need this in Python (and I say this as someone who uses it regularly in C/C#). -1 on the idea; no disrespect intended toward to people who did a lot of work on it. Top-posted from my Windows phone Fro

Re: [Python-Dev] https://bugs.python.org/issue33127 breaks pip / easy_install / pipenv etc in corporate networks on MS Windows using self-signed certificates

2018-04-17 Thread Steve Dower
On 17Apr2018 0246, Oleg Sivokon wrote: It is common practice in corporate networks that connect MS Windows machines to redirect all (encrypted included) traffic through company's router. For this purpose routers are usually configured to act as a CA. However, the certificate issued by such "

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

2018-04-22 Thread Steve Dower
This example makes me want “if expr as name:” (same semantics as ‘with’, and the name is always bound to the expression result regardless of truthiness), but doesn’t move me on assignment expressions. Cheers, Steve Top-posted from my Windows phone From: Guido van Rossum Sent: Saturday, April 2

Re: [Python-Dev] Process to remove a Python feature

2018-05-04 Thread Steve Dower
there is the funny story of bytes filenames on Windows. I deprecated this feature in Windows 3.3 since it was broken. I really wanted hard to remove support for bytes filenames on Windows. One day, Steve Dower showed up with the PEP 529 "Change Windows filesystem encoding to UTF-8" and

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

2018-05-07 Thread Steve Dower
A moratorium on new features to focus on cleaning up and planning for transition away from the 2.7 compatibility features that still exist? The most obvious being the libraries that we promised not to remove until 2.7 EOL. Top-posted from my Windows phone From: Barry Warsaw Sent: Monday, May 7,

Re: [Python-Dev] A fast startup patch (was: Python startup time)

2018-05-07 Thread Steve Dower
“the data shows that a focused change to address file system inefficiencies has the potential to broadly and transparently deliver benefit to users without affecting existing code or workflows.” This is consistent with a Node.js experiment I heard about where they compiled an entire application

[Python-Dev] Visual Studio Team Services checks on pull requests

2018-05-17 Thread Steve Dower
Hi python-dev Just drawing your attention to a change we're currently working through on github. There are more details on my post on python-committers at https://mail.python.org/pipermail/python-committers/2018-May/005404.html but this is the short version. Microsoft has donated a significant am

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

2018-05-17 Thread Steve Dower
On 17May2018 1004, Brett Cannon wrote: > > > On Thu, 17 May 2018 at 09:57 Paul Moore > wrote: > > On 17 May 2018 at 14:42, Brett Cannon > wrote: > > > > If I understand things correctly, our planned migration to VSTS > wi

Re: [Python-Dev] [Python-checkins] bpo-33522: Enable CI builds onVisual Studio Team Services (GH-6865) (GH-6925)

2018-05-17 Thread Steve Dower
? That is inappropriate for something claiming to merely enable a CI platform. -gps On Thu, May 17, 2018 at 6:50 AM Steve Dower wrote: https://github.com/python/cpython/commit/0d8f83f59c8f4cc7fe125434ca4ecdcac111810f commit: 0d8f83f59c8f4cc7fe125434ca4ecdcac111810f branch: 3.6 author: Steve Dower

Re: [Python-Dev] please help triage VSTS failures

2018-05-18 Thread Steve Dower
Unfamiliar maybe, though I’m a big fan of separating build and test logs. If anyone is motivated enough to make unittest/regrtest generate Junit format XML then we can get a nice breakdown by individual test, too, which would save scrolling through the log entirely. The asyncio instability is a

Re: [Python-Dev] please help triage VSTS failures

2018-05-18 Thread Steve Dower
t fix here may not be immediately sufficient. Sent from my Windows 10 phone From: Nathaniel Smith Sent: Friday, May 18, 2018 17:34 To: Steve Dower Cc: Zachary Ware; Python-Dev Subject: Re: [Python-Dev] please help triage VSTS failures On Fri, May 18, 2018 at 1:13 PM, Steve Dower wrote: > Acco

Re: [Python-Dev] Procedure for adding new public C API

2018-05-22 Thread Steve Dower
On 21May2018 0708, Paul Moore wrote: On 21 May 2018 at 14:42, Serhiy Storchaka wrote: Is it even acceptable to add a symbol into the limited ABI? I thought the idea was that if I linked with python3.dll, my code would work with any version of Python 3? By introducing new symbols, code linked wi

Re: [Python-Dev] PEP: 576 Title: Rationalize Built-in function classes

2018-05-22 Thread Steve Dower
On 22May2018 0741, Guido van Rossum wrote: ISTR there are plenty of PEPs that never get posted to python-ideas because they are discussed on a separate list. There are often better venues for the initial discussion (such as security-sig, distutils-sig or datetime-sig), but I think that's ort

Re: [Python-Dev] Compact GC Header

2018-05-29 Thread Steve Dower
Looks like it breaks the 3.7 ABI, which is certainly not allowed at this time. But it’s not a limited API structure, so no problem for 3.8. Top-posted from my Windows 10 phone From: Victor Stinner Sent: Tuesday, May 29, 2018 6:44 To: INADA Naoki Cc: Python-Dev Subject: Re: [Python-Dev] Compact G

Re: [Python-Dev] Forward of moderated message

2018-05-30 Thread Steve Dower
I doubt responding to python-list-bounces made it back, so I've added the emails from the original message. As Brett says, this is clearly someone else's build of Python (for starters, Python 2.7 should not be using ucrtbase.dll), so you would be best to track them down. Also, the best address fo

Re: [Python-Dev] A more flexible task creation

2018-06-14 Thread Steve Dower
On 14Jun2018 1214, Chris Barker via Python-Dev wrote: Excuse my ignorance (or maybe it's a vocabulary thing), but I'm trying to understand the problem here. But if I have this right: I've been using asyncio a lot lately and have encountered this problem several times. Imagine you want

Re: [Python-Dev] Enable access to the AST for Python code

2015-05-21 Thread Steve Dower
It's only a macro system when you generate code in unexpected/unobvious places with it. This is more like inspect.getsource(), but going straight to the AST. Cheers, Steve Top-posted from my Windows Phone From: Greg Ewing Sent:

Re: [Python-Dev] Enable access to the AST for Python code

2015-05-21 Thread Steve Dower
The semantics could be the same while the execution plan is different, just like numba compiled code runs with the same semantics as the original. A better way of getting the AST than decompiling byte code is all that's being asked for. Maybe not easy to do in the general case, but certainly not

Re: [Python-Dev] [python-committers] Can we clean up the buildbots please?

2015-05-22 Thread Steve Dower
The Windows 7 buildbots are failing on test_asdl_parser, but I have no idea why – the test works for me just fine. Yury and Benjamin made the most recent changes to Python.asdl, but I have no idea what effect they would have here, or why it’s Windows only. The WS2K3 machine needs a reboot – I p

Re: [Python-Dev] [python-committers] Can we clean up the buildbots please?

2015-05-22 Thread Steve Dower
2015<http://conf.pydata.org/seattle2015/>? Hosted by Microsoft on our Redmond campus, July 24-26 From: Larry Hastings [mailto:la...@midwinter.com] On Behalf Of Larry Hastings Sent: Friday, May 22, 2015 1530 To: Steve Dower; Python Dev; python-committers Cc: Yury Selivanov; Benjamin Peterson S

Re: [Python-Dev] Unable to build regex module against Python 3.5 32-bit

2015-05-26 Thread Steve Dower
The builds I am responsible for include it because someone reported an issue and was persistent and helpful enough that I fixed it for them. That said, until MinGW agrees on a stable branch/version/fork, there seems to be a good chance that the shipped lib won't work for some people. If this is

Re: [Python-Dev] Usability of the limited API

2015-05-28 Thread Steve Dower
Paul Moore wrote: > On 28 May 2015 at 15:28, Steve Dower wrote: >> I don't have the issue number handy, but it should be near the top of >> the recently modified list. > > I recall seeing that issue. I'm fine with that - getting the two in sync is > obviousl

Re: [Python-Dev] Computed Goto dispatch for Python 2

2015-05-28 Thread Steve Dower
Donald Stufft wrote: > I think docker is a pretty crummy answer to Go’s static binaries. What I would > love is for Python to get: > > * The ability to import .so modules via zipzimport (ideally without a > temporary > directory, but that might require newer APIs from libc and such). > * The abil

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

2015-05-28 Thread Steve Dower
Donald Stufft wrote: > Well Python 3.4.3 binary is 4kb for me, so you'd have that + your 1KB Python > script + whatever other pieces you need. For contrast, here are the things you need on Windows to be able to get to an interactive prompt (I don't know how other platforms get this down to 4KB..

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

2015-05-28 Thread Steve Dower
Donald Stufft wrote: > On May 28, 2015 at 11:30:37 AM, Steve Dower (steve.do...@microsoft.com) wrote: >> Donald Stufft wrote: >> > Well Python 3.4.3 binary is 4kb for me, so you'd have that + your >> > 1KB Python script + whatever >> other pieces you need. &

Re: [Python-Dev] Usability of the limited API

2015-05-28 Thread Steve Dower
Zach has a patch to automate putting the right exports in python3.dll, which I'm strongly in favor of, but it was rejected because people may have added APIs that aren't meant to be stable. Right now, you can #include a number of prototypes that aren't actually available because there are two p

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

2015-05-29 Thread Steve Dower
Paul Moore wrote: > One mildly annoying thing is that python3.dll is only installed in install dir>\DLLs, which > typically isn't on PATH. So actually using the limited API from your own > application fails by default. > Fixing that's mostly a user admin issue, though (and you can just link to th

Re: [Python-Dev] Computed Goto dispatch for Python 2

2015-05-31 Thread Steve Dower
"We are calling it 'embedable', but the rest of the world would call it 'portable', as in, runable from a usb stick" I called it embeddable because it's not intended for direct use and is not complete. There's no test suite, no documentation, no tkinter (pending high demand), no pip, no site-pac

Re: [Python-Dev] Windows new 3.5 installer: Command line uninstall

2015-06-01 Thread Steve Dower
You need the original exe and can pass /uninstall to that. There is an uninstall entry in the registry that uses the cached version of the exe (via Programs and Features), but I don't know why WMI doesn't see it. I'll check that out a bit later. You can uninstall with the web installer exe, and

[Python-Dev] Mingw help

2015-06-04 Thread Steve Dower
If you have an interest in linking to the Windows builds of Python 2.7 and 3.5+ using mingw, please visit http://bugs.python.org/issue24385 Unless someone can provide me with the One True Way to generate a lib that will work for everyone, I'm going to replace the lib file with instructions on ho

Re: [Python-Dev] Backporting the 3.5+ Windows build project files to 2.7

2015-06-22 Thread Steve Dower
Zachary Ware wrote: > With the stipulation that the officially supported compiler won't change, I > want > to make sure there's no major opposition to replacing the old project files in > PCbuild. The old files would move to PC\VS9.0, so they'll still be available > and > usable if necessary. I'

Re: [Python-Dev] Backporting the 3.5+ Windows build project files to 2.7

2015-06-25 Thread Steve Dower
M.-A. Lemburg wrote: > For VS 2008 we now have a long-term solution thanks to MS. Without the change to the project files, the compiler at http://aka.ms/vcpython27 isn't sufficient to build Python itself. In theory, with even more patching to the projects (or otherwise making up for the fact th

Re: [Python-Dev] Backporting the 3.5+ Windows build project files to 2.7

2015-06-25 Thread Steve Dower
Zachary Ware wrote: > On Thu, Jun 25, 2015 at 10:42 AM, Steve Dower > wrote: >> This also makes it more viable to use the Windows SDK compilers. If you >> install the Windows SDK 7.0 (which includes MSVC9) and Windows SDK 7.1 (which >> includes the platform toolset fi

Re: [Python-Dev] Importance of "async" keyword

2015-06-26 Thread Steve Dower
On 06/26/2015 06:48 AM, Sven R. Kunze wrote: > def business(): > return complex_calc(5) > > def business_new() > return await complex_calc(10) > Maybe, I completely missed the point of the proposal, but this is the way I > would expect it to work. Putting in an 'await' whenever I see f

Re: [Python-Dev] Importance of "async" keyword

2015-06-26 Thread Steve Dower
Ethan Furman wrote: > On 06/26/2015 08:47 AM, Steve Dower wrote: >> On 06/26/2015 06:48 AM, Sven R. Kunze wrote: >> >>> def business(): >>> return complex_calc(5) >>> >>> def business_new() >>> return await complex_calc(10) >

Re: [Python-Dev] Importance of "async" keyword

2015-07-05 Thread Steve Dower
"A) I can call a function and might get a return value. B) I can await an awaitable and might get a return value. C) I cannot use them interchangeably. Why?" Function != awaitable - the answer is right there in the terminology. Different names, different things. Given A, B and the fact that an a

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

2015-07-20 Thread Steve Dower
Dear Python-dev Nobody who cares is reading this thread any more - I'm guessing Guido silenced it within the first 10 emails and so has almost everyone else. All you're doing is exposing your own inabilities to understand the issue (there are not now, have never been, and never will be, methods

Re: [Python-Dev] PEP 447 (type.__getdescriptor__)

2015-07-22 Thread Steve Dower
Terry Reedy wrote: > On 7/22/2015 3:25 AM, Ronald Oussoren wrote: >> Hi, >> >> Another summer with another EuroPython, which means its time again to >> try to revive PEP 447… >> >> I’ve just pushes a minor update to the PEP and would like to get some >> feedback on this, arguably fairly esoteric, P

Re: [Python-Dev] PEP 447 (type.__getdescriptor__)

2015-07-23 Thread Steve Dower
I wonder whether XML RPC might be a good example? After all, it's already in the stdlib and presumably suffers from the same issue. Cheers, Steve Top-posted from my Windows Phone From: Ronald Oussoren Sent: ‎7/‎23/‎2015 3:07 To: Dim

Re: [Python-Dev] Building python 2.7.10 for Windows from source

2015-07-24 Thread Steve Dower
Those files should be under PC folder. Building 3.5 and onwards is a much more pleasant experience, and many of those improvements have been backported for 2.7.11. Cheers, Steve Top-posted from my Windows Phone From: Mark Kelley Sent: ‎

Re: [Python-Dev] Status on PEP-431 Timezones

2015-07-27 Thread Steve Dower
Am I the only one feeling like this entire thread should be moved to python-ideas at this point? Top-posted from my Windows Phone From: Steven D'Aprano Sent: ‎7/‎27/‎2015 7:14 To: python-dev@python.org Subj

[Python-Dev] SSH to hg.p.o okay?

2015-08-08 Thread Steve Dower
Is hg.python.org okay for others? I'm getting the following output from all hg commands: sending hello command sending between command abort: no suitable response from remote hg! I don't know of any more verbose or debugging options than that (--debug, -v's added nothing). I can SSH normally in

Re: [Python-Dev] SSH to hg.p.o okay?

2015-08-08 Thread Steve Dower
lade.com> Sent: ‎8/‎8/‎2015 1:34 To: Steve Dower<mailto:steve.do...@microsoft.com> Cc: python-dev@python.org<mailto:python-dev@python.org> Subject: Re: [Python-Dev] SSH to hg.p.o okay? I was intermittently getting that earlier. I didn't change anything on my side and it started wo

Re: [Python-Dev] Can't import tkinter in Python 3.5.0rc1

2015-08-11 Thread Steve Dower
We saw and fixed it before RC 1. I'll check whether that fix didn't stick, but go ahead, open an issue and assign me. Cheers, Steve Top-posted from my Windows Phone From: MRAB Sent: ‎8/‎11/‎2015 17:25 To: Python-Dev

[Python-Dev] [low-pri] Changing my email address

2015-08-12 Thread Steve Dower
Hi all Just a heads-up that I'll be switching to an alternate email address for all of my Python communications, due to what I'm sure are very sensible corporate security policies that nonetheless corrupt code snippets and URLs in my incoming email. I will henceforth be known as steve.do...@py

Re: [Python-Dev] Differences between Python's OpenSSL in SVN and OpenSSL's in GitHub

2015-08-14 Thread Steve Dower
On 14Aug2015 0856, Guzman-ballen, Andres wrote: Hello Python Developers! Why is it that the OpenSSL v1.0.2d that is found on Python’s SVN repo is quite different from what OpenSSL has on their GitHub repository

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

2015-08-17 Thread Steve Dower
On 17Aug2015 0813, Barry Warsaw wrote: 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

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

2015-08-17 Thread Steve Dower
On 17Aug2015 1506, Steve Dower wrote: On 17Aug2015 0813, Barry Warsaw wrote: 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

[Python-Dev] Building Extensions for Python 3.5 on Windows

2015-08-25 Thread Steve Dower
I've written up a long technical blog post about the compiler and CRT changes in Python 3.5, which will be of interest to those who build and distribute native extensions for Windows. http://stevedower.id.au/blog/building-for-python-3-5/ Hopefully it puts some of the changes we've made into a

Re: [Python-Dev] Building Extensions for Python 3.5 on Windows

2015-08-26 Thread Steve Dower
On 25Aug2015 2153, Terry Reedy wrote: On 8/25/2015 2:17 PM, Steve Dower wrote: I've written up a long technical blog post about the compiler and CRT changes in Python 3.5, which will be of interest to those who build and distribute native extensions for Windows. http://stevedower.id.au

Re: [Python-Dev] Building Extensions for Python 3.5 on Windows

2015-09-01 Thread Steve Dower
On 01Sep2015 0747, Oscar Benjamin wrote: Thanks for the detailed writeup Steve. Do you know how these changes to the python.org Windows binaries would impact on people building extension modules with MinGW? Currently, no version of MinGW AFAIK will link against the UCRT, so they'll suffer from

Re: [Python-Dev] Building Extensions for Python 3.5 on Windows

2015-09-02 Thread Steve Dower
eferred to __iob_func in their own code. It submitted a patch for it months ago and they fixed it, but possibly only in 1.0.2. Cheers, Steve Top-posted from my Windows Phone -Original Message- From: "Paul Moore" Sent: ‎9/‎2/‎2015 5:38 To: "Carl Kleffner" Cc: "S

Re: [Python-Dev] Building Extensions for Python 3.5 on Windows

2015-09-02 Thread Steve Dower
On 02Sep2015 0803, Paul Moore wrote: On 2 September 2015 at 14:07, Steve Dower wrote: You can also build existing object or static libraries into their own DLL with the old compiler and dynamically link to them. It's not perfect, but it's no worse than trying to link them i

Re: [Python-Dev] Can't install Python 3.5rc3

2015-09-08 Thread Steve Dower
It thinks you have version 3.5.5339.0 installed, which IIRC was a test build I made for some tcl changes. It's probably listed under xPython - can you see it? As I said at the time, they should be totally independent, but I guess not. Thanks for the heads up. Top-posted from my Windows Phone -

Re: [Python-Dev] Embedding Python 3.5

2015-09-09 Thread Steve Dower
On 09Sep2015 0819, Paul Moore wrote: On 9 September 2015 at 16:11, Carl Kleffner wrote: A good overview on this topic is given on https://github.com/numpy/numpy/wiki/windows-dll-notes. As a side note the PATH is usually the latest place in the search order of DLLs. Pre-loading python35.dll into

Re: [Python-Dev] [RELEASED] Python 3.5.0rc4 is now available!

2015-09-09 Thread Steve Dower
On 09Sep2015 0642, Larry Hastings wrote: On behalf of the Python development community and the Python 3.5 release team, I'm surprised to announce the availability of Python 3.5.0rc4, also known as Python 3.5.0 Release Candidate 4. Python 3.5.0 Release Candidate 3 was only released about a day ag

Re: [Python-Dev] Windows x86-64 embeddable zip file, Feedback

2015-09-13 Thread Steve Dower
Thanks for the kind words, glad you're finding the distribution useful. Feel free to assign me (steve.dower) to the issues. I assume they're referring to the contents of the library.zip file? In which case, you're correct, those are unnecessary. I'll take a closer look when I'm at my PC. Cheers

Re: [Python-Dev] VS 2010 compiler

2015-09-25 Thread Steve Dower
On 25Sep2015 0824, Chris Barker - NOAA Federal wrote: As I understand it, the MS VS2010 compiler is required (or at least best practice) for compiling Python extensions for the python.org Windows builds of py 3.4 and ?[1] However, MS now makes it very hard (impossible?) to download VS2010 Expres

Re: [Python-Dev] VS 2010 compiler

2015-09-29 Thread Steve Dower
On 29Sep2015 0820, Chris Barker wrote: OK -- I'm going to get off my soap box now -- time to actually suggest doc patches Just bear in mind that you're suggesting patches for Python 3.3 and 3.4, which means that 3.4.4 is the only real chance to get them onto people's machines. http://docs

Re: [Python-Dev] Python 3.5.1 plans

2015-11-01 Thread Steve Dower
The installer and the contained contents are currently tied together, making it fairly difficult to mix and match versions. When 3.5.1 happens is up to Larry, but I'm feeling like the initial rush of bug reports has died down and we should be considering the remaining open ones in the context o

Re: [Python-Dev] Python 3.5.1 plans

2015-11-01 Thread Steve Dower
inal Message- From: "Laura Creighton" Sent: ‎11/‎1/‎2015 6:22 To: "Steve Dower" Cc: "Chris Angelico" ; "Phil Thompson" ; "python-dev" ; "l...@openend.se" Subject: Re: [Python-Dev] Python 3.5.1 plans In a message of Sun, 01

Re: [Python-Dev] Support of UTF-16 and UTF-32 source encodings

2015-11-14 Thread Steve Dower
The native encoding on Windows has been UTF-16 since Windows NT. Obviously we've survived without Python tokenization support for a long time, but every API uses it. I've hit a few cases where it would have been handy for Python to be able to detect it, though nothing I couldn't work around. Sa

Re: [Python-Dev] Do windows 10 users, like windows 7 users need to install a SP before installing Python will work?

2015-12-07 Thread Steve Dower
On 07Dec2015 1250, Laura Creighton wrote: As webmaster, I am dealing with 3 unhappy would-be python users who have windows 10. Right now their first problem is that when they click on the big yellow button here: https://www.python.org/downloads/ instead of getting a download of 3.5.1 they get a

Re: [Python-Dev] Do windows 10 users, like windows 7 users need to install a SP before installing Python will work?

2015-12-07 Thread Steve Dower
On 07Dec2015 1324, Steve Dower wrote: On 07Dec2015 1250, Laura Creighton wrote: As webmaster, I am dealing with 3 unhappy would-be python users who have windows 10. Not directly related to this thread, but I just pushed an update to the Windows installers for 3.5.1. (Should avoid people

Re: [Python-Dev] Do windows 10 users, like windows 7 users need to install a SP before installing Python will work?

2015-12-07 Thread Steve Dower
On 07Dec2015 1403, Steve Dower wrote: On 07Dec2015 1324, Steve Dower wrote: On 07Dec2015 1250, Laura Creighton wrote: As webmaster, I am dealing with 3 unhappy would-be python users who have windows 10. Not directly related to this thread, but I just pushed an update to the Windows

Re: [Python-Dev] New poll about a macro for safe reference replacing

2015-12-16 Thread Steve Dower
x2 for all of Victor's votes and reasoning. Top-posted from my Windows Phone -Original Message- From: "Victor Stinner" Sent: ‎12/‎17/‎2015 8:16 To: "Serhiy Storchaka" Cc: "Python Dev" Subject: Re: [Python-Dev] New poll about a macro for safe reference replacing 2015-12-16 15:12 GMT+01

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

2015-12-16 Thread Steve Dower
To briefly clarify/correct some of the C# statements that seem to keep being made: * C# produces a future/promise (spelled Task) for each call to an async function * awaiting a Task will return the result if its available, else schedule a continuation in the current loop (spelled synchronizatio

Re: [Python-Dev] New poll about a macro for safe reference replacing

2015-12-21 Thread Steve Dower
Was Py_MOVEREF (or MOVE_REF) ever suggested? Those are valid objections, and now they're raised I remember them from last time. But I don't think they're a huge concern - setting a ref count directly doesn't seem useful anyway, and the compiler/IDE will let you know pretty quick if you put an i

Re: [Python-Dev] Debugging using VS 2015

2016-01-13 Thread Steve Dower
On 13Jan2016 1556, Eddy Quicksall wrote: Those files already exist: W:\Python-3.5.1>PCbuild\get_externals.bat Fetching external libraries... bzip2-1.0.6 already exists, skipping. nasm-2.11.06 already exists, skipping. openssl-1.0.2d already exists, skipping. sqlite-3.8.11.0 already exists, skipp

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

2016-01-21 Thread Steve Dower
I'm still yet to meet a lawyer who trusts "public domain" statements... The CLA will ensure we have enough rights to republish the PEP on p.o or future sites, and it doesn't prevent authors from also releasing the text elsewhere under other terms. Top-posted from my Windows Phone -Original

[Python-Dev] More optimisation ideas

2016-01-29 Thread Steve Dower
Since we're all talking about making Python faster, I thought I'd drop some previous ideas I've had here in case (1) someone wants to actually do them, and (2) they really are new ideas that haven't failed in the past. Mostly I was thinking about startup time. Here are the list of modules impo

Re: [Python-Dev] More optimisation ideas

2016-01-29 Thread Steve Dower
It doesn't currently end up on disk. Some tables are partially or completely stored on disk as Python source code (some are partially generated from simple rules), but others are generated by inverting those. That process takes time that could be avoided by storing the generated tables, and stor

Re: [Python-Dev] More optimisation ideas

2016-01-30 Thread Steve Dower
On 30Jan2016 0645, Serhiy Storchaka wrote: $ ./python -m timeit -s "import codecs; from encodings.cp437 import decoding_table" -- "codecs.charmap_build(decoding_table)" 10 loops, best of 3: 4.36 usec per loop Getting rid from charmap_build() would save you at most 4.4 microseconds per encodi

Re: [Python-Dev] More optimisation ideas

2016-01-30 Thread Steve Dower
ython-dev about twelve months ago, IIRC. Maybe a little longer. Top-posted from my Windows Phone -Original Message- From: "Serhiy Storchaka" Sent: ‎1/‎30/‎2016 10:22 To: "python-dev@python.org" Subject: Re: [Python-Dev] More optimisation ideas On 30.01.16 18:31

[Python-Dev] Python environment registration in the Windows Registry

2016-02-02 Thread Steve Dower
a superset of what we already do. Any and all feedback welcomed, especially from the owners of other distros, Python implementations or tools on the list. Cheers, Steve - PEP: ??? Title: Python environment registration in the Windows Registry Version: $Revision$ Last-Modified: $Date$ Aut

Re: [Python-Dev] Python environment registration in the Windows Registry

2016-02-03 Thread Steve Dower
On 03Feb2016 0015, Alexander Walters wrote: I am not saying this proposal will make the registry situation worse, but it may break my solution to the headaches Python's registry use causes with some non-standard module installers (and even the standard distutils exe installers, but that is being

Re: [Python-Dev] Python environment registration in the Windows Registry

2016-02-03 Thread Steve Dower
On 03Feb2016 0839, Paul Moore wrote: On 3 February 2016 at 16:29, Steve Dower wrote: Final point I want to reiterate - Python itself is essentially registry free already in that it does not need registry settings to function. That's something we should probably publicise better. People

Re: [Python-Dev] Python environment registration in the Windows Registry

2016-02-03 Thread Steve Dower
On 03Feb2016 0923, eryk sun wrote: On Wed, Feb 3, 2016 at 10:46 AM, Steve Dower wrote: sys.path.extend(read_subkeys(fr'HKCU\Software\Python\PythonCore\{sys.winver}\PythonPath\**')) sys.path.extend(read_subkeys(fr'HKLM\Software\Python\PythonCore\{sys.winver}\PythonPath\**'

Re: [Python-Dev] Python environment registration in the Windows Registry

2016-02-03 Thread Steve Dower
On 03Feb2016 0150, Glenn Linderman wrote: Portable software exists, but often is 3rd party hacks of popular FOSS rather than being directly supported by the FOSS development team. Python falls into this category. Happily, I recently found WinPython Zero, which hacks it (somehow) to work portably,

Re: [Python-Dev] Python environment registration in the Windows Registry

2016-02-03 Thread Steve Dower
On 03Feb2016 0321, Paul Moore wrote: > Some issues with this proposal: > > 1. I don't like the way it states that Python distributions "must" set > keys. I'd rather that it were explicitly stated that a distribution > which sets no registry keys is entirely valid (with the obvious > implication th

Re: [Python-Dev] Python environment registration in the Windows Registry

2016-02-03 Thread Steve Dower
On 03Feb2016 1120, Alexander Walters wrote: Uh its C:\Anaconda[2]\ for anyone running the installer with the privileges to edit the registry... (It wont ask to elevate unless you install for all users, and that's where all users will install). So on that point alone, this saves nothing subst

Re: [Python-Dev] Python environment registration in the Windows Registry

2016-02-03 Thread Steve Dower
On 03Feb2016 1851, eryk sun wrote: On Wed, Feb 3, 2016 at 7:33 PM, Eric Snow wrote: Just wanted to quickly point out another use of the WIndows registry in Python: WindowsRegistryFinder [1]. This is an import "meta-path" finder that locates modules declared (*not* defined) in the registry. I'm

[Python-Dev] PEP 514: Python environment registration in the Windows Registry

2016-02-06 Thread Steve Dower
r feedback or concerns from developers who are likely to create or use the keys that are described here. PEP: 514 Title: Python registration in the Windows registry Version: $Revision$ Last-Modified: $Date$ Author: Steve Dower Status: Draft Type: Informational Content-Type:

<    1   2   3   4   5   6   7   8   >