Deutsch English Français Italiano |
<uu1o5o$30dhk$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: DFS <nospam@dfs.com> Newsgroups: comp.os.linux.advocacy Subject: Re: Tabs As Syntax Date: Wed, 27 Mar 2024 14:22:46 -0400 Organization: A noiseless patient Spider Lines: 30 Message-ID: <uu1o5o$30dhk$1@dont-email.me> References: <17be73f7d87a06e9$246570$4075406$802601b3@news.usenetexpress.com> <utejt0$1fq95$1@dont-email.me> <uterkv$1haln$2@dont-email.me> <l624u3Fn16lU13@mid.individual.net> <uthf4s$28e7g$1@dont-email.me> <l64bi6F2m1hU17@mid.individual.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 27 Mar 2024 18:22:49 +0100 (CET) Injection-Info: dont-email.me; posting-host="026030a9c3920d5c68f7df1fee425d10"; logging-data="3159604"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+GdBoAUDzsbYaR7CVv7U1m" User-Agent: Betterbird (Windows) Cancel-Lock: sha1:1/3V7kalsgKUVCKcajKdsEtoL5U= In-Reply-To: <l64bi6F2m1hU17@mid.individual.net> Content-Language: en-US Bytes: 1832 On 3/21/2024 11:17 PM, rbowman wrote: > On Thu, 21 Mar 2024 10:10:33 -0400, Chris Ahlstrom wrote: > >> for (int n : { 2, 4, 6, 8 }) >> std::cout << n << ", "; >> >> std::cout << "who do we appreciate?" << std::endl >> >> (std::endl is \n with a flush. > > cout never did much for me either. That's one of the areas that seemed > like a gratuitous departure from C. > > Then there is the Python > > print("Never again!", end="\r") in a console that prints: r again! use end="\n", which flushes stdout in a 'real' program: import time for i in range(5): print(i+1,"Never again!",end='\r',flush=True) time.sleep(0.5)