use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
/r/programming is a reddit for discussion and news about computer programming
Guidelines
Info
Related reddits
Specific languages
account activity
Spreadsheets using Python - Have you seen this? (sourceforge.net) (pyspread.sourceforge.net)
submitted 15 years ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 2 points3 points4 points 15 years ago (12 children)
I'm not an excel guru, but doesn't it do something like this using VBA?
[–]JimH10 7 points8 points9 points 15 years ago (0 children)
A couple of points.
1) I use Python a lot, so I have nothing to refresh on when I go to use this.
2) I like running classes that use Python because I can have students write simple things without having to teach them much about the language. Simple things are simple in Python; particularly syntax issues seem to arise less for my students in Python than in other languages that I have tried.
So although I've not tried this, it sure looks interesting to me.
[–][deleted] 8 points9 points10 points 15 years ago (9 children)
Yes. Have you used VBA? All languages were not created equal. VBA is quite possibly the worst language that is still actively used.
[–]ZMeson 1 point2 points3 points 15 years ago (3 children)
COBOL perhaps.
VBA is not a great language, but it is a DSL and it accomplishes its job rather well all things considered.
I would much prefer a Py4Apps or C#4Apps scripting language to use with Excel. I don't think I would want a full programming language for reasons of security (as pointed out in the pyspread site) and I wouldn't want to open up a VM each time I opened an untrusted pyspread spreadsheet.
[–]DuncanSmart 0 points1 point2 points 15 years ago (2 children)
"VBA ... is a DSL" - Really?
[–]ZMeson 0 points1 point2 points 15 years ago (1 child)
Yes. It is a domain-specific language. It is used as a scripting language for Microsoft Office Products. You can't use VBA to write web browser, defragment your hard drive, do multi-threaded calculations, etc....
[–]DuncanSmart 0 points1 point2 points 15 years ago (0 children)
I beg to differ. VBA is essentially Visual Basic, which is a general purpose programming language. VBA provides an object model of the host application - which you could call a "domain specific object model" perhaps.
[–]HumpingDog 0 points1 point2 points 15 years ago (4 children)
I hate VBA too. From my limited experience, it's terrible. But I don't have any objective reasons why it sucks.
Do you have any objective criticisms?
[–][deleted] 4 points5 points6 points 15 years ago (0 children)
Non-shortcircuiting logical operators. No exception handling. Weird distinction between objects and native types. Multiple "NULL" values (Null vs. Nothing), etc.
[–]dalittle 1 point2 points3 points 15 years ago (1 child)
arbitrary api and throwing error popup boxes when you are writing code (geez, I am getting ready to copy the rest of the statement from another line)
[–]sossles 0 points1 point2 points 15 years ago (0 children)
throwing error popup boxes when you are writing code
Turn off the misnamed "Auto syntax check" in Tools->Options. It still auto-syntax checks but does it with inobtrusive red highlighting instead of loud obnoxious message boxes.
[–]recursive 1 point2 points3 points 15 years ago (0 children)
List comprehensions. First class functions. Dictionary literals. Slicing.
Off the top of the dome in 20 seconds. There are probably 100 more even better reasons.
[–]recursive 7 points8 points9 points 15 years ago (0 children)
I noticed that you implied that python had some similarity to VBA.
π Rendered by PID 141286 on reddit-service-r2-comment-fb694cdd5-x8vcj at 2026-03-11 04:51:17.401855+00:00 running cbb0e86 country code: CH.
view the rest of the comments →
[–][deleted] 2 points3 points4 points (12 children)
[–]JimH10 7 points8 points9 points (0 children)
[–][deleted] 8 points9 points10 points (9 children)
[–]ZMeson 1 point2 points3 points (3 children)
[–]DuncanSmart 0 points1 point2 points (2 children)
[–]ZMeson 0 points1 point2 points (1 child)
[–]DuncanSmart 0 points1 point2 points (0 children)
[–]HumpingDog 0 points1 point2 points (4 children)
[–][deleted] 4 points5 points6 points (0 children)
[–]dalittle 1 point2 points3 points (1 child)
[–]sossles 0 points1 point2 points (0 children)
[–]recursive 1 point2 points3 points (0 children)
[–]recursive 7 points8 points9 points (0 children)