Re: Trouble trying to get started with pygame

2019-11-08 Thread originallmoney
On Thursday, November 7, 2019 at 1:21:37 AM UTC-5, illume wrote: > Hi, > > either use python 3.7, or use the pre-release of pygame 2. > py -m pip install pygame==2.0.0.dev6 > > We're not going to do a python 3.8 release for pygame 1.9.x > > > cheers, Well, it seems like that did the trick! I g

Re: Can't run easy_install even though setuptools is installed

2019-11-08 Thread Cameron Simpson
On 09Nov2019 13:15, Cameron Simpson wrote: On 08Nov2019 09:14, Chris Green wrote: Cameron Simpson wrote: Have you tried this? pip install onkyo-eiscp I have now and it worked perfectly. So why do the install instructions for onkyo-eiscp say do "easy_install onkyo-eiscp"? It definitely m

Re: Can't run easy_install even though setuptools is installed

2019-11-08 Thread Cameron Simpson
On 08Nov2019 09:14, Chris Green wrote: Cameron Simpson wrote: Have you tried this? pip install onkyo-eiscp I have now and it worked perfectly. So why do the install instructions for onkyo-eiscp say do "easy_install onkyo-eiscp"? It definitely means from the command line. I mean it's no

Help with JWT and Apple Connect API

2019-11-08 Thread shangitsystems
Hello All would welcome any advice on the following thank you I am trying to use Apple's Connect API to download reports (sales etc. the following code runs with out any error but I cant find an example of how to use the JWT [python] from datetime import datetime, timedelta import jwt KEY_ID

Re: Syntax Suggestion: Pass Function Definition as Argument

2019-11-08 Thread Stephen Waldron
Ok firstly, this idea was inspired specifically by a project I'm working on for school concerning linked lists, in which I was trying to create a method that performed a function on elements iteratively without having to navigate the list from the head each time (of course taking the function as

Re: Syntax Suggestion: Pass Function Definition as Argument

2019-11-08 Thread Chris Angelico
On Fri, Nov 8, 2019 at 11:22 PM Antoon Pardon wrote: > > On 8/11/19 13:00, Chris Angelico wrote: > > On Fri, Nov 8, 2019 at 10:57 PM Antoon Pardon wrote: > >> On 7/11/19 18:10, Stephen Waldron wrote: > >>> What I'm aiming for is the ability to, within a function call, pass a > >>> suite that wou

Re: Using Makefiles in Python projects

2019-11-08 Thread Chris Angelico
On Sat, Nov 9, 2019 at 3:31 AM Marko Rauhamaa wrote: > > Skip Montanaro : > > > On Thu, Nov 7, 2019 at 1:24 PM Vitaly Potyarkin wrote: > >> > >> What do you think of using Makefiles for automating common chores in > >> Python projects? Like linting, type checking and testing? > > > > Kinda unsure

Re: Using Makefiles in Python projects

2019-11-08 Thread Marko Rauhamaa
Skip Montanaro : > On Thu, Nov 7, 2019 at 1:24 PM Vitaly Potyarkin wrote: >> >> What do you think of using Makefiles for automating common chores in >> Python projects? Like linting, type checking and testing? > > Kinda unsure why this needs to be asked (says the guy who's used Make > longer than

Re: psutil.boot_time() ... doesn't ?

2019-11-08 Thread R.Wieser
Dennis, > However -- manually changing date/time is not going to illustrate this. > ANY change made to date/time will reflect a change in UTC time. It turns out that the get_uptime() does /not/ calculate the boottime from the current clock minus the uptime. Its a seconds-since-epoch (absolute!)

Re: psutil.boot_time() ... doesn't ?

2019-11-08 Thread R.Wieser
Dennis, > Well... If it is the last file written during shutdown, it would be > the "last file system modification time" Yep ... up until the next hours cronjob overwriting it ... Currently I've got a (very) small init.d shellscript which copies the contents of that file into another one - whi

Re: Syntax Suggestion: Pass Function Definition as Argument

2019-11-08 Thread Antoon Pardon
On 8/11/19 13:00, Chris Angelico wrote: > On Fri, Nov 8, 2019 at 10:57 PM Antoon Pardon wrote: >> On 7/11/19 18:10, Stephen Waldron wrote: >>> What I'm aiming for is the ability to, within a function call, pass a suite >>> that would be there automatically defined by the compiler/interpreter. >>

Re: Syntax Suggestion: Pass Function Definition as Argument

2019-11-08 Thread Chris Angelico
On Fri, Nov 8, 2019 at 10:57 PM Antoon Pardon wrote: > > On 7/11/19 18:10, Stephen Waldron wrote: > > What I'm aiming for is the ability to, within a function call, pass a suite > > that would be there automatically defined by the compiler/interpreter. > > Another comment did mention lambda func

Re: Syntax Suggestion: Pass Function Definition as Argument

2019-11-08 Thread Antoon Pardon
On 7/11/19 18:10, Stephen Waldron wrote: > What I'm aiming for is the ability to, within a function call, pass a suite > that would be there automatically defined by the compiler/interpreter. > Another comment did mention lambda functions, which does to some degree > provide that capability, but

Re: How execute at least two python files at once when imported?

2019-11-08 Thread Gregory Ewing
Cameron Simpson wrote: I was unsure as to how serialised this was: just the import data structures or the whole source-of-the-module. It's the whole source. I found that out the hard way once -- I had a thread that imported a module whose main code ran an event processing loop. It stopped any o

Re: can't install http module

2019-11-08 Thread Tony van der Hoff
On 07/11/2019 19:39, Chris Angelico wrote: On Fri, Nov 8, 2019 at 6:34 AM Tony van der Hoff wrote: On 07/11/2019 19:00, Chris Angelico wrote: On Fri, Nov 8, 2019 at 5:47 AM tony van der Hoff wrote: Hi, I'm attempting to install (among other things) the "http" module on my debian10 box

Re: Can't run easy_install even though setuptools is installed

2019-11-08 Thread Chris Green
Cameron Simpson wrote: > On 07Nov2019 21:38, Chris Green wrote: > >I'm a bit flummoxed. > > > >I'm trying to install a Python package from pypi.org, it says it > >should be installed by running "easy_install onkyo-eiscp" but I just > >get "easy_install: command not found" when I try that. I do