Re: [Python-Dev] RE 25939 - _ssl.enum_certificates broken on Windows
On 17 February 2016 at 23:26, Dave Hirschfeld wrote: > I've run into issue 25939 (https://bugs.python.org/issue25939) when trying > to deploy a python webapp with IIS on Windows. This issue is preventing us > from deploying the app to production as the workaround AFAICT requires > running the app under an admin account. > > Apologies if this is an inappropriate forum for a +1 but I just wanted to > let the devs know that this is an issue which affects the use of Python > (on Windows) in the enterprise. I noticed that the patch hasn't been > merged yet so was interested in making sure it didn't fall by the > wayside... > > As a mere user I don't expect the devs to prioritize my own problems which > no doubt only affect a very small number of python users but I would be > very grateful if the patch did make it into a minor release. Looks like Benjamin has committed the fix. Paul ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Disabling changing sys.argv[0] with runpy.run_module(...alter_sys=True)
Done: http://bugs.python.org/issue26388 On Wed, Feb 17, 2016 at 10:44 AM, Brett Cannon wrote: > > > On Tue, 16 Feb 2016 at 20:59 Mike Kaplinskiy > wrote: > >> Hey folks, >> >> I hope this is the right list for this sort of thing (python-ideas seemed >> more far-fetched). >> >> For some context: there is currently a issue with pex that causes >> sys.modules lookups to stop working for __main__. In turns this makes >> unittest.run() & pkg_resources.resource_* fail. The root cause is that pex >> uses runpy.run_module with alter_sys=False. The fix should be to just pass >> alter_sys=True, but that changes sys.argv[0] and various existing pex files >> depend on that being the pex file. You can read more at >> https://github.com/pantsbuild/pex/pull/211 . >> >> Conservatively, I'd like to propose adding an argument to disable this >> behavior. The current behavior breaks a somewhat reasonable invariant that >> you can restart your program via `os.execv([sys.executable] + sys.argv)`. >> Moreover it might be user-friendly to add a `argv=sys.argv[1:]` argument to >> set & restore the full arguments to the module, where `argv=None` disables >> argv[0] switching. >> >> What do you think? >> > > This probably is best served as a feature request on bugs.python.org > since it's not asking for some massive change or new feature but just a > minor tweak to a module. > ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] RE 25939 - _ssl.enum_certificates broken on Windows
Paul Moore gmail.com> writes: > > On 17 February 2016 at 23:26, Dave Hirschfeld gmail.com> wrote: > > I've run into issue 25939 (https://bugs.python.org/issue25939) when trying > > to deploy a python webapp with IIS on Windows. This issue is preventing us > > from deploying the app to production as the workaround AFAICT requires > > running the app under an admin account. > > > > As a mere user I don't expect the devs to prioritize my own problems which > > no doubt only affect a very small number of python users but I would be > > very grateful if the patch did make it into a minor release. > > Looks like Benjamin has committed the fix. > > Paul > The issue is still open because of an unresolved question about testing but the patch has been committed so thanks for that! Reminds me of the saying "perfection is the enemy of shipped". I'd help with getting the test committed but unfortunately it's well outside my area of expertise... -Dave ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] RE 25939 - _ssl.enum_certificates broken on Windows
I think the test is blocked on my question of whether we are allowed to rely on ctypes in the test suite. If so, it's fine as I recall. Fairly sure it's a Windows-specific test anyway, so ctypes can basically be assumed for all Windows platforms we currently care about. Top-posted from my Windows Phone -Original Message- From: "Dave Hirschfeld" Sent: 2/18/2016 15:20 To: "python-dev@python.org" Subject: Re: [Python-Dev] RE 25939 - _ssl.enum_certificates broken on Windows Paul Moore gmail.com> writes: > > On 17 February 2016 at 23:26, Dave Hirschfeld gmail.com> wrote: > > I've run into issue 25939 (https://bugs.python.org/issue25939) when trying > > to deploy a python webapp with IIS on Windows. This issue is preventing us > > from deploying the app to production as the workaround AFAICT requires > > running the app under an admin account. > > > > As a mere user I don't expect the devs to prioritize my own problems which > > no doubt only affect a very small number of python users but I would be > > very grateful if the patch did make it into a minor release. > > Looks like Benjamin has committed the fix. > > Paul > The issue is still open because of an unresolved question about testing but the patch has been committed so thanks for that! Reminds me of the saying "perfection is the enemy of shipped". I'd help with getting the test committed but unfortunately it's well outside my area of expertise... -Dave ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/steve.dower%40python.org ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] RE 25939 - _ssl.enum_certificates broken on Windows
There are already many tests that require ctypes. See for example test_uuid.py. -- Eric. > On Feb 18, 2016, at 7:18 PM, Steve Dower wrote: > > I think the test is blocked on my question of whether we are allowed to rely > on ctypes in the test suite. > > If so, it's fine as I recall. Fairly sure it's a Windows-specific test > anyway, so ctypes can basically be assumed for all Windows platforms we > currently care about. > > Top-posted from my Windows Phone > From: Dave Hirschfeld > Sent: 2/18/2016 15:20 > To: python-dev@python.org > Subject: Re: [Python-Dev] RE 25939 - _ssl.enum_certificates broken on Windows > > Paul Moore gmail.com> writes: > > > > > On 17 February 2016 at 23:26, Dave Hirschfeld > gmail.com> wrote: > > > I've run into issue 25939 (https://bugs.python.org/issue25939) when > trying > > > to deploy a python webapp with IIS on Windows. This issue is > preventing us > > > from deploying the app to production as the workaround AFAICT > requires > > > running the app under an admin account. > > > > > > > As a mere user I don't expect the devs to prioritize my own problems > which > > > no doubt only affect a very small number of python users but I would > be > > > very grateful if the patch did make it into a minor release. > > > > Looks like Benjamin has committed the fix. > > > > Paul > > > > The issue is still open because of an unresolved question about testing > but the patch has been committed so thanks for that! Reminds me of the > saying "perfection is the enemy of shipped". > > I'd help with getting the test committed but unfortunately it's well > outside my area of expertise... > > > -Dave > > ___ > Python-Dev mailing list > Python-Dev@python.org > https://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > https://mail.python.org/mailman/options/python-dev/steve.dower%40python.org > ___ > Python-Dev mailing list > Python-Dev@python.org > https://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > https://mail.python.org/mailman/options/python-dev/eric%2Ba-python-dev%40trueblade.com ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com