Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Stephen Hansen Newsgroups: comp.lang.python Subject: Re: You gotta love a 2-line python solution Date: Sun, 01 May 2016 22:37:04 -0700 Lines: 18 Message-ID: References: <1462163501.1158885.595255233.34023BE4@webmail.messagingengine.com> <1462165321.1165390.595267481.3403F202@webmail.messagingengine.com> <1462167424.1170963.595282785.2F78C0C6@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de JVW+hioaMg0mwZdZKIT0/AX8KLMOKAVempWWhxIPRBjQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'string.': 0.04; 'received:internal': 0.09; 'subject:python': 0.14; '(say': 0.16; 'dfs': 0.16; 'message-id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:10.202.2.44': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:compute4.internal': 0.16; 'received:io': 0.16; 'received:messagingengine.com': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'skip:u 30': 0.18; 'stephen': 0.22; 'trying': 0.22; 'header:In-Reply-To:1': 0.24; 'skip:" 20': 0.26; 'skip:- 50': 0.35; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'received:66': 0.38; 'subject:-': 0.39; 'to:addr:python.org': 0.40; 'header:Message-Id:1': 0.61; 'webpage': 0.66 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=ixokai.io; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=VSmuEfytbiaG6p4QzKv+6DwI4n8=; b=mg+nMw 8Rwqx846f1eQNKZCqYGLm44QySLqW75YIfY59LUQoShR3v93HNhmWSeNY9oileQX O+OYPx+hJFxL/h9HWFfj4SYiFVoH7TwIARO4DjmSlv88cBe6x2qhvSIxvKswn8i8 EGtA+Lhw2F7y29cPzT51USSwIfwLquZbDIaGk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=VSmuEfytbiaG6p4 QzKv+6DwI4n8=; b=I1Ny3i3lMB0JpmlyTjr9n5FurtvQi7B1jaW07be+XRoa1Ah tISAWdmGlzCYVCUnzF6hJP1zmEkzL7f9V8OB3TPNQQTiFirGOBXPQ/Q9zYdrJnJ5 aa9NXScPvoV+66mzyICK5UrdUrj09JetgYZU9n+sbexgTKgz0jlmr08mw+Lc= X-Sasl-Enc: 2BZlWyI1lDU1kIkOaEHP+SB8bLltAK+1ldKk74zS421B 1462167424 X-Mailer: MessagingEngine.com Webmail Interface - ajax-491eb5a4 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <1462167424.1170963.595282785.2F78C0C6@webmail.messagingengine.com> X-Mailman-Original-References: <1462163501.1158885.595255233.34023BE4@webmail.messagingengine.com> <1462165321.1165390.595267481.3403F202@webmail.messagingengine.com> Xref: csiph.com comp.lang.python:107986 On Sun, May 1, 2016, at 10:23 PM, DFS wrote: > Trying the rawstring thing (say it fast 3x): > > webpage = "http://econpy.pythonanywhere.com/ex/001.html" > > ---------------------------------------------------- > webfile = "D:\\econpy001.html" > urllib.urlretrieve(webpage,webfile) WORKS > ---------------------------------------------------- > webfile = "rD:\econpy001.html" The r is *outside* the string. Its: r"D:\econpy001.html" -- Stephen Hansen m e @ i x o k a i . i o