Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Bernardo Sulzbach Newsgroups: comp.lang.python Subject: Re: Exception handling for socket.error in Python 3.5/RStudio Date: Fri, 5 Feb 2016 19:08:40 -0200 Lines: 19 Message-ID: References: <1067e50c-bcbd-464e-8013-754bd66fda91@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de QO8p8eS4s4y3dtQUYIlQ6AatSGjtJJkP0hBkZzDqf1Yw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.018 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'subject:Python': 0.05; 'sys': 0.05; 'python': 0.10; '2016': 0.16; 'reason.': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:handling': 0.16; 'there?': 0.16; 'wrote:': 0.16; "wouldn't": 0.16; 'test.': 0.18; 'minor': 0.22; 'am,': 0.23; 'feb': 0.23; 'sat,': 0.23; 'import': 0.24; 'header:In-Reply-To:1': 0.24; 'script': 0.25; 'header:User-Agent:1': 0.26; "doesn't": 0.26; 'installed': 0.26; 'chris': 0.26; 'subject:/': 0.30; 'up.': 0.32; 'run': 0.33; 'message-id:@gmail.com': 0.34; 'running': 0.34; 'received:google.com': 0.35; 'problem.': 0.35; 'received:209.85': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'say': 0.37; 'things': 0.38; 'received:localhost.localdomain': 0.38; 'version': 0.38; 'received:209': 0.38; 'received:localdomain': 0.38; 'wrong': 0.38; 'system.': 0.39; 'to:addr:python.org': 0.40; 'some': 0.40; 'your': 0.60; 'charset:windows-1252': 0.62; 'chrisa': 0.84; 'notably,': 0.84; "that'll": 0.84; 'smoke': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=xtQfQk6sFxckydhWUeMBLAMwEcjEdCT0/LNztIgY5DE=; b=d0JUkXWOICI+5FKBOv3T6hGCVejCqOaRlTVxbzuzbqK30Rm+MpxGtyPCeLic2FitoD TeLBpxdgUpk5MusIpfvXtEnVCXJlK8Nhnz+UOzQQ19wAjVaOvplVpbSHQqqHmKmGYH3z 7R5DdGRD1apmTi1203qGoh7ABv79dyDXMzo0c8lAfA2Oojz8feiLMpSJ9aihbRd1cALM kqLXF2x3+GEmXMwnuxoq94m69eDbfAXaHqGnX/vNoyx5bv8IrRRSvx6xfGUvs2erNjq6 nAVy0M7PuTdd2PFZPlyl3QebvJGHLGux5Q3wBDVbBAVJCtc5ytwud68rTP1OfCHCxzqn WDLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=xtQfQk6sFxckydhWUeMBLAMwEcjEdCT0/LNztIgY5DE=; b=XS8Onl7Sr0J5uiy9OrxWWDnP56v+Bx4bmYZoSKbvhPdKEAf64zvnzlFIbTMOPoIVQ6 PTIJoFxWPyr0VcYlY86v9DDKTBOHmE7+OvrUNKAx9QFxAx8Lu6SefooNNwbWOH94tvWO vq35EnbfJQB5X41OiqC9WcYe4WTqmBmmN9niwFoqlAN6YsuYbVb981MGp4rpwBPDgRsh vhwtlQJ4XaekCZJt5k+jgnYHpAZWedKjZIUQYGrf80alvOkjJ6aNLDkhwTLQ0QNtILsx 2AOgGfs6OtiXguFprtncsAczYaglP/D/UdIQWKz280U8EjbDrGGUI8tOXjnR3ezRRN3I 0jiQ== X-Gm-Message-State: AG10YOS7k/SS7/28SN2k+r2LIML13uw1NWBoUqsG2snJ30gin7/TuAzZCEbkMmTOlEgV4w== X-Received: by 10.140.18.136 with SMTP id 8mr19261586qgf.64.1454706524220; Fri, 05 Feb 2016 13:08:44 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 In-Reply-To: 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:102557 On 02/05/2016 07:01 PM, Chris Angelico wrote: > 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 > Is there? If he just got the minor version wrong it wouldn't be a problem. Unless RStudio requires 3.**5** for some reason.