kindall

Seattle, WA

engyrus.com

Age: 47

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

18h
comment If Else Range Search Python 3.5
It is almost impossible to even tell what you're asking. There are only two if statements in your code. Only one has an else clause. That else clause is empty. The other if statement looks like you just took for and changed it to if and... I can't even figure out what you're trying to do. if i in range(3, 4) is just a very weird way of saying if i == 3 for example, and you then compare that result (which will be True or False) to a string... which is an error in Python 3, but that's not the problem you say you're having. ¯\_(ツ)_/¯
20h
comment How to return list with negative integer in the program?
Correct. Updated.
20h
revised How to return list with negative integer in the program?
added 55 characters in body
20h
answered How to return list with negative integer in the program?
2d
comment Initialising Python properties
You really want a fresh connection every time you ask for the connection? Just set it as a regular attribute in your __init__ and forget about it.
2d
revised Is it bad practice to place other objects on the class namespace?
deleted 5 characters in body
2d
answered Is it bad practice to place other objects on the class namespace?
2d
answered Getting syntax errror for If else statement Python
May
2
comment Python Sum individual integers
Well, first, don't bother converting those inputs to integer...
May
1
comment queue.get returns NoneType object?
You removed the check for None but didn't modify the rest of the code to work with None which is now a value it will have to deal with.
Apr
27
comment Is there quicker way to get CPU serial number in python?
A regular expression might be marginally faster, or not.
Apr
27
comment Concatenating variable names in Python
You use a list to hold your values, not ten different variables!
Apr
27
comment Python - Call function from imported module
You don't show your import statement... the linchpin to your entire question...
Apr
27
answered How to make Python print one character at a time on the same line?
Apr
27
revised Booleans have two possible values. Are there types that have three possible values?
added 158 characters in body
Apr
27
comment Delete punctuation marks and return a meaningful sentence - Python
Brute force way: while " " " " in s: s = s.replace(" " " ", " ") (stupid SO keeps collapsing my whitespace)
Apr
27
revised Delete punctuation marks and return a meaningful sentence - Python
added 233 characters in body
Apr
27
revised Delete punctuation marks and return a meaningful sentence - Python
added 288 characters in body
Apr
27
answered Delete punctuation marks and return a meaningful sentence - Python
Apr
26
comment py.test can't import Pandas "TypeError: __name__ must be set to a string object"
Please post a small amount of code that reproduces the problem.
1 2 3 4 5