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


Groups > comp.lang.python > #94663

Re: Python Questions - July 25, 2015

From Laura Creighton <lac@openend.se>
Subject Re: Python Questions - July 25, 2015
References <jf6dnQiMOZ_GxC7InZ2dnUU7-S2dnZ2d@earthlink.com> <ks2dnVPporT-ryjInZ2dnUU7-W2dnZ2d@earthlink.com> <J5ctx.20800$IK6.11473@fx46.am4> <b68af3d4-6f12-49d6-8c15-f18a95441eda@googlegroups.com><1c6dnRzGjJyP6SjInZ2dnUU7-S-dnZ2d@earthlink.com>
Date 2015-07-27 11:15 +0200
Newsgroups comp.lang.python
Message-ID <mailman.1029.1437988555.3674.python-list@python.org> (permalink)

Show all headers | View raw


In a message of Sun, 26 Jul 2015 18:58:14 -0500, "E.D.G." writes:

>       This is an indirect URL for a potentially important computer program 
>that I feel needs to be developed.  Unfortunately, although Python could be 
>used to create PC or Mac versions of the program I don't think that those 
>programs would run on Internet server computers.  But I don't yet know 
>enough about Python to be able to tell if that is the case or not.

Sure they will.  That thing about the Affordable Health Care Act
you mentioned -- do you know how this got _fixed_?  People in this
community, notably Alex Gaynor went and turned the lot into a
Django Python app.  He's now working for the US department of
Veteran Affairs, turning more things into Django apps so that
veterans can get their claims processed in weeks (they are aiming
for days) rather than 6-8 months which was the norm before he
got their.  His plan is to speed up the US government with Python
one agency at a time.

There are many techniques you can use to make your Python code fast.
I think we are much better off in that regard than the Perl users are.
If you need better than CPython performance, you might be able to just
use numpy numerical arrays and get the improvement you need.  Or you
might just stop using CPython, and use PyPy, which is a completely
different implementation and which has a JIT that gives
rather good performance, often on the order of pure C code.
see http://speed.pypy.org/

Or you can use Cython http://cython.org/ to make C extensions out of
the part of your python code you would like to run faster.  Or maybe
there already is a C or Fortran library that already does what you
want, you just want to use it in your code.  There are techniques for
just doing this -- and if the library is well known then chances are
somebody else has already made python bindings for it so you can just
use it with CPython.

I wouldn't worry about speed.

If you want to reimplement your webscraping Perl program in Python, I
suggest you start with this library http://scrapy.org/ rather than
reinventing things from scratch.  The scrapy community is very happy to
get code with new techniques which they add to the library, and then
we all benefit.

Laura

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


Thread

Python Questions - July 25, 2015 "E.D.G." <edgrsprj@ix.netcom.com> - 2015-07-25 04:39 -0500
  Python Questions - July 25, 2015 tandrewjohnson@outlook.com - 2015-07-25 04:36 -0700
    Python Questions - July 25, 2015 tandrewjohnson@outlook.com - 2015-07-25 04:39 -0700
    Re: Python Questions - July 25, 2015 "E.D.G." <edgrsprj@ix.netcom.com> - 2015-07-25 08:16 -0500
      Re: Python Questions - July 25, 2015 Laura Creighton <lac@openend.se> - 2015-07-25 15:59 +0200
        Re: Python Questions - July 25, 2015 "E.D.G." <edgrsprj@ix.netcom.com> - 2015-07-26 12:49 -0500
          Re: Python Questions - July 25, 2015 Laura Creighton <lac@openend.se> - 2015-07-26 20:38 +0200
            Re: Python Questions - July 25, 2015 "E.D.G." <edgrsprj@ix.netcom.com> - 2015-07-26 13:48 -0500
    Re: Python Questions - July 25, 2015 BartC <bc@freeuk.com> - 2015-07-26 13:49 +0100
      Re: Python Questions - July 25, 2015 Chris Angelico <rosuav@gmail.com> - 2015-07-26 23:07 +1000
        Re: Python Questions - July 25, 2015 BartC <bc@freeuk.com> - 2015-07-26 15:30 +0100
      Re: Python Questions - July 25, 2015 Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-07-26 14:19 +0100
      Re: Python Questions - July 25, 2015 Steven D'Aprano <steve@pearwood.info> - 2015-07-27 00:22 +1000
        Re: Python Questions - July 25, 2015 BartC <bc@freeuk.com> - 2015-07-26 15:58 +0100
      Re: Python Questions - July 25, 2015 Rob Gaddi <rgaddi@technologyhighland.invalid> - 2015-07-27 23:14 +0000
        Re: Python Questions - July 25, 2015 Terry Reedy <tjreedy@udel.edu> - 2015-07-28 04:50 -0400
          Re: Python Questions - July 25, 2015 BartC <bc@freeuk.com> - 2015-07-28 10:46 +0100
            Re: Python Questions - July 25, 2015 Chris Angelico <rosuav@gmail.com> - 2015-07-28 20:17 +1000
              Re: Python Questions - July 25, 2015 BartC <bc@freeuk.com> - 2015-07-28 11:44 +0100
                Re: Python Questions - July 25, 2015 Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-07-28 13:47 +0100
                Re: Python Questions - July 25, 2015 Steven D'Aprano <steve@pearwood.info> - 2015-07-29 02:02 +1000
            Re: Python Questions - July 25, 2015 Steven D'Aprano <steve@pearwood.info> - 2015-07-29 02:12 +1000
              Re: Python Questions - July 25, 2015 BartC <bc@freeuk.com> - 2015-07-28 17:45 +0100
                Re: Python Questions - July 25, 2015 Rob Gaddi <rgaddi@technologyhighland.invalid> - 2015-07-28 18:46 +0000
                Re: Python Questions - July 25, 2015 Laura Creighton <lac@openend.se> - 2015-07-29 18:13 +0200
                Re: Python Questions - July 25, 2015 BartC <bc@freeuk.com> - 2015-07-29 17:50 +0100
          Re: Python Questions - July 25, 2015 wxjmfauth@gmail.com - 2015-07-28 07:09 -0700
        Re: Python Questions - July 25, 2015 Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-07-28 13:58 +0100
  Re: Python Questions - July 25, 2015 Laura Creighton <lac@openend.se> - 2015-07-25 15:30 +0200
    Re: Python Questions - July 25, 2015 "E.D.G." <edgrsprj@ix.netcom.com> - 2015-07-25 08:45 -0500
  Re: Python Questions - July 25, 2015 tjohnson <tandrewjohnson@outlook.com> - 2015-07-25 15:16 -0700
  Re: Python Questions - July 25, 2015 "E.D.G." <edgrsprj@ix.netcom.com> - 2015-07-26 14:17 -0500
    Re: Python Questions - July 25, 2015 mm0fmf <none@mailinator.com> - 2015-07-26 22:15 +0100
      Re: Python Questions - July 25, 2015 "E.D.G." <edgrsprj@ix.netcom.com> - 2015-07-26 17:08 -0500
        Re: Python Questions - July 25, 2015 "E.D.G." <edgrsprj@ix.netcom.com> - 2015-07-26 17:32 -0500
      Re: Python Questions - July 25, 2015 Ned Batchelder <ned@nedbatchelder.com> - 2015-07-26 16:12 -0700
        Re: Python Questions - July 25, 2015 "E.D.G." <edgrsprj@ix.netcom.com> - 2015-07-26 18:58 -0500
          Re: Python Questions - July 25, 2015 Laura Creighton <lac@openend.se> - 2015-07-27 11:15 +0200
        Re: Python Questions - July 25, 2015 Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-07-27 01:18 +0100
          Re: Python Questions - July 25, 2015 mm0fmf <none@mailinator.com> - 2015-07-27 17:46 +0100
    Re: Python Questions - July 25, 2015 tjohnson <tandrewjohnson@outlook.com> - 2015-07-27 03:24 -0700
      Re: Python Questions - July 25, 2015 wxjmfauth@gmail.com - 2015-07-29 00:43 -0700

csiph-web