kindall

Seattle, WA

engyrus.com

Age: 45

I'm a technical writer at Tecplot, Inc., makers of fine data visualization software for aerospace/CFD, oil and gas exploration, and general scientific/engineering uses. Python is my Swiss Army Knife of choice. I use it to help build and validate our documentation and help, among other things. I also have some proficiency with HTML, XML, AppleScript, C#, C, and if anyone ever has a question about 6502 assembly language, I'm your man. :-)

I occasionally do Python-related blogging at http://www.engyrus.com/.

1d
comment Python 3.x - If quitting program, at the y/n conditional how do I make the no answer go back to the start of program?
Put the whole thing in a while loop: while response != "n" ... initialize response to "n" before the loop...
2d
comment Opening several tabs in Firefox using Python
Why not just put all your sites into a folder on your bookmarks toolbar, then "Open all in tabs"?
2d
comment Length of String vs. # of keys in Dictionary
What happened when you timed it yourself?
Sep
17
comment Is it possible in Python to write a block of statements such that the entire block is rolled back in case of an exception?
You want print statements to be unprinted? Files to be undeleted?
Sep
17
comment Treating iterable and not-iterable objects seamlessy
It will do what you expect; strings are iterable, so you will end up with a list of characters.
Sep
17
answered Why Python if statement is always returning True?
Sep
17
comment Treating iterable and not-iterable objects seamlessy
You were too quick for me. (I just copy and pasted the original code...)
Sep
17
answered Treating iterable and not-iterable objects seamlessy
Sep
12
comment Python code works outside function, but doesn't work inside function
I don't understand how this could possibly solve the problem, since you only need to declare a name global if you are modifying it.
Sep
12
comment How to overload "+" rather than __add__()
In Python, __add__ and __radd__ are the extension points for addition. There's nothing else to do other than what you're already doing.
Sep
11
awarded Good Answer
Sep
11
answered How to execute .py file through python shell..?
Sep
10
awarded Nice Answer
Sep
9
revised Operator NOT IN with Peewee
added 239 characters in body
Sep
9
comment Operator NOT IN with Peewee
Yeah, that makes sense, ~ is overrideable and doesn't need to return a Boolean. It doesn't seem to be documented anywhere though.
Sep
9
comment Operator NOT IN with Peewee
They can't not be interpreted by Python. Peewee provides special Python objects that override operators such as << to construct a SQL query. In other words, there is nothing in Peewee that ever sees Tweet.user << a_users and does something with it, that's all done by methods on Tweet.user. The result is a kind of domain-specific language (DSL) that works seamlessly with Python because it is Python. Unfortunately, I guessed wrong about a solution to your problem.
Sep
8
answered Operator NOT IN with Peewee
Sep
5
comment Basic Turtle Recursion
Besides people not having access to imgur, it's a lot easier to run your code if we don't have to type it in...
Sep
4
revised Using global variables in Python modules
added 93 characters in body
Sep
4
comment Using global variables in Python modules
As I have explained, you can't; not the way you want.
1 2 3 4 5