This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Possible to use Python instead of TCL?

Help for those learning Tcl or writing their own scripts.
Post Reply
l
lavacano201014
Voice
Posts: 1
Joined: Tue Aug 04, 2009 5:10 pm
Location: Oz
Contact:

Possible to use Python instead of TCL?

Post by lavacano201014 »

I searched, nothing came up.

All I ask is this: Is there a possibility to use Python to script for Eggdrop instead of TCL? I'm probably OK with adding third-party modules.
User avatar
arfer
Master
Posts: 436
Joined: Fri Nov 26, 2004 8:45 pm
Location: Manchester, UK

Post by arfer »

I would also be interested in any complete reply to this question. At one time I recall there being some intent to include perl and python in future releases of eggdrop.

My thoughts are that the problem is not so much the embedding of the core scripting languages themselves but the inclusion of equivalents for the great many Eggdrop Tcl binds and commands that have been added, without which even Tcl would be pretty useless.

There are Tcl scripts that execute other language files, for example the timed execution of the perl script pisg in order to generate channel statistics. Likewise, I don't doubt python scripts can be executed in the same way. However, I doubt that this is an answer to your question.
I must have had nothing to do
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

With the current 1.6-tree, No. Tcl is way too integrated into eggdrop's engine to easily be replaced/extended with other languages. You could of course use tcl's ability to interact with external applications to make use of an external parser. This would though be run in a separate environment, and the only thing these two applications would share are pipes.

There is/was some ideas about pluggable script engines in 1.7/1.9, as well as removing the dependency on tcl, although I currently have no idea regarding it's progress, or the overall progress of 1.7/1.9...
NML_375
Post Reply