Extract the package list from pypi simple api efficiently.

2020-10-30 Thread Hongyi Zhao
Hi, The pypi exposes its simple api at , which can be used to extract the complete package name list. I want to do the job efficiently and write the following simple codes: import requests proxies = { 'http': 'socks5h://127.0.0.1:1', 'https': 'sock

Re: GUI: I am also looking for a nudge into the best (GUI) direction.

2020-10-30 Thread flaskee via Python-list
I was actually working on a summarized list for my question. I thought that I'd produce an up-to-date list of GUI toolkits, with everyone's responses; plus what I've cobbled together from comparisons on other sites. Sent with ProtonMail Secure Email. ‐‐‐ Original Message ‐‐‐ On Thursd

Best way to determine user's screensize?

2020-10-30 Thread flaskee via Python-list
Perhaps a more tactical approach would best to figure out how to do cross-platform python apps. What is the best approach to determining the user's available screensize, when they open your python application? Note that the "desktop" application could be running on Android, iOS, MacOS, Windows or

Re: Best way to determine user's screensize?

2020-10-30 Thread Igor Korot
Hi, On Fri, Oct 30, 2020, 10:59 AM flaskee via Python-list < python-list@python.org> wrote: > Perhaps a more tactical approach would best to figure > out how to do cross-platform python apps. > > What is the best approach to determining the user's available screensize, > when they open your pyt

Re: Best way to determine user's screensize?

2020-10-30 Thread Grant Edwards
On 2020-10-30, flaskee via Python-list wrote: > What is the best approach to determining the user's available > screensize, when they open your python application? Why do you think that's something your application needs to know? I _hate_ applications that think just because they've been starte

Re: Best way to determine user's screensize?

2020-10-30 Thread Igor Korot
Hi, On Fri, Oct 30, 2020 at 12:26 PM Grant Edwards wrote: > > On 2020-10-30, flaskee via Python-list wrote: > > > What is the best approach to determining the user's available > > screensize, when they open your python application? > > Why do you think that's something your application needs to

Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

2020-10-30 Thread Gian_Xatzak .
When I tried to download  matplotlib, it show me that message in the end:   ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.   *I have Windows 10, Python3.8.6(64bit)     Sent from [1]Mail for Windows 10

Re: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

2020-10-30 Thread Chris Angelico
On Sat, Oct 31, 2020 at 6:39 AM Gian_Xatzak. wrote: > >When I tried to download matplotlib, it show me that message in the end: > > > >ERROR: Command errored out with exit status 1: python setup.py egg_info >Check the logs for full command output. > Did you check the logs? You should

Re: Best way to determine user's screensize?

2020-10-30 Thread Random832
On Fri, Oct 30, 2020, at 12:05, Grant Edwards wrote: > Why do you think that's something your application needs to know? > > I _hate_ applications that think just because they've been started > they now own the entire computer and everything reachable from it. > > All you need to know is how big

Re: Best way to determine user's screensize?

2020-10-30 Thread Igor Korot
Hi, On Fri, Oct 30, 2020 at 4:20 PM Random832 wrote: > > On Fri, Oct 30, 2020, at 12:05, Grant Edwards wrote: > > Why do you think that's something your application needs to know? > > > > I _hate_ applications that think just because they've been started > > they now own the entire computer and e

Re: Best way to determine user's screensize?

2020-10-30 Thread Peter J. Holzer
On 2020-10-30 16:31:25 -0500, Igor Korot wrote: > On Fri, Oct 30, 2020 at 4:20 PM Random832 wrote: > > > > On Fri, Oct 30, 2020, at 12:05, Grant Edwards wrote: > > > Why do you think that's something your application needs to know? > > > > > > I _hate_ applications that think just because they've

Re: Best way to determine user's screensize?

2020-10-30 Thread flaskee via Python-list
‐‐‐ Original Message ‐‐‐ On Friday, October 30, 2020 5:31 PM, Igor Korot wrote: > Hi, > > On Fri, Oct 30, 2020 at 4:20 PM Random832 random...@fastmail.com wrote: > > > On Fri, Oct 30, 2020, at 12:05, Grant Edwards wrote: > > > > > Why do you think that's something your application needs

Re: Best way to determine user's screensize?

2020-10-30 Thread Chris Angelico
On Sat, Oct 31, 2020 at 9:55 AM flaskee via Python-list wrote: > I have done all of this resizing and layout stuff before. > > I just ignored the grouchy user with the hate over me wanting screensize. > (every list has one of those types, eh? :-) > > Screensize, in part, determines the aspect rati

Re: Best way to determine user's screensize?

2020-10-30 Thread flaskee via Python-list
I'm closing in on the screen width/height, at least. In odd screen sizes or multi-monitor situations, I make the best guess, but allow the user to alter things, via preferences. No complaints in 10 years. So there's that. # For MacOS Code: import AppKit [(screen.frame().size.width, screen.fr

Re: Best way to determine user's screensize?

2020-10-30 Thread Chris Angelico
On Sat, Oct 31, 2020 at 10:17 AM flaskee via Python-list wrote: > > > I'm closing in on the screen width/height, at least. > > > In odd screen sizes or multi-monitor situations, > I make the best guess, > but allow the user to alter things, > via preferences. > > No complaints in 10 years. > So th

Re: Best way to determine user's screensize?

2020-10-30 Thread Igor Korot
Hi, On Fri, Oct 30, 2020 at 6:24 PM Chris Angelico wrote: > > On Sat, Oct 31, 2020 at 10:17 AM flaskee via Python-list > wrote: > > > > > > I'm closing in on the screen width/height, at least. > > > > > > In odd screen sizes or multi-monitor situations, > > I make the best guess, > > but allow t

Re: Best way to determine user's screensize?

2020-10-30 Thread flaskee via Python-list
> Funny thing about complaints... you don't hear any from people who > just uninstall your app and move right on with their lives. > > Multi-monitor situations are pretty common. Since you don't seem to > care about them, I no longer care about your app. Whatever it is, I > don't need it. > > Chr

Re: Best way to determine user's screensize?

2020-10-30 Thread Peter J. Holzer
On 2020-10-31 10:02:12 +1100, Chris Angelico wrote: > On Sat, Oct 31, 2020 at 9:55 AM flaskee via Python-list > wrote: > > I have done all of this resizing and layout stuff before. > > > > I just ignored the grouchy user with the hate over me wanting screensize. > > (every list has one of those ty

Re: Best way to determine user's screensize?

2020-10-30 Thread boB Stepp
On Sat, Oct 31, 2020 at 12:56:30AM +0100, Peter J. Holzer wrote: So, assuming the user is invoking the application for the first time, how should an application determine how much of the screen it should use? It has to make some choice, and any hard-coded value is almost certainly wrong. So why

Re: Best way to determine user's screensize?

2020-10-30 Thread Igor Korot
Hi, On Fri, Oct 30, 2020 at 6:59 PM Peter J. Holzer wrote: > > On 2020-10-31 10:02:12 +1100, Chris Angelico wrote: > > On Sat, Oct 31, 2020 at 9:55 AM flaskee via Python-list > > wrote: > > > I have done all of this resizing and layout stuff before. > > > > > > I just ignored the grouchy user wi

Re: Best way to determine user's screensize?

2020-10-30 Thread songbird
Chris Angelico wrote: ... > I add my voice to those who detest applications that think they know > best and decide that they own the entire screen. It is incredibly > annoying. do you object to a window being put in the approximate center of the screen? songbird -- https://mail.python.org/m

Re: Best way to determine user's screensize?

2020-10-30 Thread Igor Korot
Hi, On Fri, Oct 30, 2020 at 7:52 PM songbird wrote: > > Chris Angelico wrote: > ... > > I add my voice to those who detest applications that think they know > > best and decide that they own the entire screen. It is incredibly > > annoying. > > do you object to a window being put in the approxi

Re: Best way to determine user's screensize?

2020-10-30 Thread Chris Angelico
On Sat, Oct 31, 2020 at 11:51 AM songbird wrote: > > Chris Angelico wrote: > ... > > I add my voice to those who detest applications that think they know > > best and decide that they own the entire screen. It is incredibly > > annoying. > > do you object to a window being put in the approximate

Re: Best way to determine user's screensize?

2020-10-30 Thread 2QdxY4RzWzUUiLuE
On 2020-10-30 at 20:47:50 -0400, songbird wrote: > Chris Angelico wrote: > ... > > I add my voice to those who detest applications that think they know > > best and decide that they own the entire screen. It is incredibly > > annoying. > > do you object to a window being put in the approximate

Re: Best way to determine user's screensize?

2020-10-30 Thread Chris Angelico
On Sat, Oct 31, 2020 at 10:57 AM Peter J. Holzer wrote: > > On 2020-10-31 10:02:12 +1100, Chris Angelico wrote: > > On Sat, Oct 31, 2020 at 9:55 AM flaskee via Python-list > > wrote: > > > I have done all of this resizing and layout stuff before. > > > > > > I just ignored the grouchy user with t

Why x+=1 doesn't return x value instead of an object

2020-10-30 Thread Siddhharth Choudhary
I want to know why x+=1 does not return the value of the variable. It would be great if It has returned the value of the variable instead of an object. It will increase the beauty of python. For instance, x = 5 x+=1 print(x) = 6 If x+=1 had returned the

Re: Why x+=1 doesn't return x value instead of an object

2020-10-30 Thread Jon Ribbens via Python-list
On 2020-10-31, Stefan Ram wrote: > Siddhharth Choudhary writes: >>I want to know why x+=1 does not return the value of the variable. > > Which value? The old or the new one? > > Expressions never return values. Except when they're assignment expressions, when they do. -- https://mail.python

Re: Best way to determine user's screensize?

2020-10-30 Thread jfong
What's wrong the OP's question? Why can't just answer it? --Jach -- https://mail.python.org/mailman/listinfo/python-list

Re: Why x+=1 doesn't return x value instead of an object

2020-10-30 Thread Chris Angelico
On Sat, Oct 31, 2020 at 1:51 PM Jon Ribbens via Python-list wrote: > > On 2020-10-31, Stefan Ram wrote: > > Siddhharth Choudhary writes: > >>I want to know why x+=1 does not return the value of the variable. > > > > Which value? The old or the new one? > > > > Expressions never return values

Re: Why x+=1 doesn't return x value instead of an object

2020-10-30 Thread Jon Ribbens via Python-list
On 2020-10-31, Chris Angelico wrote: > On Sat, Oct 31, 2020 at 1:51 PM Jon Ribbens via Python-list > wrote: >> >> On 2020-10-31, Stefan Ram wrote: >> > Siddhharth Choudhary writes: >> >>I want to know why x+=1 does not return the value of the variable. >> > >> > Which value? The old or the new

Re: Best way to determine user's screensize?

2020-10-30 Thread Random832
On Fri, Oct 30, 2020, at 20:18, Igor Korot wrote: > Hi, > > On Fri, Oct 30, 2020 at 6:59 PM Peter J. Holzer wrote: > > So, assuming the user is invoking the application for the first time, > > how should an application determine how much of the screen it should > > use? It has to make some choice

Re: Why x+=1 doesn't return x value instead of an object

2020-10-30 Thread Chris Angelico
On Sat, Oct 31, 2020 at 2:41 PM Jon Ribbens via Python-list wrote: > > On 2020-10-31, Chris Angelico wrote: > > On Sat, Oct 31, 2020 at 1:51 PM Jon Ribbens via Python-list > > wrote: > >> > >> On 2020-10-31, Stefan Ram wrote: > >> > Siddhharth Choudhary writes: > >> >>I want to know why x+=1 do

Re: Best way to determine user's screensize?

2020-10-30 Thread Chris Angelico
On Sat, Oct 31, 2020 at 2:43 PM Random832 wrote: > > On Fri, Oct 30, 2020, at 20:18, Igor Korot wrote: > > Hi, > > > > On Fri, Oct 30, 2020 at 6:59 PM Peter J. Holzer wrote: > > > So, assuming the user is invoking the application for the first time, > > > how should an application determine how m

Re: Best way to determine user's screensize?

2020-10-30 Thread Igor Korot
Hi, On Fri, Oct 30, 2020 at 10:44 PM Random832 wrote: > > On Fri, Oct 30, 2020, at 20:18, Igor Korot wrote: > > Hi, > > > > On Fri, Oct 30, 2020 at 6:59 PM Peter J. Holzer wrote: > > > So, assuming the user is invoking the application for the first time, > > > how should an application determine

Re: Why x+=1 doesn't return x value instead of an object

2020-10-30 Thread dn via Python-list
On 31/10/2020 16:20, Chris Angelico wrote: On Sat, Oct 31, 2020 at 1:51 PM Jon Ribbens via Python-list wrote: On 2020-10-31, Stefan Ram wrote: Siddhharth Choudhary writes: I want to know why x+=1 does not return the value of the variable. Which value? The old or the new one? Expre

Re: Why x+=1 doesn't return x value instead of an object

2020-10-30 Thread Chris Angelico
On Sat, Oct 31, 2020 at 4:44 PM dn via Python-list wrote: > Free advice: whatever you do, don't call @Chris a walrus! Yeah... I do have quite a moustache, but it doesn't merit a high title like that! :) ChrisA -- https://mail.python.org/mailman/listinfo/python-list