kindall

Seattle, WA

engyrus.com

Age: 46

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/.

12h
answered Can't save images using python ImageEnhance module
12h
comment Python | The median is the middle number in a sorted sequence of numbers
len(0:len(lst)-1) is invalid.
1d
comment How to send a POST in python. 'dict' object has no attribute 'split'
lists do not have a split() method either.
Jul
29
comment Addpath for Python like in Octave
I'd instead recommend creating a sitecustomize.py for this and put it in some directory that's already in your path (perhaps site-packages). Python will execute it automatically at startup.
Jul
29
answered Addpath for Python like in Octave
Jul
27
comment How to check if URL is popuped in python
Add the URLs you've already popped up to a set and check to see if it's in there before popping it up again.
Jul
26
comment AttributeError: 'module' object has no attribute 'ORB'
Which is it, create_ORB() or ORB_create()? You use one in your text but the other in your code.
Jul
22
comment How to check if a function is pure in Python?
You're going to want to do bytecode inspection, probably, rather than source code inspection.
Jul
21
answered Trying to cast one object type into another in Python
Jul
21
comment Python - Perform file check based on format of 3 values then perform tasks
A state machine is definitely the best approach. You could even generalize it so you don't have to name the sections in advance; it could derive those from the headers.
Jul
21
comment How to execute only some functions from other python modules?
If you don't want your functions called when the module is imported, don't call them in the module.
Jul
21
comment python - is and not in if condition
I can't leave it as an answer because the question has been closed. Still, I'm not (only) doing this for the imaginary Internet points. Being helpful is its own reward.
Jul
21
comment python - is and not in if condition
21 is truthy, and so not 21 is False. x is 10 is (coincidentally, you should be using == not is) True. True and False is False.
Jul
20
comment Unexpected value for argument 'function' when using GLib introspection
Ah, so it's a kind of magic module that automatically installs stuff if you don't already have it? Personally I would just eschew the magic and install what I need the regular way.
Jul
20
comment Unexpected value for argument 'function' when using GLib introspection
What do you mean by "introspection" here? You're using it in a different way than I've seen it used before.
Jul
17
comment Calling gen.send() with a new generator in Python 3.3+?
"How can a generator be returned if you haven't executed up until the yield statement?" Why would that be a problem?
Jul
17
comment How do I programatically find what symbols were imported with Python import * command?
Yes, which is why it's better to not do that.
Jul
17
comment How to compare "version-style" strings
In what sense are version 1 and version 1.0 the same? Version numbers aren't floats.
Jul
17
comment Is there an equivalent in Python of Fortran's "implicit none"?
Yes, to do this right you really need to scan the bytecode for LOAD_GLOBAL opcodes. Of course, modules, classes, and functions may all be "globals" and you'll usually want to be able to use them!
Jul
16
answered How do I programatically find what symbols were imported with Python import * command?
1 2 3 4 5