mike | Shared With: Everyone - 10 hours ago | unicode, python
mike | Shared With: Everyone - 11 hours ago | python, unicodeShareViewed: 1 Time
mike | Shared With: Everyone - 14 hours ago | google, appengine, testing, unit, pythonShareViewed: 1 Time
mike | Shared With: Everyone - 15 hours ago | python, patternsShareViewed: 1 Time
mike | Shared With: Everyone - 15 hours ago | python, referenceShareViewed: 3 Times
mike | Shared With: Everyone - yesterday | django, development, python
mike | Shared With: Everyone - yesterday | django, web development, python
mike | Shared With: Everyone - 15 days ago | python, programming, styleShareViewed: 12 Times
mike | Shared With: Everyone - Jul 29 2008 | html, parser, benchmarks, performance, pythonShareViewed: 6 Times
mike | Shared With: Everyone - Jul 22 2008 | windows, cmd, command, python, extension
Hack for getting python scripts to run like cmd files - including the ability to redirect stdio (I can't believe this bug in windows cmd processor - Windows really sucks for command line types).
Quoted: On Windows NT, the steps taken by the installer as described above allow you to run a script with 'foo.py', but a longtime bug in the NT command processor prevents you from redirecting the input or output of any script executed in this way. This is often important.
...
The incantation for making a Python script executable under WinNT is to give the file an extension of .cmd and add the following as the first line:
...
@setlocal enableextensions & python -x %~f0 %* & goto :EOFShareViewed: 1 Time


Send Mike a friend request or a personal message instead.