Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Exception handling for socket.error in Python 3.5/RStudio Date: Sat, 6 Feb 2016 08:01:17 +1100 Lines: 14 Message-ID: References: <1067e50c-bcbd-464e-8013-754bd66fda91@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de Zxv7iV9IoQiP1z/GnE78MwC8iF6jtjQCubHCwWbsm3KQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'received:209.85.223': 0.03; 'subject:Python': 0.05; 'sys': 0.05; 'cc:addr:python-list': 0.09; 'python': 0.10; '2016': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:handling': 0.16; 'wrote:': 0.16; 'test.': 0.18; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'am,': 0.23; 'feb': 0.23; 'sat,': 0.23; 'import': 0.24; 'header:In-Reply- To:1': 0.24; 'script': 0.25; "doesn't": 0.26; 'installed': 0.26; 'message-id:@mail.gmail.com': 0.27; 'subject:/': 0.30; 'up.': 0.32; 'run': 0.33; 'running': 0.34; 'received:google.com': 0.35; 'problem.': 0.35; 'received:209.85': 0.36; 'subject:: ': 0.37; 'say': 0.37; 'things': 0.38; 'received:209': 0.38; 'system.': 0.39; 'your': 0.60; 'chrisa': 0.84; 'notably,': 0.84; "that'll": 0.84; 'to:none': 0.91; 'smoke': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=UlSyBS/edOkFUWBlobjhROFZjx2i5J4r9aUC+gW70BU=; b=F9LjLbAMhNfVj6FtNoEltrshHUfjfwyJhWsfNgLohgFVyokAFjI+3t1FyFCsqhX1AQ hRJqGRwRn21s3iwoEPfoW9iAhA53rHC1tR3WTt9TlZJ4sVOkd02LQW5YnXKDiidxWKHW r+ZUDxdQVOwrvcfZIJBIlUGDJcmBKQ1nBGc5LMhVNZ4+nk3Y3G+Li5VZl+zzIOaxTb8O T4R/HU+3e9+zX7iHzqlQpN1aqZnlY0xv6JGZm3/mtRlpH+UNgUbxVs1G1lh1znC+mj/t K4aHMqUYmybhiLAntGtGcDw7bzypW7uNYlO1GqrTYou4Glx1CsDiCekJsRPRFRNOY6xL XIcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc:content-type; bh=UlSyBS/edOkFUWBlobjhROFZjx2i5J4r9aUC+gW70BU=; b=aHBmN6wSNyJLNQgB7UnF73x2a67Z3lK1VO9FxtuPCfgpBXLNccPJTd1LmHIgg32I7F U3h9K1ZZT4bXqvEh7pVoPBmOPfyW+Iphd1/LCMqTJyiZvsD2XcDVi9D7nLsta9nBPeZh +K0Od81SFPEeROU2Ja6BPWeZH7+NsD9hm0YI6y7ScGXP9mt7/Y72vYWNk9G+4wVhRjMe doKvQcAMRpSsAR1v3Wg+2mYsxTfU9koUmLq2gm2BcqylnOPPDO1lORSe5L3x0CrLyN6F 5jDfx8V6mhT6CclXY0IN3nkONfJnAy9SD92nLMI5WkZa2tOE5cz1Qp8Blm086ORQ8srz PWrQ== X-Gm-Message-State: AG10YOQDCvYZ1zt2DnWZPlpfdAJAOOEwhA9Vw3EC5cZEJmDVct/iZ+L65HtWch5xunMy3cc+WeZYVwv5lN8Sew== X-Received: by 10.107.40.76 with SMTP id o73mr15811455ioo.157.1454706077748; Fri, 05 Feb 2016 13:01:17 -0800 (PST) In-Reply-To: <1067e50c-bcbd-464e-8013-754bd66fda91@googlegroups.com> 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:102556 On Sat, Feb 6, 2016 at 6:58 AM, wrote: > I am running this python script on R-studio. I have Python 3.5 installed on my system. > Let's just try a quick smoke test. Run this script: import sys print(sys.version) input("Press Enter to exit...") That'll tell you a few things about how your system is set up. Most notably, if it doesn't say you're using Python 3.5, there's a problem. ChrisA