Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Dennis Lee Bieber Newsgroups: comp.lang.python Subject: Re: Considering migrating to Python from Visual Basic 6 for engineering applications Date: Sun, 21 Feb 2016 21:19:03 -0500 Organization: IISS Elusive Unicorn Lines: 16 Message-ID: References: <9e57761f-26e1-41c5-8e71-23800de1fdd3@googlegroups.com> <7f9c473e-b0c2-4d77-91d1-d0733c93b12d@googlegroups.com> <23d8156f-1808-4395-9c04-27d2984fe67c@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de 9TDbp3gEhsCPajMRTQ5W3QUSozHDxWNbmTP+6R4fbG+g== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'trailing': 0.07; 'message-id:@4ax.com': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'splitting': 0.09; 'subject:Visual': 0.09; '2016': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'skip:> 20': 0.16; 'url:home': 0.18; 'posted': 0.21; 'space.': 0.22; 'feb': 0.23; 'header:X-Complaints-To:1': 0.26; '+0200,': 0.27; 'tend': 0.27; 'whitespace': 0.29; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'being': 0.37; 'received:org': 0.37; 'charset :us-ascii': 0.37; 'someone': 0.38; 'subject:from': 0.39; 'to:addr:python.org': 0.40; "you'll": 0.61; 'default': 0.61; 'dennis': 0.91; 'received:108': 0.93 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: adsl-108-68-179-144.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21rc2 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:103322 On Sun, 21 Feb 2016 23:52:11 +0200, Jussi Piitulainen declaimed the following: >and not at all difficult. You'll get far by line.split(), splitting at >any amount of whitespace by default (note that the .strip() in the >line.strip().split() that someone posted is redundant). > Call it paranoid overkill... I tend to think of the .strip() as being used to remove the trailing new-line, THEN splitting what is left on white space. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/