469,926 Members | 2,472 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,926 developers. It's quick & easy.

Python interpreter in Basic or a Python-2-Basic translator.

I'm looking for a Python interpreter written in BASIC, preferably
Visual Basic, and one written in VBA would be best of all. An
alternative would be a Python-2-Basic compiler.

Unfortunately I have to develop some special purpose code in an
organization where my only development environment is Microsoft Office
Visual Basic for Applications.

The security 'droids have decided that since the MS Office Suite is a
"standard" application then software written in MS Office VBA must be
"safe." Any other development environments (such as Java, Perl,
Cygwin) are "unsafe" and can't be installed.

The result is that any software I write must be bootstrapped from MS
Office VBA.

So, if I want Python, I need a Python interpreter in VBA.

If you respond, please send a copy to pc*****@comcast.net

Jul 19 '05 #1
6 2209
I don't think this is going to happen.

Applications that drive MS Office applications merely call COM
objects that perform the actual operations. It doesn't really
matter what language calls the COM objects, they are the same
objects all the time. If they don't like the "installation"
of the Python interpreter, use py2exe to convert your app to
an .EXE file with some supporting .DLL files and use Inno
Installer to turn it all into a single setup.exe file that
can be distributed. Then you can install on machines without
doing Python installation.

Otherwise, bite the bullet and just learn and write in VB/VBA.

-Larry Bates
Engineer wrote:
I'm looking for a Python interpreter written in BASIC, preferably
Visual Basic, and one written in VBA would be best of all. An
alternative would be a Python-2-Basic compiler.

Unfortunately I have to develop some special purpose code in an
organization where my only development environment is Microsoft Office
Visual Basic for Applications.

The security 'droids have decided that since the MS Office Suite is a
"standard" application then software written in MS Office VBA must be
"safe." Any other development environments (such as Java, Perl,
Cygwin) are "unsafe" and can't be installed.

The result is that any software I write must be bootstrapped from MS
Office VBA.

So, if I want Python, I need a Python interpreter in VBA.

If you respond, please send a copy to pc*****@comcast.net

Jul 19 '05 #2
In article <11**********************@g14g2000cwa.googlegroups .com>,
Engineer <pc*****@comcast.net> wrote:
Jul 19 '05 #3

Cameron Laird wrote:
In article <11**********************@g14g2000cwa.googlegroups .com>,
Engineer <pc*****@comcast.net> wrote:
.
.
.
The security 'droids have decided that since the MS Office Suite is a"standard" application then software written in MS Office VBA must be"safe." Any other development environments (such as Java, Perl,

.
.
.


Obviously, this is a new usage of "safe" with which I have
prviously been unaware.

Jul 19 '05 #4
Cameron Laird skrev:
In article <11**********************@g14g2000cwa.googlegroups .com>,
Engineer <pc*****@comcast.net> wrote:
.
.
.
The security 'droids have decided that since the MS Office Suite is a
"standard" application then software written in MS Office VBA must be
"safe." Any other development environments (such as Java, Perl,

.
.
.


This is clear evidence supporting the theory that being in charge of
security and being able to think have no significant correlation.

And, yes: +1 QOTW from me, too.
--
Leif Biberg Kristensen
Jul 19 '05 #5
Hi !
VBA is at the end of his lifetime. The next MS-Office will not have VBA
(because dotNet).
You should really adopt Python.
@-salutations
--
Michel Claveau

Jul 19 '05 #6
On Sun, 01 May 2005 06:18:27 -0700, Engineer wrote:
The security 'droids have decided that since the MS Office Suite is a
"standard" application then software written in MS Office VBA must be
"safe."


"Melissa". (Google hint: "Virus".)

Given the brazen stupidity demonstrated by these decision makers in the
face of *internationally newsworthy* plain facts to the contrary,
this may be a "brush up the resume" situation. Life's short.

Good luck.

More constructively, see if you can convince your VBA installation to run
on Javascript(/Jscript) instead of Visual Basic. While it has some
annoyances next to Python, by and large it should be a much more tolerable
choice. It's not Python, but it's surprisingly close in a lot of ways.
Jul 19 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Rafal Kleger-Rudomin | last post: by
12 posts views Thread by Anon | last post: by
12 posts views Thread by Rex Eastbourne | last post: by
5 posts views Thread by wahn | last post: by
6 posts views Thread by neokosmos | last post: by
2 posts views Thread by Lilavivat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.