Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-10 Thread Rustom Mody
On Sunday, December 10, 2017 at 11:15:15 AM UTC+5:30, Frank Millman wrote: > "Rustom Mody" wrote in message > > > > I was sending some files to some students. > Since it was more than one, the natural choice was a tarball. > [I believe that since it was a very tiny total space I did not compre

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-10 Thread Chris Green
Chris Angelico wrote: > On Sun, Dec 10, 2017 at 12:56 PM, Steve D'Aprano > wrote: > > Remember the context here: we're replying to a thread discussing somebody > > who > > is running Ubuntu with a GUI desktop environment. Of course there are *some* > > Linux systems which don't run a GUI at all,

Re: Save and load initialized class

2017-12-10 Thread Steve D'Aprano
On Sun, 10 Dec 2017 04:52 am, MRAB wrote: > Try updating __dict__: > > Opts.__dict__.update(json.load(open("mybuffer"))) __dict__ is implementation, vars() is the public interface: vars(Opts).update(json.load(open("mybuffer"))) Looks nicer too :-) -- Steve “Cheer up,” they said, “th

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-10 Thread Thomas Jollans
On 10/12/17 07:01, Chris Angelico wrote: > On Sun, Dec 10, 2017 at 4:52 PM, Steve D'Aprano > wrote: >> On Sun, 10 Dec 2017 02:01 pm, Chris Angelico wrote: >> >>> On Sun, Dec 10, 2017 at 12:56 PM, Steve D'Aprano >>> wrote: Remember the context here: we're replying to a thread discussing someb

Can't install wrapt on Windows

2017-12-10 Thread Cutter
Hi, I have trouble installing pylint on Windows 10, Python 3.6. There's a problem during the installation of wrapt, which is a dependency of pylint. Here are the contents of the commandline: C:\WINDOWS\system32>python -m pip install pylint Collecting pylint Using cached pylint-1.7.4-py2.py

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-10 Thread Rick Johnson
Rustom Mody wrote: [...] > Whether there was nothing wrong in what I did, the "wrong- > right" was de facto, or de jure… I will leave to more wise > persons than myself A file with no extension (regardless of the OS or desktop enviroment that it was created on), is like a sealed box with no

Processing Game Help

2017-12-10 Thread Lauren Porter
Hello all! I've been trying to create a game in Python Processing where a spaceship moves horizontally in order to miss a collision with an asteroid. I'm having difficulty making it so that the game quits when an asteroid hits the spaceship, could anybody help? Here is my code. As you can see, I

Re: Save and load initialized class

2017-12-10 Thread Bob van der Poel
Yes, all cool. But, json.dump(Opts.__dict__, open("mybuffer", "w")) still doesn't work with python3. Returns "is not JSON serializable" On Sun, Dec 10, 2017 at 4:00 AM, Steve D'Aprano wrote: > On Sun, 10 Dec 2017 04:52 am, MRAB wrote: > > > Try updating __dict__: > > > > Opts.__dict__.

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-10 Thread Chris Angelico
On Mon, Dec 11, 2017 at 10:10 AM, Rick Johnson wrote: > Rustom Mody wrote: > > [...] > >> Whether there was nothing wrong in what I did, the "wrong- >> right" was de facto, or de jure… I will leave to more wise >> persons than myself > > A file with no extension (regardless of the OS or desktop >

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-10 Thread Steve D'Aprano
On Mon, 11 Dec 2017 11:29 am, Chris Angelico wrote: > On Mon, Dec 11, 2017 at 10:10 AM, Rick Johnson > wrote: >> And it's not like we can just pick file up and shake >> it, in a crude attempt to intuit the contents. > > No, but fortunately we have magic. And magic can tell us a lot about > what

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-10 Thread Chris Angelico
On Mon, Dec 11, 2017 at 2:35 PM, Steve D'Aprano wrote: > On Mon, 11 Dec 2017 11:29 am, Chris Angelico wrote: > >> On Mon, Dec 11, 2017 at 10:10 AM, Rick Johnson >> wrote: > >>> And it's not like we can just pick file up and shake >>> it, in a crude attempt to intuit the contents. >> >> No, but fo

Re: Processing Game Help

2017-12-10 Thread Bill
Lauren Porter wrote: Hello all! I've been trying to create a game in Python Processing where a spaceship moves horizontally in order to miss a collision with an asteroid. I'm having difficulty making it so that the game quits when an asteroid hits the spaceship, could anybody help? Here is my

Re: Can't install wrapt on Windows

2017-12-10 Thread dieter
Cutter writes: > ... > I have trouble installing pylint on Windows 10, Python 3.6. There's a > problem during the installation of wrapt, which is a dependency of > pylint. > > Here are the contents of the commandline: > >> C:\WINDOWS\system32>python -m pip install pylint >> ... >> Collecting wrapt