Posts about Python

Book Review: Python Testing Cookbook

This is the second of 2 Python book reviews. The book is Python Test Cookbook. This book is a very complete overview of all aspects of testing with Python. It starts out with simple unit tests,... more
Posted by Toby on Aug 02, 11
About programming, books and python

Book Review: Python 3 Web Development - Beginners Guide

I just finished reading Python 3 Web Development - Beginners Guide by Michel Anders and here is my book review.Michel Anders is no doubt a brilliant programmer. He has managed to go through HTML,... more
Posted by Toby on Jul 21, 11
About programming, books and python

Python Book Reviews Forthcoming

The kind folks at PacktPub are letting me review a couple of Python books. Hooray! They arePython 3 Web Development Beginner's GuidePython Testing CookbookLook for my reviews of them in the... more
Posted by Toby on Jul 15, 11
About programming, books, python and bookreview

Smart Parameter Checks in Python

While I really enjoy using Michael Foord's Mock library, there is one thing missing and I thought would be a fun project to add - which is the subject of this post.Fun with ParametersPython has... more
Posted by Toby on Mar 24, 11
About programming and python

Python-Style OO in Javascript

A while a go I wrote a post on Prototype Inheritence in Python. This time, I am somewhat going the opposite direction. That's right: Python-Style OO in Javascript.Now, I don't think I am the... more
Posted by Toby on Jun 16, 10
About programming, javascript and python

One-Liner WebServer with Python

Turns out, even better than my HTTP Server in 5 Lines With Webrick is this one-liner:python -m SimpleHTTPServerThis will serve on port 8000 by default, but you can add the port number as... more
Posted by Toby on Apr 26, 10
About programming and python

Get Argumentative with Javascript

When I looked at the Google Maps API for Javascript, I couldn't help but notice that all the functions in the API Reference look kinda Pythonic. Functions call be call with a positional argument list... more
Posted by Toby on Jun 29, 09
About programming, javascript and python

Prototype Inheritence in Python

One of Toby's favorite pastimes is to take concepts from one language and realize it in another. In this episode: Toby implements Javascript-style prototype inheritence in Python.One thing that is... more
Posted by Toby on May 23, 09
About programming, javascript, python and prototype
7 comments

Null in 10 Languages

  • Java, Javascript, C#: null
  • Ruby, Smalltalk, Lisp, OCaml: nil
  • Lisp: ()
  • Python: None
  • Haskell: Nothing
  • C: 0
more
Posted by Toby on May 11, 09
About programming, javascript, ruby, smalltalk, haskell, ocaml, python, java, c#, lisp and c

Parameterizing Your Tests

I use Selenium at work to write browser tests. I use the Python bindings with Selenium Remote Control to drive the tests. Now, once you have written a test suite, it is not unreasonable to want to... more
Posted by Toby on Mar 11, 09
About programming, testing and python

goodday dot py

Looking at rails and the datejs library, I can't help but feel bummed that Python doesn't have an expressive date library like that. So I started one. I've put up my code on google... more
Posted by Toby on Jan 22, 09
About programming, python and dates
2 comments

Auto-mixin in Python

Python has multiple inheritence - a feature that's really handy because it allows the programing idiom called mixins - where you write a a bunch of methods on a "mixin" class and then later on... more
Posted by Toby on Jan 18, 09
About programming, ruby, metaprogramming, python and mixin