Re: Vim settings for Python (was: tab replace to space 4)

2019-12-08 Thread Peter J. Holzer
On 2019-12-07 11:59:31 -0800, Bill Campbell wrote: > On Sat, Dec 07, 2019, Peter J. Holzer wrote: > >As an aside, to prevent vim from inserting tabs in the first place, set > >expandtab > >sw=4 > >and maybe also > >ts=4 > > Inserting a comment in the file like this makes thing easy. >

Re: Vim settings for Python (was: tab replace to space 4)

2019-12-07 Thread Bill Campbell
On Sat, Dec 07, 2019, Peter J. Holzer wrote: >As an aside, to prevent vim from inserting tabs in the first place, set >expandtab >sw=4 >and maybe also >ts=4 Inserting a comment in the file like this makes thing easy. # vim: expandtab sw=4 ts=4 nows wm=0 Bill -- INTERNET: b...@cel

Re: Vim settings for Python (was: tab replace to space 4)

2019-12-07 Thread Bev In TX
> On Dec 7, 2019, at 4:16 AM, Peter J. Holzer wrote: > > As an aside, to prevent vim from inserting tabs in the first place, set >expandtab >sw=4 > and maybe also >ts=4 > (The latter is very much a matter of taste. I don't unless I have to > edit code which already contains tabs inte

Vim settings for Python (was: tab replace to space 4)

2019-12-07 Thread Peter J. Holzer
On 2019-11-29 13:46:38 +0900, 황병희 wrote: > 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

Re: tab replace to space 4

2019-12-02 Thread 황병희
Hi, Gilmeh^^^ > We are Python people, aren't we? Looks good, i did copy it [1], and thanks^^^ [1] https://gitlab.com/soyeomul/test/blob/master/untabify.py Sincerely, -- ^고맙습니다 _地平天成_ 감사합니다_^))// -- https://mail.python.org/mailman/listinfo/python-list

Re: tab replace to space 4 (rmlibre)

2019-12-01 Thread rmlibre
> Its just that I've just began to touch tkinter, and would like to know of > bug-related pitfalls before I waste energy on trying to figure out what I > did wrong. :-\ One thing which is not obvious or easy to debug: Text widgets have some kind of inefficiency related to really long lines that d

Re: tab replace to space 4

2019-11-29 Thread R.Wieser
Terry, > I have been using tk/tkinter based IDLE for over a decade on Windows with > very few issues. I think they are similarly stable on linux, etc. [Snip] Thanks for that explanation. And I see that, in my question, I should have asked for the involved OS too. Regards, Rudy Wieser -- ht

Re: tab replace to space 4

2019-11-29 Thread Terry Reedy
On 11/29/2019 3:05 PM, R.Wieser wrote: Terry, Its just that I've just began to touch tkinter, and would like to know of bug-related pitfalls before I waste energy on trying to figure out what I did wrong. :-\ I have been using tk/tkinter based IDLE for over a decade on Windows with very few

Re: tab replace to space 4

2019-11-29 Thread R.Wieser
Terry, > R.W., are you reading via c.l.p, or the python google group? The first, using nntp.aioe.org > Don't hold your breath. A similar poster I challenged on StackOverflow > was honest enough to admit that he had not touched IDLE for a decade. Its just that I've just began to touch tkinter,

Re: tab replace to space 4

2019-11-29 Thread Terry Reedy
On 11/29/2019 4:34 AM, R.Wieser wrote: Moi, tkinter/IDLE in py380 : completely buggy. That troll post is not in the python-list archive (whereas RW's response is), so it is likely from someone banned on the list itself. R.W., are you reading via c.l.p, or the python google group? Exampl

Re: tab replace to space 4

2019-11-29 Thread 황병희
Hello, Pankaj^^^ > In Emacs, use "M-x untabify". [...] Then i solved problem You nice guy! Sincerely, -- ^고맙습니다 _地平天成_ 감사합니다_^))// -- https://mail.python.org/mailman/listinfo/python-list

tab replace to space 4

2019-11-29 Thread 황병희
[i am writing question on comp.lang.python] 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

Re: tab replace to space 4

2019-11-29 Thread R.Wieser
Moi, > tkinter/IDLE in py380 : completely buggy. Example code please ? (plus a description of what should happen and what happens instead if you have it) Regards, Rudy Wieser -- https://mail.python.org/mailman/listinfo/python-list

Re: tab replace to space 4

2019-11-29 Thread Terry Reedy
On 11/29/2019 1:53 AM, Pankaj Jangid wrote: 황병희 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 rep

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