473,289 Members | 1,923 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,289 software developers and data experts.

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 2378
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tim Fuehner | last post by:
Dear Newsgroup, I have a problem that is somewhat related to Alexandre Gillet's ones: "build a static python executable". I would like to make a C program scriptable. Therefor, I have included...
5
by: Rafal Kleger-Rudomin | last post by:
Hello, I'm looking for a command to reset interpreter's environment i.e. unload all modules, delete variables etc. Regards, Rafal
12
by: Anon | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello all I am a beginner teaching myself python, and I am enjoying it immensely :) As a language it is great, I real treat to study, I actually...
2
by: Jarppe | last post by:
Hello, What should I do to be able to call Pyhton interpreter from a posix thread that is created in C? I have a C-library that creates a thread and then makes callbacks to user supplied...
12
by: Rex Eastbourne | last post by:
Hi, I'm interested in running a Python interpreter in Emacs. I have Python extensions for Emacs, and my python menu lists "C-c !" as the command to run the interpreter. Yet when I run it I get...
5
by: wahn | last post by:
Hi, Here is a problem I came across and need some help with. I developed a little Python script with some classes which runs standalone and communicates with a database via sockets. So far...
6
by: neokosmos | last post by:
I was wondering what the approximate amount of memory needed to load a Python interpreter (only, no objects, no scripts, no nothing else) in a Linux 2.6 environment. According to ps, it appears to...
2
by: Lilavivat | last post by:
Running SUSE 10.1 on an AMD64. When I try and run a python program I get the following error: /usr/bin/python2: bad interpreter: No such file or directory "which python" gives me...
0
by: has | last post by:
Hi all, need a little bit of advice on dynamically binding an embedded Python interpreter. First, the code for anyone that wants a look: ...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.