Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!xlned.com!feeder1.xlned.com!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; 'subject:: [': 0.04; 'svn': 0.05; 'linux,': 0.07; 'subject:trying': 0.09; 'whatever.': 0.09; 'windows,': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; '7:35': 0.16; 'cc:name:python list': 0.16; 'module?': 0.16; 'paste.': 0.16; 'url:svn': 0.16; 'wrote:': 0.18; 'subject:] ': 0.20; 'import': 0.22; 'cc:addr:python.org': 0.22; 'directory.': 0.24; 'cc:2**0': 0.24; '15,': 0.26; 'header:In-Reply-To:1': 0.27; 'external': 0.29; 'am,': 0.29; 'dec': 0.30; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'existence': 0.31; 'jean': 0.31; 'probably': 0.32; 'checked': 0.32; 'run': 0.32; 'linux': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'url:org': 0.36; 'should': 0.36; 'being': 0.38; 'skip:o 20': 0.38; 'files': 0.38; 'how': 0.40; 'commands': 0.60; 'today.': 0.61; 'new': 0.61; 'browser': 0.61; "you're": 0.61; 'further': 0.61; 'happen': 0.63; 'to:addr:gmail.com': 0.65; 'believe': 0.68; 'cut': 0.74; 'resulted': 0.84; '2013': 0.98 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:to :cc:content-type; bh=7Qj+AKV78X29oSqS+SYSlpqot+B5BdM5Set3RGT08uA=; b=HsMUyCZleg3/E9f0Qh7hppAvPUSZqiDhfbAGHYlV20Q9fhK0+dY23WuDuzQvjgqYDp dvUy7OJiKZofJjyanMgPJMUKXA3LN6CQJzJGlDz5ODDco/b37V+GJ55zN8ZfexnMRLeG zMqDq/Jslzg+hAwomQAyxSanYFqWG8O+f4jHtzzK6fK7JsHE/cccEgogsooDo6YMdWKF t6iolhOwxNDUO1UCEM+13sqTVyR8RE/nzX63k9k1LJQon0FelivvhpsVHyh/hdJM1nC7 nP0XfbD4+Pr4WFli8eo3KU9nReHIrvfz9LsuqPrfwbbh+sXLAnpyVBRx0ea6LHVStxD1 zF5Q== MIME-Version: 1.0 X-Received: by 10.180.205.162 with SMTP id lh2mr10510883wic.57.1387142047166; Sun, 15 Dec 2013 13:14:07 -0800 (PST) In-Reply-To: References: <180e238a-2110-41d9-a13f-df3355bd26c4@googlegroups.com> Date: Sun, 15 Dec 2013 13:14:07 -0800 Subject: Re: [newbie] trying socket as a replacement for nc From: Dan Stromberg To: Jean Dubois Content-Type: text/plain; charset=ISO-8859-1 Cc: Python List 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: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1387142054 news.xs4all.nl 2934 [2001:888:2000:d::a6]:42150 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:61964 On Sun, Dec 15, 2013 at 7:35 AM, Jean Dubois wrote: >> You can "svn checkout ". You might try Sliksvn if you're on >> Windows, or if you're on Linux it's in synaptic or yum or whatever. >> You can "wget ". >> You can bring up the URL in a web browser and cut and paste. > I'm using Linux, I did the following: > svn checkout http://stromberg.dnsalias.org/svn/bufsock/ > which resulted in a directory 'bufsock' being added to my home-directory, > Do I have to run further commands on the files in this directory? > How do I make Python aware of the existence of this new module? You can put the files (bufsock.py and python2x3.py) in your current working directory - Python will import from your CWD. I believe python2x3.py should be checked out via an external reference since you used svn. You can put the files in your site-packages directory. You can put the files in a directory like ~/lib, and then sys.path.insert(0, os.path.expanduser('~/lib')) . I probably should make it pip'able, but I don't think it's going to happen today.