Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Why interpreter accepts indentation made with spaces and not those by tabs
Post: RE: Why interpreter accepts indentation made with ...

On vim the default of the tab is 12, but you adjust with : :set softtabstop=4
sylas General Coding Help 13 5,541 Oct-19-2018, 05:46 AM
    Thread: Why interpreter accepts indentation made with spaces and not those by tabs
Post: RE: Why interpreter accepts indentation made with ...

The way I give you, using tabs, wins a lot of time. I think many people are interested by that. Maybe someones use it already. I repeat I use Vim (the white one for windows) . Vim is for me the best ...
sylas General Coding Help 13 5,541 Oct-18-2018, 06:44 PM
    Thread: Why interpreter accepts indentation made with spaces and not those by tabs
Post: RE: Why interpreter accepts indentation made with ...

I tried again because of you. My way works very well. Please try it yourself and then reply.
sylas General Coding Help 13 5,541 Oct-18-2018, 06:12 PM
    Thread: Why interpreter accepts indentation made with spaces and not those by tabs
Post: RE: Why interpreter accepts indentation made with ...

I think that if you have a file like the one above, a good way is to use tabs, once finished your file you copy it, you delete your original file, and at last you paste. Isn't it ??
sylas General Coding Help 13 5,541 Oct-18-2018, 04:31 PM
    Thread: Why interpreter accepts indentation made with spaces and not those by tabs
Post: RE: Why interpreter accepts indentation made with ...

For the whole file I used tabs. I used vim. It did not run well. sylvain@sylvain-HP-Laptop-15-bw0xx:~$ cat new2.py #!/usr/bin/python3 #!/usr/bin/env python3 #new2.py def silly(n, x): m=n stac...
sylas General Coding Help 13 5,541 Oct-17-2018, 05:16 PM
    Thread: Why interpreter accepts indentation made with spaces and not those by tabs
Post: Why interpreter accepts indentation made with spac...

Hi all! It is not agreable to rewrite a file where indentation was made with tabs. I met this problem on geany and also with vim.
sylas General Coding Help 13 5,541 Oct-17-2018, 11:26 AM
    Thread: Installing pip on linux
Post: RE: Installing pip on linux

Yes. python 3.6.5 is present on linux. As I am tired by installing, I keep all my pythons on windows. Python on windows and on linux seems to me not reasonable.
sylas Bar 5 3,889 Oct-14-2018, 08:16 AM
    Thread: Installing pip on linux
Post: RE: Installing pip on linux

I looked for python. 2.7 is installed. I just learned that pip is only for python, so I give up for pip on linux. As I have a double boot computer, I decide now to handle all my programming python on ...
sylas Bar 5 3,889 Oct-14-2018, 06:29 AM
    Thread: Installing pip on linux
Post: Installing pip on linux

Hi all ! I don't even know if pip is only for windows. Here I am on linux. I just installed ubuntu 18.04. Is pip good for linux ? If so, how to install pip on linux ? Thanks
sylas Bar 5 3,889 Oct-14-2018, 05:07 AM
    Thread: With 18.04.1LTS now problem with wifi pilot
Post: RE: With 18.04.1LTS now problem with wifi pilot

Problem solved. Now every thing is OK. I repeated the 2 lines on the terminal.
sylas Bar 1 1,799 Oct-12-2018, 10:07 AM
    Thread: With 18.04.1LTS now problem with wifi pilot
Post: With 18.04.1LTS now problem with wifi pilot

Hi all ! New OS installed. But behind the OS comes the problem of the wifi pilot. As I had not wire connexion to internet(I am not at home) I installed wifi pilot with a smartphone. It works but very ...
sylas Bar 1 1,799 Oct-12-2018, 06:00 AM
    Thread: Python files made on linux don't work on windows
Post: RE: Python files made on linux don't work on windo...

Sorry. I just tried them with the command prompt and they work. My error. I just changed my OS from ubuntu 17.10 to 18.04.1LTS, and I am tired.
sylas General Coding Help 2 3,244 Oct-10-2018, 05:34 AM
    Thread: Python files made on linux don't work on windows
Post: Python files made on linux don't work on windows

Hi all. I have a HP 64 bits double boot computer. I made a lot of python files on Linux. With a USB key I transfered them to windows, but unfortunately they work no more on windows. How can I recover...
sylas General Coding Help 2 3,244 Oct-10-2018, 04:22 AM
    Thread: How to handle "History" in ptpython
Post: RE: How to handle "History" in ptpython

I noticed ptpython is much better on windows. All are highlighted. I got help here: https://python-forum.io/Thread-How-to-ha...n-ptpython https://github.com/jonathanslenders/ptpy...README.rst Add thi...
sylas General Coding Help 4 3,992 Oct-07-2018, 12:09 PM
    Thread: How to handle "History" in ptpython
Post: How to handle "History" in ptpython

Hi all ! First of all I don't know how to highlight 'History'. Then I should like to set history to a reasonable value of 10. Thanks in advance.
sylas General Coding Help 4 3,992 Oct-07-2018, 05:30 AM
    Thread: About updates and upgrades
Post: RE: About updates and upgrades

With windows no problem, I succeed to enter my photos, but with the bad(as you say) Os in Linux, impossible. Since I will install soon 18.04, I should like to know if you, with your 18.04, succeed to ...
sylas Bar 9 3,704 Oct-03-2018, 08:00 AM
    Thread: About updates and upgrades
Post: RE: About updates and upgrades

My OS is Ubuntu 17.10, but soon I will install 18.04.1LTS
sylas Bar 9 3,704 Oct-03-2018, 07:40 AM
    Thread: About updates and upgrades
Post: RE: About updates and upgrades

For instance I have problem with "bluetooth", entering my photos inside the PC. On Linux. I should like to do that with the terminal, but where to find the name for that application(understood by the ...
sylas Bar 9 3,704 Oct-03-2018, 06:27 AM
    Thread: About updates and upgrades
Post: RE: About updates and upgrades

Operating Systems. Or even some Application.
sylas Bar 9 3,704 Oct-03-2018, 06:03 AM
    Thread: About updates and upgrades
Post: About updates and upgrades

Hi all ! I should like very much someone explains to me updates and upgrades.I see 2 cases: 1st deletes the whole old and then installs the new. 2d handles differences of old to new (probably with rea...
sylas Bar 9 3,704 Oct-03-2018, 05:22 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020