Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'python,': 0.02; 'subject:not': 0.03; 'subject:Python': 0.06; 'hosts': 0.07; 'modifying': 0.07; 'rest,': 0.07; 'php,': 0.09; 'subject:software': 0.09; 'subject:using': 0.09; 'api': 0.11; 'cc:addr:python-list': 0.11; 'python': 0.11; 'gui': 0.12; 'language,': 0.12; 'systems.': 0.12; 'language.': 0.14; 'question.': 0.14; '(note': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'messy': 0.16; 'numpy': 0.16; 'partly': 0.16; 'subject: \n ': 0.16; 'language': 0.16; 'wrote:': 0.18; 'app': 0.19; 'module': 0.19; 'cheap': 0.19; "python's": 0.19; 'later': 0.20; 'written': 0.21; 'feb': 0.22; 'python?': 0.22; 'cc:addr:python.org': 0.22; 'driver': 0.24; 'module,': 0.24; 'fine': 0.24; 'cc:2**0': 0.24; 'sort': 0.25; "i've": 0.25; 'script': 0.25; 'header:In-Reply-To:1': 0.27; 'on,': 0.29; 'am,': 0.29; 'operations,': 0.30; 'message-id:@mail.gmail.com': 0.30; 'work.': 0.31; 'code': 0.31; 'easier': 0.31; 'usually': 0.31; 'ctypes': 0.31; 'libraries': 0.31; 'subject:that': 0.31; 'probably': 0.32; 'run': 0.32; 'another': 0.32; 'ago': 0.33; 'device': 0.34; 'subject:the': 0.34; 'problem.': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'functions.': 0.36; 'module.': 0.36; 'done': 0.36; 'subject:?': 0.36; 'should': 0.36; 'operating': 0.37; 'being': 0.38; 'sometimes': 0.38; 'anything': 0.39; 'most': 0.60; 'forum': 0.61; 'healthy': 0.61; 'today,': 0.61; 'matter': 0.61; "you'll": 0.62; "you've": 0.63; 'developed': 0.63; 'between': 0.67; 'it!': 0.67; 'feeling': 0.68; 'sam': 0.68; 'facilities': 0.69; 'drivers': 0.74; 'heavy': 0.81; 'grunge': 0.84; 'phpbb': 0.84; 'subject:kinds': 0.84; 'to:none': 0.92 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:content-transfer-encoding; bh=1jcaZO7dqg5142MKxPJvcypmiPAZPyr6il8kA+reLco=; b=dqajJ8Xxcs6KSn2OcCHcL9jMbP1IEvX+WP9/WmfOJR4XIGO6NdxgYiHi7Tn4FyamX4 D+QynlpcPgzgi/c/0VVTTgjP0bNNYbdusENTdiS7vWMa/dDUNGPFzlBj5WkPbjFXD/wB znfcTEFnI/9q+bgNZjzj6mh4xSK3kleyuHYPGzyhLeuIuAyBVbWBGRo3MiganXaab518 owQiyJTy2fs2/bekEVAoKF1yVq9mRCeri6iru7jaqPV93LG14ep29y3PaptB7BJYxq8F BLZQ1pPquYSSlKUWqpOgo9QIpslQPwcMTBIi5iEAZAe0Rf0kybGXtpsEO1QS9UZYY3MF lcyQ== MIME-Version: 1.0 X-Received: by 10.66.160.195 with SMTP id xm3mr16641099pab.93.1391904679302; Sat, 08 Feb 2014 16:11:19 -0800 (PST) In-Reply-To: References: Date: Sun, 9 Feb 2014 11:11:19 +1100 Subject: Re: What are the kinds of software that are not advisable to be developed using Python? From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: 39 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1391904688 news.xs4all.nl 2884 [2001:888:2000:d::a6]:56433 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:65700 On Sun, Feb 9, 2014 at 10:54 AM, Sam wrote: > I got to know about Python a few months ago and today, I want to develop = only using Python because of its code readability. This is not a healthy bi= as. To play my own devil's advocate, I have a question. What are the kinds = of software that are not advisable to be developed using Python? > Device drivers and operating systems. Definitely don't try writing those in pure Python. Anything that provides a C API is usually easier to program in C, so you would want to write a Python-callable glue module. Sometimes you'll find that there's nothing else to do but the module, in which case you've pretty much written your app in C, but often you can write a tiny driver script that calls on your functions - which means you can, later on, write a GUI app that calls on the same functions. But using ctypes for that is pretty messy and tedious. (Note that you might be able to write your glue module using Cython. I've never done this, but that's a sort of half-way mark between Python and C, with most of the code feeling like Python but the facilities being like C. Some day, I must try it.) Projects that are already partly written in some other language, or which should be written to use libraries in another language, usually should be written in that language. Modifying your PHPBB forum should probably be done in PHP, no matter what you think of that language (and who doesn't). Web applications that need to run on cheap web hosts usually need to be written in PHP, too, but Python is available on a good few "not-so-cheap" hosts, so that might not be a problem. Heavy computation might be unideal in Python, but if you can grunge it into NumPy operations, that won't be a problem. For the rest, Python's probably a fine language. Applications, servers, pretty much anything will work. Have at it! ChrisA