Re: Resources/pointers for writing maintable, testable Python

2016-05-18 Thread Andrew Farrell
Hi Jacob, You are probably looking for the book Test-Driven Development with Python <http://chimera.labs.oreilly.com/books/123400754/index.html>. You'll also want to look at py.test <http://pytest.org/latest/> Cheers! Andrew Farrell On Wed, May 18, 2016 at 5:01 PM, Jacob Sco

Re: Failed install scipy lib

2016-04-19 Thread Andrew Farrell
Hi Liran, If your goal is simply to install SciPy on windows and not have to worry about python packaging, your best bet is to go ahead and install Anaconda , which comes with SciPy and a bunch of other libraries for

Re: how to setup for localhost:8000

2016-04-14 Thread Andrew Farrell
What happens when you type http://localhost:8000 Into the address bar of your browser as this is running? On Thu, Apr 14, 2016 at 12:46 PM, wrote: > Hi, > > I am working on window 7 and Python 3.5 to setup a localhost:8000 but it > did not get through as shown below: > >

Re: Question

2016-03-07 Thread Andrew Farrell
I'm going to echo Chris Angelo's suggestion #2 to use a python distribution. This page has the links to download Anaconda. It is free and if you need to download libraries which require compiled external code like numpy you can just run `conda install numpy`.

Re: Nested List question

2016-02-24 Thread Andrew Farrell
you can indeed have a nested list. One way you could do that looks like donor = [ 'George', 'Soros', [ #<- 2nd element of outermost list '99 First Street', [ #<- 1st element of middling list '33 Broadway

Re: need some basic help

2015-12-24 Thread Andrew Farrell
This code snippet is a method on a class. What is a method? This chapter of the book Think Python does a good job of explaining it. Without understanding this foundation, it isn't possible to really answer your question, so

Re: An Educational Software Platform written in Python

2015-11-30 Thread Andrew Farrell
I would look first at the open source software released by EdX: https://open.edx.org/ On Sat, Nov 28, 2015 at 10:39 AM, Marko Rauhamaa wrote: > Cai Gengyang : > > > Can I create something like this entirely in Python, > > Absolutely. It will only take

Re: Concatenating Strings

2015-04-09 Thread Andrew Farrell
I am under the impression that using format() is the canonically right way to do it. It is certainly more readable than using ''.join() and is more semantically specific than string addition. On Thu, Apr 9, 2015 at 1:35 PM, Chris Angelico ros...@gmail.com wrote: On Fri, Apr 10, 2015 at 4:29 AM,

Re: New to Programming - XML Processing

2015-03-31 Thread Andrew Farrell
You should follow Rustom's advice before just diving into the blog post I linked to. Otherwise you risk blindly following things and losing your bearings when you run into bugs. On Tue, Mar 31, 2015 at 11:17 PM, Rustom Mody rustompm...@gmail.com wrote: On Wednesday, April 1, 2015 at 8:57:15 AM

Re: New to Programming - XML Processing

2015-03-31 Thread Andrew Farrell
I am new to programming, though not new to computers. One quick tip: when starting a new project, it is sometimes is useful to see if others have done the same thing and use their approach to guide yours. In your case, googling Garmin Forerunner xml python results in this blog post which is

Re: Project, how to debug

2015-03-31 Thread Andrew Farrell
points of general advice: - As noted by Chris, you first need to figure out what the code is *supposed* to do. - Have a notebook and pencil next to you as you are working through this so that you can make notes and draw out the structure of things. - Write down the general structure of the code on

[issue6026] test_(zipfile|zipimport|gzip|distutils|sqlite) fail if zlib is not available

2010-07-12 Thread Andrew Farrell
Andrew Farrell afarr...@mit.edu added the comment: In the midst of installing from http://www.python.org/ftp/python/2.7/Python-2.7.tgz I get this same error on test_distutils when I run make test. this is on debian lenny, amd64 distutils_test output

[issue6026] test_(zipfile|zipimport|gzip|distutils|sqlite) fail if zlib is not available

2010-07-12 Thread Andrew Farrell
Andrew Farrell afarr...@mit.edu added the comment: The attempt to install setuptools indicates that zlib may actually be required it seems. I download setuptools-0.6c11-py2.7.egg from http://pypi.python.org/pypi/setuptools and, as instructed at http://pypi.python.org/pypi/setuptools#id4

[issue6026] test_(zipfile|zipimport|gzip|distutils|sqlite) fail if zlib is not available

2010-07-12 Thread Andrew Farrell
Andrew Farrell afarr...@mit.edu added the comment: No dice. unless I'm mistaken, this needs to be included in the distribution. My current best solution looks like finding the source to zlib, putting it in my path to install setuptools. then installing zlib properly traceback for your pleasure

[issue6026] test_(zipfile|zipimport|gzip|distutils|sqlite) fail if zlib is not available

2010-07-12 Thread Andrew Farrell
Andrew Farrell afarr...@mit.edu added the comment: Apologies. Error on my part. For those that run into the same problem: Though zlib is installed on an earlier version of python, you need to have (ob debian) the package zlib1g-dev installed when you build python