Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'python,': 0.02; 'subject:Python': 0.06; 'c++,': 0.07; 'socket': 0.07; 'subject:code': 0.07; 'apis': 0.09; 'back-end': 0.09; 'windows,': 0.09; 'assembly,': 0.16; 'bsd': 0.16; 'ecosystem': 0.16; 'expecting': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'module?': 0.16; 'sockets': 0.16; 'subject: \n ': 0.16; 'subject:Not': 0.16; 'subject:start': 0.16; 'twisted': 0.16; 'java,': 0.16; 'wrote:': 0.18; 'looked': 0.18; "hasn't": 0.19; 'subject:project': 0.19; 'thu,': 0.19; 'meant': 0.20; 'programming': 0.22; '(in': 0.22; 'comfortable': 0.22; 'frameworks': 0.24; '(or': 0.24; "i've": 0.25; 'mention': 0.26; 'possibly': 0.26; 'required.': 0.27; 'header:In-Reply-To:1': 0.27; 'dos': 0.30; 'message-id:@mail.gmail.com': 0.30; 'gives': 0.31; 'critical': 0.32; 'themselves': 0.32; 'framework': 0.33; 'fri,': 0.33; 'subject: (': 0.35; 'basic': 0.35; 'something': 0.35; 'done.': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'two': 0.37; 'project': 0.37; 'somebody': 0.38; 'to:addr :python-list': 0.38; 'pm,': 0.38; 'little': 0.38; 'skip:. 10': 0.39; 'to:addr:python.org': 0.39; 'easy': 0.60; 'simple,': 0.60; 'most': 0.60; 'offer': 0.62; "you'll": 0.62; 'skip:n 10': 0.64; 'networking': 0.64; 'jul': 0.74; 'power': 0.76; 'decades,': 0.84; 'rexx,': 0.84; 'subject:before': 0.84; 'subject:system': 0.84; 'subject:chat': 0.93; '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 :content-type; bh=QjpnL0uC1fj36zckGhjBSQfHojIjB0RYzVIzrQPrMPY=; b=t6lryqnvKwO1SWzqHzCVUcBl9251vFgprHOsuXwF+C82qNOtR/7nhMF43lh3ld6YQ2 HfwmCrSLKGbhJcxLhdUaPkYWnpSAXvLlB/SXgDjA3bJwW3zg0KomgIq/DVpBa7Z6tC8w /0ijuuynMOAOy8w+mAkwvVp1DbqQ/9RnDnEw49WSAbgr4Umuj2cYLtbdb0Di21MfqW1q CU2Z0S4K/8Vt+EerYEAp9wWNuvif7gjLFjVKQusuDcMRSppwdx+nLgZl3BVaS4WbUrQk 0xQQgWcQSMgopsJW4Lif42dA0gwCvZjVgsiYs6jdZqId9q6R6cOn+3hK3vov0z12lXpw +HuA== MIME-Version: 1.0 X-Received: by 10.58.214.105 with SMTP id nz9mr669707vec.58.1374218256646; Fri, 19 Jul 2013 00:17:36 -0700 (PDT) In-Reply-To: References: <1f3e15e8-bbd3-457c-85f4-c5f251b3e744@googlegroups.com> Date: Fri, 19 Jul 2013 17:17:36 +1000 Subject: Re: What does it take to implement a chat system in Python (Not asking for code just advice before I start my little project) From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 30 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1374218264 news.xs4all.nl 15896 [2001:888:2000:d::a6]:40591 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:50891 On Fri, Jul 19, 2013 at 5:10 PM, Jake Angulo wrote: > On Thu, Jul 18, 2013 at 2:36 PM, Aseem Bansal wrote: >> >> I wanted to do a little project for learning Python. I thought a chat >> system will be good as it isn't something that I have ever done. >> ............... >> >> I wanted to know what will I need? >> 1 learn network/socket programming > > > I was actually expecting somebody to mention Twisted :) > (or Tornado) > > You'll find it easy to use any of these frameworks to power the back-end > chat engine. For something this simple, what do they offer above the basic socket module? I know that sounds critical but it's not meant to be; I've never looked into either, as I've grown up using the BSD socket APIs (in C, 80x86 assembly, C++, REXX, Java, Pike, and Python, on DOS (I think), OS/2, Windows, and Linux... and possibly other languages/platforms that I've now forgotten), and am comfortable with them; but for someone who hasn't been in networking for two decades, is there a noteworthy ease-of-starting difference? Bear in mind that use of a framework locks you in to that framework and its ecosystem (so, most likely, language), while grokking sockets themselves gives you the freedom to move as required. ChrisA