473,465 Members | 1,976 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Python for TCLer

I am almost brainwashed to forsake TCL for Python. However, I wanted
to ask a few preliminary questions before I jump in.

The over all picture of my project would look like:

Front End : TCL scripts - Our API to users (Can't change because of
legacy)
----->Middle Layer : Framework (PYTHONization Target)
Back End: TCL API from vendors (Can't change), in-house Expect API
(can't risk for reliability)

1. One of my vendors supplies TCL package only. Can I call TCL
procedures from Python back end? What about Expect scripts?

2. OTOH, all my scripts are in TCL. Can I invoke python from TCL and
retain states in python?

3. This is closely related to uplevel question already discussed in
this group. We have one control structure in our API that has done
wonders in productivity. I can not let it go.

Does python let me write a control structure? It looks like:

set x 10
set y 5
controlStructure {
do something with $x until y becomes 3 ;#This is evaluated in
caller's frame
}

4. Does there exist a mapping of TCL facilities over Python? It will
help me in training man power. Ideal place would describe

uplevel "..."
would translate to
<python equivalent>

eval "..."
would translate to
<python equivalent>

subst "..."
....

5. Does Aspect Oriented Extension exist for Python? I know TOS
(http://www.aopsys.com/tos) is no longer maintained for TCL.

Thanks in advance,
-Bhushit
Jul 18 '05 #1
1 1614
In article <84**************************@posting.google.com >,
Bhushit Joshipura <bh*****@hotmail.com> wrote:
I am almost brainwashed to forsake TCL for Python. However, I wanted
to ask a few preliminary questions before I jump in.

The over all picture of my project would look like:

Front End : TCL scripts - Our API to users (Can't change because of
legacy)
----->Middle Layer : Framework (PYTHONization Target)
Back End: TCL API from vendors (Can't change), in-house Expect API
(can't risk for reliability)

1. One of my vendors supplies TCL package only. Can I call TCL
procedures from Python back end? What about Expect scripts?

2. OTOH, all my scripts are in TCL. Can I invoke python from TCL and
retain states in python?

3. This is closely related to uplevel question already discussed in
this group. We have one control structure in our API that has done
wonders in productivity. I can not let it go.

Does python let me write a control structure? It looks like:

set x 10
set y 5
controlStructure {
do something with $x until y becomes 3 ;#This is evaluated in
caller's frame
}

4. Does there exist a mapping of TCL facilities over Python? It will
help me in training man power. Ideal place would describe

uplevel "..."
would translate to
<python equivalent>

eval "..."
would translate to
<python equivalent>

subst "..."
...

5. Does Aspect Oriented Extension exist for Python? I know TOS
(http://www.aopsys.com/tos) is no longer maintained for TCL.

Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Emile van Sebille | last post by:
QOTW: "If we get 2.3.3c1 out in early December, we could release 2.3.3 final before the end of the year, and start 2004 with a 100% bug-free codebase <wink>." -- Tim Peters "cjOr proWe vbCould...
0
by: Emile van Sebille | last post by:
QOTW: "Have you ever used the copy module? I am *not* a beginner, and have used it *once* (and I can't remember what for, either)." -- Michael Hudson "It will likely take a little practice...
0
by: Emile van Sebille | last post by:
QOTW (in the OS agnostic category): "There is a (very popular) Python package out there which exposes the win32 api. I'm not sure what it's called. (win32api? pythonwin? win32all?)" -- Francis...
0
by: Emile van Sebille | last post by:
QOTW (advanced interfaces track): "I'm firmly in favour of any language that can DWIMNWIS." -- Tim Delaney QOTW (MS roadkill track): "Underestimate MS at your own risk. It is one thing to not...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.