Re: GPG signatures invisible in new PyPI (was: Re: new Python Package Index is now in beta at pypi.org)

2018-03-31 Thread Dominik George
Hi Sumana, > I've been trying to reach out to the Debian Python community via IRC, > personal connections, tickets, and mailing lists to ensure a smooth > transition; I see now that a post I tried to get onto the debian-python > list a few weeks ago did not get posted there, so I've re-sent it. I'

Unified async/sync interface

2018-03-31 Thread Demian Brecht
I might be entirely off my face, but figured I'd ask anyways given I haven't figured out a clean solution to this problem myself yet: I'm trying to write a REST API client that supports both async and synchronous HTTP transports (initially requests and aiohttp). So far, I've tried a few approaches

Beta release of pip version 10

2018-03-31 Thread Mikhail V
MRAB writes: > > UnicodeEncodeError: 'charmap' codec can't encode character > > > > when it meets a non-ascii char. > > > > e.g. tried this: > > pip search pygame > a.txt > > > Well, _I_ didn't get an error! > > One of the lines is: > > kundalini (0.4)- LրVE-like PyGame API > > So

Re: GPG signatures invisible in new PyPI (was: Re: new Python Package Index is now in beta at pypi.org)

2018-03-31 Thread Sumana Harihareswara
On 03/31/2018 06:26 PM, Dominik George wrote: > Hi, > > On Sat, Mar 31, 2018 at 06:16:51PM -0400, Sumana Harihareswara wrote: >> The new Python Package Index at https://pypi.org is now in beta. > > Yep! > > I read that the new Warehouse does not offer GPG signature files for > download. > > Why

Re: Beta release of pip version 10

2018-03-31 Thread MRAB
On 2018-04-01 02:50, Mikhail V wrote: Steven D'Aprano writes: PS: was looking forward to PIP improvements on Windows, on 9.0.3 still some issues. E.g. trying to redirect output from 'pip search ... > a.txt' gives a wall of errors. it's on Windows 10. Don't be shy, tell us what those errors

Beta release of pip version 10

2018-03-31 Thread Mikhail V
Steven D'Aprano writes: >> >> PS: was looking forward to PIP improvements on Windows, on 9.0.3 still >> some issues. E.g. trying to redirect output from 'pip search ... > >> a.txt' gives a wall of errors. it's on Windows 10. > > > > Don't be shy, tell us what those errors are. You meant - don't

Re: Beta release of pip version 10

2018-03-31 Thread Steven D'Aprano
On Sun, 01 Apr 2018 03:17:51 +0300, Mikhail V wrote: > PS: was looking forward to PIP improvements on Windows, on 9.0.3 still > some issues. E.g. trying to redirect output from 'pip search ... > > a.txt' gives a wall of errors. it's on Windows 10. Don't be shy, tell us what those errors are. -

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Steven D'Aprano
On Sat, 31 Mar 2018 14:07:37 -0400, Terry Reedy wrote: > On 3/31/2018 11:58 AM, Etienne Robillard wrote: > >> Do you really think people in Somalia can afford theses things like in >> the US? > > No, many cannot afford $600 Caddilac-style phones to take 10 megapixel > pictures and watch UTube vi

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Steven D'Aprano
On Sat, 31 Mar 2018 10:58:51 -0400, Etienne Robillard wrote: > Hi, > > I was just wondering, could the fact that the Python community is > willing to discontinue using and developing Python 2 softwares, does > that mean we are stopping to support standard computers and laptops as > well? That se

Beta release of pip version 10

2018-03-31 Thread Mikhail V
Paul Moore writes : If you discover any bugs while testing the new release, please report > them at https://github.com/pypa/pip/issues. Link not working (on pipermail archive -- remove the period on the end) https://github.com/pypa/pip/issues PS: was looking forward to PIP improvements on Windo

GPG signatures invisible in new PyPI (was: Re: new Python Package Index is now in beta at pypi.org)

2018-03-31 Thread Dominik George
Hi, On Sat, Mar 31, 2018 at 06:16:51PM -0400, Sumana Harihareswara wrote: > The new Python Package Index at https://pypi.org is now in beta. Yep! I read that the new Warehouse does not offer GPG signature files for download. Why not? How can I still get them (append .asc to the source downlaod

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Rick Johnson
Grant Edwards wrote: > Etienne Robillard wrote: > > > Do you understand that a modern mobile device typically > > require a Internet subscription and an additional > > subscription for the smart phone? > > Huh? What is "an internet subscription"? Why would you > need two of them if all you have

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Terry Reedy
On 3/31/2018 11:58 AM, Etienne Robillard wrote: Do you really think people in Somalia can afford theses things like in the US? No, many cannot afford $600 Caddilac-style phones to take 10 megapixel pictures and watch UTube videos. Instead they buy $100 VWBug-style phones that let them get c

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Grant Edwards
On 2018-03-31, Etienne Robillard wrote: > Are you trolling? Do you understand that a modern mobile device > typically require a Internet subscription and an additional subscription > for the smart phone? Huh? What is "an internet subscription"? Why would you need two of them if all you have

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Michael Torrie
On Mar 31, 2018 09:58, "Etienne Robillard" wrote: Le 2018-03-31 à 11:40, Michael Torrie a écrit : > On 03/31/2018 08:58 AM, Etienne Robillard wrote: > >> I was just wondering, could the fact that the Python community is >> willing to discontinue using and developing Python 2 softwares, does >>

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Anders Wegge Keller
På Sat, 31 Mar 2018 11:58:39 -0400 Etienne Robillard skrev: > Are you trolling? Do you understand that a modern mobile device > typically require a Internet subscription and an additional subscription > for the smart phone? I think the question is why you equate python3 with the need for inte

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread bartc
On 31/03/2018 16:58, Etienne Robillard wrote: Le 2018-03-31 à 11:40, Michael Torrie a écrit : On 03/31/2018 08:58 AM, Etienne Robillard wrote: I was just wondering, could the fact that the Python community is willing to discontinue using and developing Python 2 softwares, does   that mean we

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Chris Angelico
On Sun, Apr 1, 2018 at 2:58 AM, Etienne Robillard wrote: > > > Le 2018-03-31 à 11:40, Michael Torrie a écrit : >> >> On 03/31/2018 08:58 AM, Etienne Robillard wrote: >>> >>> I was just wondering, could the fact that the Python community is >>> willing to discontinue using and developing Python 2 s

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Etienne Robillard
Le 2018-03-31 à 11:40, Michael Torrie a écrit : On 03/31/2018 08:58 AM, Etienne Robillard wrote: I was just wondering, could the fact that the Python community is willing to discontinue using and developing Python 2 softwares, does that mean we are stopping to support standard computers and

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Michael Torrie
On 03/31/2018 08:58 AM, Etienne Robillard wrote: > I was just wondering, could the fact that the Python community is > willing to discontinue using and developing Python 2 softwares, does > that mean we are stopping to support standard computers and laptops > as well? I've tried several times bu

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Etienne Robillard
Hi, I was just wondering, could the fact that the Python community is willing to discontinue using and developing Python 2 softwares, does that mean we are stopping to support standard computers and laptops as well? Furthermore, does it bother you to develop code primarly oriented towards mo

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Gene Heskett
On Saturday 31 March 2018 10:16:13 Ian Kelly wrote: > On Sat, Mar 31, 2018 at 6:29 AM, Rick Johnson > > wrote: > > On Friday, March 30, 2018 at 8:59:16 PM UTC-5, Chris Angelico wrote: > >> Wanna provide some competing information showing that other > >> languages are more used? > > > > Chris, her

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Ian Kelly
On Sat, Mar 31, 2018 at 6:29 AM, Rick Johnson wrote: > On Friday, March 30, 2018 at 8:59:16 PM UTC-5, Chris Angelico wrote: >> Wanna provide some competing information showing that other >> languages are more used? > > Chris, here is how debate works: > > PersonA asserts X. > > PersonB dem

Re: please test the new PyPI (now in beta)

2018-03-31 Thread Sumana Harihareswara
Quick note: we've implemented the fix Terry Jan Reedy suggested regarding window width and filters to fix https://github.com/pypa/warehouse/issues/3454 , so thank you to everyone who helped us nail this down. The next IRC/Twitter livechat hour with PyPI maintainers is Tuesday, April 3rd at 15:00 U

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Chris Angelico
On Sat, Mar 31, 2018 at 11:29 PM, Rick Johnson wrote: > Under no circumstance is PersonB required to prove PersonA'a > assertions. The onerous is on PersonA. Assertion: Rick doesn't know what "onerous" means. Under no circumstance is Rick required to prove me right. But he obliged anyway. Very k

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Rick Johnson
On Friday, March 30, 2018 at 8:59:16 PM UTC-5, Chris Angelico wrote: [...] > You can pooh-pooh any statistic. Yeah, except the ones supported by actual _facts_. > So far, though, you have provided NO statistics of your > own, just your own gut feeling. Uh huh. And what do you call drawing naiv

Beta release of pip version 10

2018-03-31 Thread Paul Moore
On behalf of the PyPA, I am pleased to announce that a beta release 10.0.0b1 of pip has just been released for testing by the community. We're planning on a final release in 2 weeks' time, over the weekend of 14/15 April. To install pip 10.0.0.b1, you can run python -m pip install --upgrade -

Re: How to fill in a dictionary with key and value from a string?

2018-03-31 Thread bartc
On 30/03/2018 21:13, C W wrote: Hello all, I want to create a dictionary. The keys are 26 lowercase letters. The values are 26 uppercase letters. The output should look like: {'a': 'A', 'b': 'B',...,'z':'Z' } I know I can use string.ascii_lowercase and string.ascii_uppercase, but how do I u

Re: Curious case of UnboundLocalError

2018-03-31 Thread Peter Otten
Johannes Bauer wrote: > On 30.03.2018 13:25, Johannes Bauer wrote: > >>> This mention of collections refers to ... >>> } for (_, collections) in z.items(): >>> >>> ... this local variable. >> >> Yup, but why? I mean, at the point of definition of "z", the only >> definition of "collect

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Steven D'Aprano
On Sat, 31 Mar 2018 12:39:48 +0300, Marko Rauhamaa wrote: > Paul Rubin : >> All the scripts that say #!/usr/bin/python at the top will still use >> python2. > > Which is how it should be till the end of times. Don't be silly -- they should use Python 1, of course, as nature intended. In 20 year

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Steven D'Aprano
On Sat, 31 Mar 2018 12:32:31 +0300, Marko Rauhamaa wrote: > Paul Rubin : > >> Marko Rauhamaa writes: >>> Yes, RHEL, CentOS and OracleLinux still only support Python2. It may >>> be another year before Python3 becomes available on them. >> >> Debian's default Python is also Python2. I don't say i

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Marko Rauhamaa
Paul Rubin : > All the scripts that say #!/usr/bin/python at the top will still use > python2. Which is how it should be till the end of times. Unfortunately, ArchLinux decided otherwise, which has caused quite a bit of grief in the office, where a coworker uses it. We thought we could get aroun

Re: Curious case of UnboundLocalError

2018-03-31 Thread Johannes Bauer
On 30.03.2018 16:46, Ben Bacarisse wrote: >> Yup, but why? I mean, at the point of definition of "z", the only >> definition of "collections" that would be visible to the code would be >> the globally imported module, would it not? How can the code know of the >> local declaration that only comes

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Marko Rauhamaa
Paul Rubin : > Marko Rauhamaa writes: >> Yes, RHEL, CentOS and OracleLinux still only support Python2. It may >> be another year before Python3 becomes available on them. > > Debian's default Python is also Python2. I don't say it *only* > supports python2 since you can optionally install python3