Python

Python Evaluator AppleScript

A few weeks ago, I talked about a Bash function and alias combo that lets you evaluate simple Python expressions from the Bash command-line. In a similar vein, here's a super simple GUI app, written in AppleScript that evaluates...
ProgrammingPython

Python ternary operator

Today's Python discovery: Python doesn't have the C style ?: ternary operator (e.g.: cond ? valueIfTrue : valueIfFalse). But as of Python 2.5 it has a ternary operator with its own syntax: value_when_true if condition else...