Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.mixmin.net!news2.arglkargh.de!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.014 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'beginner': 0.05; 'subject:Python': 0.05; 'sat,': 0.14; '"print"': 0.16; '1970s.': 0.16; 'ages,': 0.16; 'basic,': 0.16; 'confusion': 0.16; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'message-id:@mrabarnett.plus.com': 0.16; 'received:84.92': 0.16; 'received:84.92.122': 0.16; 'received:84.92.122.60': 0.16; 'received:84.93': 0.16; 'received:84.93.230': 0.16; 'remembered': 0.16; 'screen,': 0.16; '(the': 0.16; 'resolved': 0.17; 'wrote:': 0.19; 'wrote': 0.20; 'print': 0.21; 'meant': 0.21; 'header:In-Reply-To:1': 0.22; 'statement': 0.23; 'variable': 0.23; 'programming': 0.23; 'run': 0.25; 'second': 0.25; 'machine': 0.25; 'points': 0.26; 'header :User-Agent:1': 0.26; 'basic': 0.28; 'common': 0.28; '+0100,': 0.28; "d'aprano": 0.28; 'prints': 0.28; 'steven': 0.28; 'surprised': 0.28; 'ryan': 0.32; 'code': 0.32; 'method': 0.33; 'pm,': 0.34; 'two': 0.35; 'to:addr:python-list': 0.35; 'possible': 0.35; 'there': 0.36; 'whatever': 0.36; 'late': 0.36; 'easily': 0.36; 'but': 0.37; 'subject:: ': 0.37; 'instead': 0.38; 'old': 0.38; 'to:addr:python.org': 0.39; 'where': 0.39; 'content': 0.40; 'received:net': 0.60; 'most': 0.61; 'is.': 0.62; '2012': 0.62; 'first': 0.62; 'back': 0.63; 'more': 0.63; 'header:Reply-To:1': 0.67; 'reply-to:no real name:2**0': 0.71; 'life.': 0.76; 'paper': 0.76; '1980s': 0.84; 'dark': 0.84; 'intuit': 0.84; 'printer': 0.84; 'reply-to:addr:python.org': 0.84; 'sprang': 0.84 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.0 cv=ZZifx7pA c=1 sm=1 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=rXS5J2IKs6wA:10 a=OUOv7kDek9cA:10 a=8nJEP1OIZ-IA:10 a=VPnWHfipHrhKOwBWOV0A:9 a=pMdZMeiqaie6MObmtb4A:7 a=wPNLvfGTeEIA:10 a=0nF1XD0wxitMEM03M9B4ZQ==:117 X-AUTH: mrabarnett:2500 Date: Sat, 31 Mar 2012 18:27:11 +0100 From: MRAB User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20120312 Thunderbird/11.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Python is readable References: <4f612b19$0$1379$4fafbaef@reader2.news.tin.it> <8e72d74f-c844-4de3-8a37-f6b1fdc2291f@y27g2000yqy.googlegroups.com> <50e9ceec-40f1-4ead-b2b6-87328b30d084@ow8g2000pbc.googlegroups.com> <4f61c828$0$1390$4fafbaef@reader2.news.tin.it> <4f61d728$0$1375$4fafbaef@reader2.news.tin.it> <4f61fd0a$0$1389$4fafbaef@reader2.news.tin.it> <4f620837$0$1382$4fafbaef@reader2.news.tin.it> <4f627c25$0$1381$4fafbaef@reader2.news.tin.it> <4f62b9be$0$29981$c3e8da3$5496439d@news.astraweb.com> <4f632da5$0$1375$4fafbaef@reader1.news.tin.it> <4f636ed5$0$29981$c3e8da3$5496439d@news.astraweb.com> <4f64ed2e$0$1389$4fafbaef@reader1.news.tin.it> <4f653c1e$0$29981$c3e8da3$5496439d@news.astraweb.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: python-list@python.org List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1333215017 news.xs4all.nl 6870 [2001:888:2000:d::a6]:40061 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:22420 On 31/03/2012 06:56, Lie Ryan wrote: > On 03/18/2012 12:36 PM, Steven D'Aprano wrote: >> On Sat, 17 Mar 2012 20:59:34 +0100, Kiuhnm wrote: >> In the second example, most English speakers would intuit that "print(i)" >> prints i, whatever i is. > > There are two points where the code may be misunderstood, a beginner may > think that "print i" prints to the inkjet printer (I remembered > unplugging my printer when I wrote my first BASIC program for this > reason); and the possible confusion of whether "print i" prints the > letter "i" or the content of variable "i". (Fortunately, this confusion > are easily resolved when I run the code and see the result on-screen > instead of a job on the print spooler) > > (ironically, although print is nowadays a programming jargon for > outputting to screen, but in the old dark ages, people used to use the > "print" statement to print to paper in their old terminal) > I remember a review of a machine back in the early 1980s or late 1970s. The machine used BASIC, but the reviewer was surprised when the printer sprang into life. "PRINT" meant "send to printer"; in order to 'print' to the screen you used "DISPLAY". (The more common method was to use "LPRINT" for sending to the printer.)