Re: Spotify Playlist

2020-05-31 Thread Chris Angelico
On Mon, Jun 1, 2020 at 2:55 PM Terry Reedy wrote: > > On 5/31/2020 7:10 PM, Chris Angelico wrote: > > Automation would be a bit harder, as you'd have to periodically query > > the API for each playlist's description, and then update them. > > https://developer.spotify.com/documentation/web-api/ref

Re: OT: ALGOL 60 at 60

2020-05-31 Thread Dennis Carachiola
Ah, but I have used it. Admittedly it was during a programming languages survey course at RPI in 1971-3. -- https://mail.python.org/mailman/listinfo/python-list

Re: Spotify Playlist

2020-05-31 Thread Terry Reedy
On 5/31/2020 7:10 PM, Chris Angelico wrote: On Mon, Jun 1, 2020 at 8:34 AM wrote: This means that a fraudulent user can report your playlist 1000 times a day, and there is nothing you can do against it, because if Spotify bans his fake "mail" he will fill the form with another fake email.

Re: Binary Sort on Python List __xor__

2020-05-31 Thread Terry Reedy
On 5/31/2020 12:24 PM, Evan Schalton wrote: I'm less strictly interested in the & operator explicitly working with a bit int, but think it'd be great if the was a built-in filter something like: [1,2,3,4] & [0,0,1,1] => [3,4] OR [1,2,3,4] & [False, False, True, True] = [3,4] Leaving numpy

Re: why no camelCase in PEP 8?

2020-05-31 Thread Dennis Carachiola
>From PEP8-- "The guidelines provided here are intended to improve the readability of code and make it consistent across the wide spectrum of Python code. As PEP 20 says, "Readability counts". A style guide is about consistency. Consistency with this style guide is important. Consistency within

Re: Spotify Playlist

2020-05-31 Thread Chris Angelico
On Mon, Jun 1, 2020 at 8:34 AM wrote: > This means that a fraudulent user can report your playlist 1000 times a > day, and there is nothing you can do against it, because if Spotify bans his > fake "mail" he will fill the form with another fake email. This also means > that if the reporter

Spotify Playlist

2020-05-31 Thread giovanni . braschi2
Hi everyone, first of all I must say I'm NOT a Python expert. In reality, I've never even used Python, but I know that it is a super powerful tool, useful in many contexts, also in Spotify. 2nd disclaimer: English is not my first language so I'll try to explain what I want to ask in the best

Re: I cannot download python files from external source.

2020-05-31 Thread Michio Suginoo
Thanks MRAB Sorry that I did not fully understand your previous message. I have been learning Python within the system of an online course provider. This is my new attempt to use Python outside of the system and everything about the operating environment is very new to me. Thanks On Sun, May 31,

Re: I cannot download python files from external source.

2020-05-31 Thread Michio Suginoo
Hi Evan, Thanks for your explaining the situation in a plain language. Thanks to your description, I have a better understanding. This is one step forward. I will try to open it from Jupyter Notebook. If I still have trouble, I might get back to this list. Then, if you can further advise me from

Re: [RELEASE] Python 3.9.0b1 is now available for testing

2020-05-31 Thread Robin Becker
I used https://github.com/python/pyperformance pyperformance to compare Arch linux latest Python 3.8.3 (default, May 17 2020, 18:15:42) [GCC 10.1.0] on linux Type "help", "copyright", "credits" or "license" for more information. against a vanilla build (configure make makeinstall) of pytho

Re: Binary Sort on Python List __xor__

2020-05-31 Thread Evan Schalton
I think you're arguing both sides of the argument -- numpy arrays do have a lot of similar, related operations (because numpy uses them internally -- since they're more efficient) which means they're not fringe. I'm advocating that the built-in list class add the efficient, convenience methods

Re: Binary Sort on Python List __xor__

2020-05-31 Thread Peter Otten
Evan Schalton wrote: > Peter, > > This isn't a ram consideration as much it's a logical consideration. There > are a lot of ways to handle this, I REALLY don't want to use a package > here. Bit masking is incredibly useful for permutations/combinatoric > algorithms. I can create my own class wrap

Re: I cannot download python files from external source.

2020-05-31 Thread Evan Schalton
Michio, Are you trying to open the ipynb file with python? You need Jupyter Notebook to run ipynb files. Try installing jupyter notebook (cmd: pip install jupyter) then launching the jupyter notebook py server (cmd: jupyter notebook). You should be able to use the file browser in the notebook w

Re: Binary Sort on Python List __xor__

2020-05-31 Thread Evan Schalton
Peter, This isn't a ram consideration as much it's a logical consideration. There are a lot of ways to handle this, I REALLY don't want to use a package here. Bit masking is incredibly useful for permutations/combinatoric algorithms. I can create my own class wrapper or functions, and optimize,

Re: I cannot download python files from external source.

2020-05-31 Thread MRAB
On 2020-05-31 15:36, Michio Suginoo wrote: Thanks MRAB, I try to download the external file in .ipynb. And I get the message attached herewith. And this is not the first time, it has been like this. And I have never been able to download any python file. I just wonder if it has anything to do

Re: Binary Sort on Python List __xor__

2020-05-31 Thread Peter Otten
evan.schal...@gmail.com wrote: > I frequently use binary as bool placeholders and find myself filtering > lists based on those bools, this seems to have a similar semantic meaning > as the bit wise ^ or __xor__ operator and could add syntactic sugar to the > base list class. > > Use Case: > > Co