Re: tab replace to space 4

2019-11-28 Thread Pankaj Jangid
황병희 writes: > usally i write python code in gnu emacs on ubuntu 18.04 sometimes i > re-edit the code vim in same machine so often when i do run the code in > shell like as ./test.py i meet consol error -- which line wrong! > > so i am considering how can i replace all tab to space 4 within python

Re: Does module socketserver using epoll in python3?

2019-11-28 Thread lampahome
> > The source code is here: > https://github.com/python/cpython/blob/master/Lib/socketserver.py . You > should find all the technical details you are looking for in it. > > # poll/select have the advantage of not requiring any extra file > descriptor,# contrarily to epoll/kqueue (also, they requi

Re: Does module socketserver using epoll in python3?

2019-11-28 Thread Michael Torrie
On 11/28/19 8:46 PM, lampahome wrote: > As title, > > I want to use socketserver to replace my own server code to > maintain ealsier. > > But I don't found any info about tech. detail of socketserver, epoll is > important. > > Can anyone tell me? The source code is here: https://github.com/pyth

Does module socketserver using epoll in python3?

2019-11-28 Thread lampahome
As title, I want to use socketserver to replace my own server code to maintain ealsier. But I don't found any info about tech. detail of socketserver, epoll is important. Can anyone tell me? -- https://mail.python.org/mailman/listinfo/python-list

Re: os.system vs subrocess.call

2019-11-28 Thread Stephan Lukits
> On 28. Nov 2019, at 12:05, Ulrich Goebel wrote: > > Hi, > > I have to call commands from inside a python skript. These commands are in > fact other python scripts. So I made > >os.system('\.Test.py') > > That works. > > Now I tried to use > >supprocess.call(['.\', 'test.py']) [

Re: How to convert the following IDL program lines to equivalent Python program lines?

2019-11-28 Thread MRAB
On 2019-11-28 15:35, Dennis Lee Bieber wrote: On Thu, 28 Nov 2019 12:45:27 +, Ben Bacarisse declaimed the following: Madhavan Bomidi writes: print,'Column ',J,' of product matrix A*AINV:',format='(1X,A7,I3,A27)' I don't know what the 1X format does. The A7 and A27 formats just see

Re: How to convert the following IDL program lines to equivalent Python program lines?

2019-11-28 Thread Bev In TX
> On Nov 28, 2019, at 9:35 AM, Dennis Lee Bieber wrote: > > Channeling ancient FORTRAN, I'd interpret it as > > 1XSkip one space > A7Seven character alpha > I3Three digit integer > A2727 character alpha > > and it is rather painful when the arguments are litera

install software

2019-11-28 Thread alberto
Hi, I'm trying to install a python source https://github.com/peteboyd/lammps_interface when I run the example test I receive this error AttributeError: 'NoneType' object has no attribute 'copy' How could I fix it? regards lammps-interface /home/alberto/Scaricati/lammps_interface-master/te

Re: How to convert the following IDL program lines to equivalent Python program lines?

2019-11-28 Thread Ben Bacarisse
Madhavan Bomidi writes: > I have the following IDL program lines. I want to write equivalent > Python program lines. Can anyone suggest me equivalent Pythons program > lines? > > # --- 1 --- # > How to handle the format in IDL to Python? > > IDL program line: >

How to convert the following IDL program lines to equivalent Python program lines?

2019-11-28 Thread Madhavan Bomidi
Hi, I have the following IDL program lines. I want to write equivalent Python program lines. Can anyone suggest me equivalent Pythons program lines? # --- 1 --- # How to handle the format in IDL to Python? IDL program line: print,'Column ',J,' of product mat

Re: os.system vs subrocess.call

2019-11-28 Thread Pieter van Oostrum
Ulrich Goebel writes: > Hi, > > I have to call commands from inside a python skript. These commands are > in fact other python scripts. So I made > > os.system('\.Test.py') > > That works. In a string \. is the same as . So this should execute the command '.Test.py'. Is that really what you

Re: os.system vs subrocess.call

2019-11-28 Thread Ulrich Goebel
Sorry for the wrong spelling. In fact subprocess.call('./Test.py') works. The raising error was my error too, using ['./', 'Test.py'] instead of './Test.py' Sorry... Am 28.11.19 um 11:05 schrieb Ulrich Goebel: Hi, I have to call commands from inside a python skript. These commands are

Re: os.system vs subrocess.call

2019-11-28 Thread Peter Otten
Ulrich Goebel wrote: > Hi, > > I have to call commands from inside a python skript. These commands are > in fact other python scripts. So I made > > os.system('\.Test.py') > > That works. > > Now I tried to use > > supprocess.call(['.\', 'test.py']) Remember to use cut and paste fo

os.system vs subrocess.call

2019-11-28 Thread Ulrich Goebel
Hi, I have to call commands from inside a python skript. These commands are in fact other python scripts. So I made os.system('\.Test.py') That works. Now I tried to use supprocess.call(['.\', 'test.py']) That doesn't work but ends in an error: Traceback (most recent call last):