Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'exists.': 0.07; 'high- level': 0.09; 'received:internal': 0.09; 'python': 0.11; 'message- id:@webmail.messagingengine.com': 0.16; 'newlines': 0.16; 'portable': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:66.111.4.27': 0.16; 'received:messagingengine.com': 0.16; 'received:out3-smtp.messagingengine.com': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'module': 0.19; '>>>': 0.22; 'aug': 0.22; 'header:In-Reply-To:1': 0.27; "i'm": 0.30; 'code': 0.31; 'coded': 0.31; 'supposed': 0.32; 'received:66': 0.35; 'convert': 0.35; '14,': 0.36; 'received:10': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'from:no real name:2**0': 0.61; 'header:Message-Id:1': 0.63; 'email addr:gmail.com': 0.63; '(here': 0.84; 'streams': 0.84; '2013,': 0.91; 'directly.': 0.95 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.us; h= message-id:from:to:mime-version:content-transfer-encoding :content-type:in-reply-to:references:subject:date; s=mesmtp; bh= XClzZK+9orp4B2bgocfbTbnkGpA=; b=nze0hXVCfnw3Ys7idZNUo4fqHbwhK9No IHDHz7gQnFdyOO29EJRz7jB6VIggIdtG0+Aax/9mnFtIbm4X7ZfflneVDujb2YRM hUjnHssWyuOt6By3zKxAGY2y9u/2qrlzrdjS/h/Ypk6Qqpq0+jArRaGOj4MbRNRp 0ImZfTZHclw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:in-reply-to:references :subject:date; s=smtpout; bh=XClzZK+9orp4B2bgocfbTbnkGpA=; b=bo/ sa0Ga1TBe6IwSmcUX/nsOlgSbG/Zt1NFlr68e2JFU71aCBOOvO1NBGvYDZfvLUGs x28TCwBjY9FlGgdVCLQnGLMaQmb5yqRG1nX9ZcxAsyYmoTIsWf9sL3Ji4Mgrrzyr ksV/ldS4YcKv3I0Ljor7bMtnpgU9TELQx901P/DQ= X-Sasl-Enc: BS0rWkVjtKl1zSWxc+a0QLkpZHzmbG7zua68bq9FJtpZ 1376499950 From: random832@fastmail.us To: python-list@python.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-d9f253bf In-Reply-To: References: <94f8428f-50b9-4ccd-95a0-6eeafda0fe18@googlegroups.com> Subject: Re: .split() Qeustion Date: Wed, 14 Aug 2013 13:05:50 -0400 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list 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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1376499954 news.xs4all.nl 15864 [2001:888:2000:d::a6]:54966 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:52525 On Wed, Aug 14, 2013, at 10:32, wxjmfauth@gmail.com wrote: > I'm always and still be suprised by the number of hard coded > '\n' one can find in Python code when the portable (here > win) > > >>> os.linesep > '\r\n' > > exists. Because high-level code isn't supposed to use the os module directly. Text-mode streams automatically convert newlines you write to them.