Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #61964

Re: [newbie] trying socket as a replacement for nc

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 <drsalists@gmail.com>
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 <a95c6412-c2d2-41fc-a963-bdd87b2b0987@googlegroups.com>
References <efae1b3c-c9c5-4ef4-8e94-7fbe8716ab53@googlegroups.com> <mailman.4072.1386948939.18130.python-list@python.org> <180e238a-2110-41d9-a13f-df3355bd26c4@googlegroups.com> <mailman.4130.1387069401.18130.python-list@python.org> <a95c6412-c2d2-41fc-a963-bdd87b2b0987@googlegroups.com>
Date Sun, 15 Dec 2013 13:14:07 -0800
Subject Re: [newbie] trying socket as a replacement for nc
From Dan Stromberg <drsalists@gmail.com>
To Jean Dubois <jeandubois314@gmail.com>
Content-Type text/plain; charset=ISO-8859-1
Cc Python List <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.4151.1387142054.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Sun, Dec 15, 2013 at 7:35 AM, Jean Dubois <jeandubois314@gmail.com> wrote:

>> You can "svn checkout <url>".  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 <url>".
>> 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.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [newbie] trying socket as a replacement for nc Jean-Michel Pichavant <jeanmichel@sequans.com> - 2013-12-13 16:35 +0100
  Re: [newbie] trying socket as a replacement for nc Jean Dubois <jeandubois314@gmail.com> - 2013-12-14 05:33 -0800
    Re: [newbie] trying socket as a replacement for nc Dan Stromberg <drsalists@gmail.com> - 2013-12-14 17:03 -0800
      Re: [newbie] trying socket as a replacement for nc Jean Dubois <jeandubois314@gmail.com> - 2013-12-15 07:35 -0800
        Re: [newbie] trying socket as a replacement for nc Chris Angelico <rosuav@gmail.com> - 2013-12-16 02:50 +1100
        Re: [newbie] trying socket as a replacement for nc Dan Stromberg <drsalists@gmail.com> - 2013-12-15 13:14 -0800

csiph-web