[issue14002] distutils2 fails to install a package from PyPI on Python 2.7.2

2012-02-13 Thread Paul Moore
New submission from Paul Moore : I created a bdist_wininst installer for distutils2 and installed it into my Python 2.7.2 installation. This is on Wondows, 32-bit. I then tried to do a simple install to test it was working. >python -m distutils2.run install stemming Checking the installat

[issue13198] Remove duplicate definition of write_record_file

2012-02-14 Thread Paul Moore
Paul Moore added the comment: > Damn, bitten by the use of universal newlines!  I guess I should split on a > literal '\n' instead of calling splitlines.  Could you make that change in > your clone and tell me if it does the trick? Not for a few days, but I'll

[issue14002] distutils2 fails to install a package from PyPI on Python 2.7.2

2012-02-14 Thread Paul Moore
Paul Moore added the comment: On 14 February 2012 15:48, Éric Araujo wrote: > > Éric Araujo added the comment: > >> The initial errors look like complaints about existing packages I have >> installed by other means > They’re logging messages, not errors.  They appear

[issue14027] distutils2 lack of pysetup.bat

2012-02-18 Thread Paul Moore
Paul Moore added the comment: > - Will “@%~dp0\..\python.exe” get the proper path for people who do not > install Python to C:\? %~dp0\..\python.exe locates python relative to the batch file (one directory up) so will work as long as the bat file is in Scripts. The @ just suppresses e

[issue14148] Option to kill "stuck" workers in a multiprocessing pool

2012-02-28 Thread Paul Moore
New submission from Paul Moore : I have an application which fires off a number of database connections via a multiprocessing pool. Unfortunately, the database software occasionally gets "stuck" and a connection request hangs indefinitely. This locks up the whole process doing the

[issue14148] Option to kill "stuck" workers in a multiprocessing pool

2012-02-28 Thread Paul Moore
Paul Moore added the comment: As an alternative, maybe leave the "stuck" worker, but allow the pool to recognise when a worker has not processed new messages for a long period and spawn an extra worker to replace it. That would avoid the starvation issue, and the stuck workers woul

[issue37111] Logging - Inconsistent behaviour when handling unicode

2019-06-01 Thread Paul Moore
Paul Moore added the comment: > User would like Python logging of Unicode characters to be consistent It is consistent. The encoding of logging.basicConfig(filename='c:\\my_log.log') is consistent with the encoding of open('c:\\my_log.log') Both use the

[issue37164] dict creation with converted zip objects produces inconsistent behavior

2019-06-05 Thread Paul Moore
Paul Moore added the comment: Works fine for me: Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> a = ['1',

[issue37282] os problems on absolute paths containing unicode characters on windows

2019-06-14 Thread Paul Moore
Paul Moore added the comment: This works for me on Python 3.7. Can you confirm if you see the problem on 3.7, and if so, provide a more detailed example of how to reproduce? -- ___ Python tracker <https://bugs.python.org/issue37

[issue37354] Write PowerShell Activate.ps1 to be static so it can be signed

2019-06-20 Thread Paul Moore
Paul Moore added the comment: How will this interact with EnvBuilder.install_scripts() (which explicitly states that it performs textual substitution)? Note that I'm not aware of anyone who actually uses the ability to subclass EnvBuilder, but I wouldn't be surprised to find that

[issue37369] Issue with pip in venv on Powershell in Windows

2019-07-05 Thread Paul Moore
Paul Moore added the comment: On Thu, 27 Jun 2019 at 18:08, Steve Dower wrote: > However, it does mean that we need to start reporting a sys.executable that > is not inside sys.prefix, and I'm not sure whether that is a good idea. > > Looking at venv (+Vinay for confirmatio

[issue37369] Issue with pip in venv on Powershell in Windows

2019-07-05 Thread Paul Moore
Paul Moore added the comment: On Fri, 5 Jul 2019 at 21:33, Steve Dower wrote: > Yeah. We probably need to be clear about which approaches are actually > supported and which ones are not. > > Ultimately though, I think this is a situation where the breakage is forced >

[issue25172] Unix-only crypt should not be present on Windows.

2019-08-06 Thread Paul Moore
Paul Moore added the comment: The proposed wording seems good to me. -- ___ Python tracker <https://bugs.python.org/issue25172> ___ ___ Python-bugs-list mailin

[issue25172] Unix-only crypt should not be present on Windows.

2019-08-06 Thread Paul Moore
Paul Moore added the comment: It might be worth adding a test (running only on Windows) to confirm that if you try to import crypt you get an import error with a message that includes the phrase "not supported". That will ensure that we don't get regressions here in future,

[issue25172] Unix-only crypt should not be present on Windows.

2019-08-08 Thread Paul Moore
Paul Moore added the comment: New changeset f4e725f224b864bf9bf405ff7f863cda46fca1cd by Paul Moore (shireenrao) in branch 'master': bpo-25172: Raise appropriate ImportError msg when crypt module used on Windows (GH-15149) https://github.com/python/cpyt

[issue25172] Unix-only crypt should not be present on Windows.

2019-08-08 Thread Paul Moore
Paul Moore added the comment: On reflection, adding a test for the Windows-specific behaviour looks like it could be more complex than I'd anticipated, so I'm happy for this to go in without an extra test. I'll look at adding a test in a follow-up PR (or if someone else w

[issue25172] Unix-only crypt should not be present on Windows.

2019-08-08 Thread Paul Moore
Paul Moore added the comment: That's where I decided it was too complex for now :-) The whole test_crypt.py file is skipped if you can't import crypt, via the use of the test.support.import_module() function. To be able to write a test for a platform where the whole point is that

[issue36714] Tweak doctest 'example' regex to allow a leading ellipsis in 'want' line

2019-08-09 Thread Paul Moore
Paul Moore added the comment: It shouldn't be hard to update the regex to accept either "... " followed by other text or "..." on a line on its own, surely? -- nosy: +paul.moore ___ Python tracker <https:

[issue30678] Widget variable binding does not work if mainloop is called from a different function

2017-06-16 Thread Paul Moore
Paul Moore added the comment: I suspect that the problem is somehow related to garbage collection - in your failing example you don't keep any references to v or cb. I don't know what references tkinter keeps internally, it may be that this is OK because the root window is guarante

[issue30725] Windows installer for 2.7.13 doesn't install pip when installing to C:\Program Files

2017-06-22 Thread Paul Moore
Paul Moore added the comment: Presumably you overrode the default location of C:\Python27 in favour of C:\Program Files? I'm not sure we've ever supported installing Python 2.7 in "Program Files", precisely because of the security constraints on that directory (plus the f

[issue30725] Windows installer for 2.7.13 doesn't install pip when installing to C:\Program Files

2017-06-22 Thread Paul Moore
Paul Moore added the comment: Note that even if you do get this working, you'll still need to run pip from an elevated prompt every time you want to use it to install new packages (or use --user). -- ___ Python tracker <http://bugs.py

[issue30906] os.path.join misjoins paths

2017-07-11 Thread Paul Moore
Paul Moore added the comment: This is as documented - see https://docs.python.org/3.6/library/os.path.html#os.path.join (" If a component is an absolute path, all previous components are thrown away and joining continues from the absolute path component"). In this case, &qu

[issue31056] Import Module Not Working According To Documentation Python 3.6.2

2017-07-27 Thread Paul Moore
Paul Moore added the comment: I've tested this on Python 3.6.1 and Python 3.6.2 on Windows 7, 64-bit, and it works as expected. I don't see the problem here - do you have any unusual environment settings or config? -- ___ Python trac

[issue31072] add filter to zipapp

2017-07-28 Thread Paul Moore
Paul Moore added the comment: I'd propose an extra argument to zipapp.create_archive, include_file=None (feel free to bikeshed on the name). If the argument is not None, then it should be a callable which will be called with a pathlib.Path object for each file that's selected for in

[issue31072] add filter to zipapp

2017-07-28 Thread Paul Moore
Paul Moore added the comment: Yes, they can be. -- ___ Python tracker <http://bugs.python.org/issue31072> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31056] Import Module Not Working According To Documentation Python 3.6.2

2017-07-28 Thread Paul Moore
Paul Moore added the comment: OK, so the problem is that no-one here (or as far as I can see on the SO discussion, either) can reproduce your issue. So we have to assume that it's something wrong with your environment, and not a Python issue. If you can produce an example that allows

[issue31056] Import Module Not Working According To Documentation Python 3.6.2

2017-07-31 Thread Paul Moore
Paul Moore added the comment: OK, so this is the first time (I believe) you have mentioned that you are using the embedded distribution - which is not designed for general scripting use, but very specifically for embedding Python in a custom application. Can you reproduce with the standard

[issue31056] Import Module Not Working According To Documentation Python 3.6.2

2017-07-31 Thread Paul Moore
Paul Moore added the comment: Hmm, never mind. This is expected behaviour because the embedded distribution includes a ".pth" file which overrides the standard sys.path. For details, see https://docs.python.org/3.6/using/windows.html#finding-modules and https://docs.python.org

[issue31056] Import Module Not Working According To Documentation Python 3.6.2

2017-07-31 Thread Paul Moore
Paul Moore added the comment: I'm not Steve, but thanks for the compliment :-) You're still running an embedded Python. There's a _python36.pth file next to the executable, that's causing the behaviour you're seeing (and it's there by design - it's what mak

[issue31056] Import Module Not Working According To Documentation Python 3.6.2

2017-07-31 Thread Paul Moore
Paul Moore added the comment: No problem - glad it's all clear now. -- ___ Python tracker <http://bugs.python.org/issue31056> ___ ___ Python-bugs-list m

[issue31101] os.remove() auto add \ in Windows2012R2

2017-08-02 Thread Paul Moore
Paul Moore added the comment: There are two problems with your code and bug report: 1. By using a single quoted string, some of the backslashes in the path are being interpreted as starting a special character (specifically \t is interpreted as a tab character). You should either double the

[issue31148] Can we get an MSI installer for something past 3.4.4?

2017-08-09 Thread Paul Moore
Paul Moore added the comment: To be clear, Steve *is* our main Windows developer, and specifically the person who developed the Windows installers we now use. They work perfectly for many people, including myself, so there certainly isn't a general issue with them. I myself routinely in

[issue31072] add filter to zipapp

2017-08-09 Thread Paul Moore
Paul Moore added the comment: New changeset b811d664defed085d16951088afb579fb649c58d by Paul Moore (Jeffrey Rackauckas) in branch 'master': bpo-31072: Add filter to zipapp (#3021) https://github.com/python/cpython/commit/b811d664defed085d16951088afb57

[issue31072] add filter to zipapp

2017-08-09 Thread Paul Moore
Paul Moore added the comment: Thanks to Jeffrey Rackauckas for the implementation of this feature. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue31072] add filter to zipapp

2017-08-09 Thread Paul Moore
Paul Moore added the comment: Good point - I wasn't even aware of the filterfunc argument in PyZipFile. I'll rename the argument. I wasn't initially sure about a what's new entry. I'll add one - and thanks for the re

[issue31072] add filter to zipapp

2017-08-09 Thread Paul Moore
Changes by Paul Moore : -- pull_requests: +3084 ___ Python tracker <http://bugs.python.org/issue31072> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31072] add filter to zipapp

2017-08-09 Thread Paul Moore
Paul Moore added the comment: I've created a new PR 3049 adding the fixes you suggested (and tightening up the tests, as I noticed an untested aspect of the change while editing). -- ___ Python tracker <http://bugs.python.org/is

[issue31072] add filter to zipapp

2017-08-11 Thread Paul Moore
Paul Moore added the comment: Zipapp uses path objects throughout, so making the filter function take a path object is consistent with that. I guess modifying PyZipFile to take either a string or a path object would be possible. As for the relative path, that's deliberate as I expect t

[issue31072] add filter to zipapp

2017-08-11 Thread Paul Moore
Paul Moore added the comment: Sounds reasonable :-) I'm not going to be checking mails for a week or so, so I'll revisit this once I get back. -- ___ Python tracker <http://bugs.python.o

[issue31072] add filter to zipapp

2017-08-26 Thread Paul Moore
Paul Moore added the comment: OK. There's been no further comments, and I think the differences with PyZipFile's filterfunc are sufficient to warrant using a different name. I'm going to go with "filter". It's

[issue31072] add filter to zipapp

2017-08-26 Thread Paul Moore
Paul Moore added the comment: New changeset 0780bf7578dc4c9c3852dc5e869aba515a2c65b1 by Paul Moore in branch 'master': bpo-31072: Rename the new filter argument for zipapp.create_archive. (#3049) https://github.com/python/cpython/commit/0780bf7578dc4c9c3852dc5e869aba

[issue28247] Add an option to zipapp to produce a Windows executable

2018-11-24 Thread Paul Moore
Paul Moore added the comment: While I can see your point, I'm a little skeptical that anyone who's able to write C source code and compile it can't work out how to combine two binary files... :-) -- ___ Python tracker <https

[issue30410] Documentation for sys.stdout encoding does not reflect the new Windows behavior in Python 3.6+

2018-11-30 Thread Paul Moore
Paul Moore added the comment: The proposed wording seems a bit over-complex to me. Maybe the following re-wording would be easier to understand? The character encoding is platform-dependent. Non-Windows platforms use the locale encoding (see locale.getpreferredencoding

[issue34977] Release Windows Store app containing Python

2018-12-07 Thread Paul Moore
Paul Moore added the comment: > > Steve, assuming that I can access the Store, should I be able to install > > both PSF 3.7.2 and Windows Store 3.7.2 simultaneously? So I could test > > both IDLEs that beginners might install? > > Yes, absolutely. (To be clear, b

[issue34977] Release Windows Store app containing Python

2018-12-07 Thread Paul Moore
Paul Moore added the comment: Thanks for the clarification. > In all the cases I've tested, regular Python install shows up first. If it's > not installed, the Store app shows up much of the time. This feels like the > right design (with the caveat about "much of the

[issue34977] Release Windows Store app containing Python

2018-12-08 Thread Paul Moore
Paul Moore added the comment: > Yeah, and these are all essentially my fault (though I documented the > embeddable package relatively well, modulo a few uses I hadn't imagined). > Maybe my holiday writing project can be some better docs for choosing how to > install Python,

[issue35811] py.exe should unset the __PYVENV_LAUNCHER__ environment variable

2019-01-24 Thread Paul Moore
Paul Moore added the comment: I'm not particularly happy with the statement that "However, the latter is out of scope here since the entry-point launchers are in distlib." If Python is changing the semantics of __PYVENV_LAUNCHER__ in such a way that it breaks 3rd party code,

[issue35811] py.exe should unset the __PYVENV_LAUNCHER__ environment variable

2019-01-24 Thread Paul Moore
Paul Moore added the comment: Steve - thanks for the clarification. If it's only affecting launching with relative paths, then agreed it's minor (although I do recall recent discussions somewhere about using launchers with relative paths - that use case may need checking, but w

[issue35811] py.exe should unset the __PYVENV_LAUNCHER__ environment variable

2019-01-24 Thread Paul Moore
Paul Moore added the comment: > The script executable redirects to run `"path\to\python.exe" > "path\to\.exe"`. But if I understood what Steve said, only if path\to\python.exe is a *relative* pathname? --

[issue35895] the test suite of pytest failed with 3.8.0a1

2019-02-04 Thread Paul Moore
Paul Moore added the comment: Is this relevant? https://bugs.python.org/issue33416 It's a backward incompatible change to the AST in 3.8 (according to the 3.8 changelog). -- nosy: +paul.moore ___ Python tracker <https://bugs.python.org/is

[issue24087] Documentation doesn't explain the term "coroutine" (PEP 342)

2019-02-08 Thread Paul Moore
Paul Moore added the comment: I'm OK that the basic glossary item is now covered. I don't know about any of the other issues Martin mentioned. I've closed the issue as my original comment is addressed, but if Martin wants to reopen it to address his concerns, I'm OK

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-02-16 Thread Paul Moore
Paul Moore added the comment: > The whole point of a venv is to give you a separate directory with a "stand > alone" Python. As that's what you just installed with nuget, there's no point > in creating a venv However, shipping a copy of Python with a non-o

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-02-17 Thread Paul Moore
Paul Moore added the comment: On Sun, 17 Feb 2019 at 14:12, jt wrote: > subprocess.CalledProcessError: Command > '['C:\\myproject\\tools\\windows\\.python-win\\spen-venv\\Scripts\\pip', > 'install', '--upgrade', 'pip']' returned

[issue29319] Embedded 3.6.0 distribution cannot run pyz files

2017-03-09 Thread Paul Moore
Paul Moore added the comment: Confirmed that 3.6.1rc1 fixes the issue in my original use case. -- ___ Python tracker <http://bugs.python.org/issue29319> ___ ___

[issue29775] There appears to be a spurious ^0 in sys.version for 3.6.1rc1

2017-03-09 Thread Paul Moore
New submission from Paul Moore: The 3.6.1rc1 build seems to have a spurious "^0" at the end of the version, before the VCS ID - 3.6.1rc1^0): >py -3.6 Python 3.6.1rc1 (v3.6.1rc1^0:e0fbe5feee4f9c00f09eb9659c2182183036261a, Mar 4 2017, 20:00:12) [MSC v.1900 64 bit (AMD

[issue29319] Embedded 3.6.0 distribution cannot run pyz files

2017-03-10 Thread Paul Moore
Paul Moore added the comment: Nick (or Steve) can you explain how I'd do that? I have a git checkout of the 3.6 branch that I can build. But, how do I merge in the changes from https://github.com/python/cpython/pull/575? The PR seems to be against master, so I'm not sure how to a

[issue29319] Embedded 3.6.0 distribution cannot run pyz files

2017-03-10 Thread Paul Moore
Paul Moore added the comment: OK, cool, thanks. I was sort of hoping for a way to just pull&merge direct from the PR (patches on Windows tend to be fiddly due to EOL issues), but I can go with old-style :-) Yes, with that patch applied it still works fine (I copied python3.dll and pyth

[issue29319] Embedded 3.6.0 distribution cannot run pyz files

2017-03-10 Thread Paul Moore
Paul Moore added the comment: Thanks for that Steve. I had a recollection that there's a way of referencing the PR itself as a branch within the main repo (I guess it must *be* a branch, as how otherwise would github be able to do things like get Travis to build it?) but I don't

[issue29817] File IO r+ read, write, read causes garbage data write.

2017-03-15 Thread Paul Moore
Paul Moore added the comment: Also, this is a Python 2 only issue. The problem doesn't happen in Python 3.6 (at least in my quick experiment). I'm not 100% sure if this is because the internal implementation of IO changed in 3.x, or if it's just because we're now using a

[issue29817] File IO r+ read, write, read causes garbage data write.

2017-03-15 Thread Paul Moore
Changes by Paul Moore : -- stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.org/issue29817> ___ ___ Python-bugs-list

[issue29850] file access, other drives

2017-03-18 Thread Paul Moore
Paul Moore added the comment: Please provide a script reproducing this issue, and precise details of your Python version. It's extremely unlikely that the problem is as broad as you describe, as otherwise we'd have lots of reports of issues. But we'll need a more specific

[issue29850] file access, other drives

2017-03-19 Thread Paul Moore
Paul Moore added the comment: As you see from the banner, your Python 3.6 is 32-bit but your Python 2.7 is 64-bit. I'd suggest you try 64-bit Python 3.6. This definitely looks like the SysWOW64 issue Eryk described. -- ___ Python tracker

[issue29907] Unicode encoding failure

2017-03-26 Thread Paul Moore
Paul Moore added the comment: Also, you need to: 1. Ensure you are using characters that are available in the encoding that sys.stdout uses - in Python prior to 3.6, this would be your Windows *console* code page, and in 3.6+ would be UTF-8. 2. Declare the encoding of your source code if you

[issue29533] urllib2 works slowly with proxy on windows

2017-03-30 Thread Paul Moore
Paul Moore added the comment: The behaviour you're describing for IE sounds like a bug to me. If you specify a host that should bypass the proxy, then that's what should happen - it shouldn't matter if you specify the host by IP address or by name. I'm -1 on Python try

[issue28686] py.exe ignored PATH when using python3 shebang

2017-05-14 Thread Paul Moore
Paul Moore added the comment: > Since we don't AFAIK have any possibility of mixed virtual environments > ignoring SheBangs should meet the basic requirements of operating inside of a > venv. If you want a script to use the current environment, then #!/usr/bin/env python does

[issue30374] Make win_add2path.py take effect without having to log off

2017-05-15 Thread Paul Moore
Paul Moore added the comment: The reasons for not adding Python to PATH by default are complex. We've tried both ways and neither is 100% satisfactory. The default install is a per-user install. If we added Python to PATH, then as a user setting it would come *after* the system part of

[issue30405] PCbuild.bat: register binaries for py launcher

2017-05-19 Thread Paul Moore
Paul Moore added the comment: I'd be wary of leaving out of date registry entries around. Maybe make it a separate script (or part of build.bat but requiring a command line flag to request it)? Alternatively (or as well) we could have a cleanup command that removes registry entrie

[issue30405] PCbuild.bat: register binaries for py launcher

2017-05-19 Thread Paul Moore
Paul Moore added the comment: Hmm, thinking a bit further, are you just suggesting registering the build as -3.7? What if I were to build the 3.6 branch? Would that overwrite my "real" 3.6 registry entries? As things stand, the launcher can only register two copies of Python for

[issue30410] Documentation for sys.stdout encoding does not reflect the new Windows behavior in Python 3.6+

2017-05-20 Thread Paul Moore
New submission from Paul Moore: The documentation for the encoding of sys.stdin/out/err (see https://docs.python.org/3.6/library/sys.html#sys.stdout) does not reflect the change in Python 3.6 on Windows to use the console Unicode APIs, and hence UTF-8 for the encoding. -- assignee

[issue30362] Launcher add list and list with paths options

2017-05-21 Thread Paul Moore
Paul Moore added the comment: I'm also not a fan of the -0 option. I'm OK with the ability to list available interpreters, but there's nothing about -0 as an option that says to me that's what it's for. I'm not a huge fan of including the list in the standard hel

[issue30574] Document why embedding the interpreter can sometimes crash.

2017-06-05 Thread Paul Moore
Paul Moore added the comment: I'm a bit confused what you're asking for here. Certainly if you embed Python, you can get crashes, just as with any other C program. Pass an invalid pointer to a Python API, build your application and the Python DLL with incompatible C runtimes, free

[issue30574] Document why embedding the interpreter can sometimes crash.

2017-06-05 Thread Paul Moore
Paul Moore added the comment: Worked fine for me: >cl .\pyc.c /I $env:LOCALAPPDATA\Programs\Python\Python36\include >$env:LOCALAPPDATA\Programs\Python\Python36\libs\python36.lib Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24213.1 for x64 Copyright (C) Microsoft Corporation

[issue30574] Document why embedding the interpreter can sometimes crash.

2017-06-05 Thread Paul Moore
Paul Moore added the comment: My bet is still on something like you compiling your code 32-bit and linking to 64-bit Python, or something like that. -- ___ Python tracker <http://bugs.python.org/issue30

[issue30574] Document why embedding the interpreter can sometimes crash.

2017-06-05 Thread Paul Moore
Changes by Paul Moore : -- nosy: -paul.moore ___ Python tracker <http://bugs.python.org/issue30574> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36085] Enable better DLL resolution

2019-03-05 Thread Paul Moore
Paul Moore added the comment: As someone whose work environment is still Windows 7, I'd prefer it if it were a soft desupport (i.e., we require users to manually ensure that the KB fix is installed, but we don't do anything specific to refuse to install Python on Win7). I'd

[issue36085] Enable better DLL resolution

2019-03-12 Thread Paul Moore
Paul Moore added the comment: > Also, if I'm understanding your intention, loading an extension may fail when > Python is embedded if the process is using the legacy DLL search path. So, > like with ctypes, we'll be forcing embedding applications to update how they >

[issue36085] Enable better DLL resolution

2019-03-12 Thread Paul Moore
Paul Moore added the comment: > > This bothers me - how will backward compatibility work in that case? > > The new search order is compatible with the old search order, so you can > update all your layouts to have DLL dependencies in suitable locations and > you'll

[issue36085] Enable better DLL resolution

2019-03-12 Thread Paul Moore
Paul Moore added the comment: OK, I don't really follow enough of the details here to comment properly. But clearly Steve and Eryk are not yet in agreement. My personal view is that this is something where we should be trying *very* hard to preserve backward compatibility. The proposal

[issue36085] Enable better DLL resolution

2019-03-12 Thread Paul Moore
Paul Moore added the comment: > Since everyone seems to have misunderstood at least part of the proposal, I'm > not going to explain any more until I have a patch. Excluding boilerplate and > docs, it'll be about ten lines of code. +1 on that. Code is much harder to misu

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-03-14 Thread Paul Moore
Paul Moore added the comment: It appears that the venv module did not get added to the 3.7.3 rc1 embedded distribution. Was that an oversight, or had I misunderstood what was needed for this to have happened? -- ___ Python tracker <ht

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-03-14 Thread Paul Moore
Paul Moore added the comment: Ah, yes, you're right. I'd misremembered. Thanks. -- ___ Python tracker <https://bugs.python.org/issue36010> ___ ___

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-03-15 Thread Paul Moore
Paul Moore added the comment: Apparently, this is not in 3.7.3-rc1: >nuget install python -version 3.7.3-rc1 Feeds used: C:\Users\\.nuget\packages\ https://api.nuget.org/v3/index.json Attempting to gather dependency information for package 'python.3.7.3-rc1' wit

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-03-15 Thread Paul Moore
Paul Moore added the comment: Hmm, I see that the Versions tag here is 3.8. Is this only targeted at 3.8, then? -- ___ Python tracker <https://bugs.python.org/issue36

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-03-15 Thread Paul Moore
Paul Moore added the comment: :-) I assume as we're at rc1, it's too late for 3.7.3, but it could be aimed at 3.7.4. I might try to have a look at it if no-one else does. -- ___ Python tracker <https://bugs.python.o

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-03-16 Thread Paul Moore
Change by Paul Moore : -- keywords: +patch pull_requests: +12330 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-03-16 Thread Paul Moore
Paul Moore added the comment: The referenced PR isn't working - in the nuget package, python.props still says to exclude venv (and indeed venv is still missing). There's a PC/layout/support/props.py file that includes the offending "remove venv" line. Does that need

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-03-18 Thread Paul Moore
Paul Moore added the comment: I ran Tools/nuget/build.bat manually, and the resulting file didn't have lib\venv in it (I opened it in 7-zip, I don't know how to install a local nuget file...). Could you build the nuget files and check? Or suggest a better way I can check that

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-03-18 Thread Paul Moore
Paul Moore added the comment: Thanks! That seems to have done it. Update to the PR incoming once my test build completes. -- ___ Python tracker <https://bugs.python.org/issue36

[issue36305] Inconsistent behavior of pathlib.WindowsPath with drive paths

2019-03-23 Thread Paul Moore
Paul Moore added the comment: (Note: I consider all of these to be *extremely* obscure corner cases) > 1. WindowsPath('C:a').absolute() should return WindowsPath('C:\\d\\a') but > returns WindowsPath('C:a'). > This is caused by flawed logic in the pars

[issue36305] Inconsistent behavior of pathlib.WindowsPath with drive paths

2019-03-23 Thread Paul Moore
Paul Moore added the comment: > > [Note there is no absolute() method - I assume you mean resolve()] > Of course there is an absolute() method, I'm not sure what you are saying... Huh, weird. It's not in https://docs.python.org/3.7/library/pathlib.html But you'

[issue36305] Inconsistent behavior of pathlib.WindowsPath with drive paths

2019-03-23 Thread Paul Moore
Paul Moore added the comment: > does that require me to make any changes in order to make progress with my PR? I'm not going to block this PR. I'd prefer it if we at least documented the agreed behaviour, so that in future people don't come along and say the new behaviour i

[issue36305] Inconsistent behavior of pathlib.WindowsPath with drive paths

2019-03-24 Thread Paul Moore
Paul Moore added the comment: > There's no way to split it up as the joining of two pathlib paths because > there is no way to represent "c:a" by itself as anything other than a > drive-relative path. The name "./c:a" has to be taken as a unit, which is &

[issue36435] multiprocessing crashes in Python 3.7.3 on Windows

2019-03-26 Thread Paul Moore
New submission from Paul Moore : If I run the following sample program using Python 3.7.3 (64 bit) for Windows, it immediately fails, producing a massive traceback. import multiprocessing def f(n): return n+1 with multiprocessing.Pool() as p: for n in p.map(f, [1,2,3

[issue36435] multiprocessing crashes in Python 3.7.3 on Windows

2019-03-26 Thread Paul Moore
Paul Moore added the comment: Oh doh. That's what I get for trying to produce a minimal test case without thinking :-( Thanks for the pointer. I originally hit this (or what I thought was this) in pipx - see https://github.com/pipxproject/pipx/issues/122 but then tried a smaller

[issue35872] Creating venv from venv no longer works in 3.7.2

2019-03-26 Thread Paul Moore
Paul Moore added the comment: See https://github.com/pypa/virtualenv/issues/1339 - it's possible that something in this area is still affecting virtualenv. -- ___ Python tracker <https://bugs.python.org/is

[issue36774] f-strings: Add a !d conversion for ease of debugging

2019-05-02 Thread Paul Moore
Paul Moore added the comment: +1 from me. It's something I'd find useful, and it's a natural extension of the f-string syntax. > I can't decide if I'm going to allow a format specifier. The only useful interpretation IMO would be for {expr!d:fmt} to expand to ex

[issue36774] f-strings: Add a !d conversion for ease of debugging

2019-05-02 Thread Paul Moore
Paul Moore added the comment: > So the question is: how do you get repr by default, but allow the format spec? > > The only thing I've come up with is: > - f"{expr!d}" expands to f"expr={repr(expr)}", but > - f"{expr!d:spec} expands to f"expr=

[issue32553] venv says to use python3 which does not exist in 3.6.4

2018-01-15 Thread Paul Moore
Paul Moore added the comment: Actually, for Windows, the docs don't recommend "python3", they say: """ On Windows, invoke the venv command as follows: c:\>c:\Python35\python -m venv c:\path\to\myenv """ This should probably be altered to sa

[issue32553] venv says to use python3 which does not exist in 3.6.4

2018-01-15 Thread Paul Moore
Paul Moore added the comment: That's why I suggest using the launcher rather than absolute paths - there are far too many variations to enumerate with absolue paths (you didn't mention per-user Python 3.6 installations, for example). If you have a suggested wording that you

[issue32553] venv says to use python3 which does not exist in 3.6.4

2018-01-16 Thread Paul Moore
Paul Moore added the comment: Agreed, the docs don't need to mention PATHEXT. I don't have a machine to hand with Python 3.6 not installed, to check, but I believe the launcher is installed by default (although as you say it can be deselected - and it's definitely described

<    1   2   3   4   5   6   7   >