Embedding Python the extreme way

Wolfgang Draxinger wdraxinger at darkstargames.de
Wed Jul 10 08:43:23 EDT 2002


Michael Hudson wrote:

> To me these sentences contradict each other.  So I must be missing
> something...

I want not to add a statically linkes python.lib to my linkage

> For the modules, just don't build them.  You really don't want to try
> getting rid of sys, btw.

Yes I want that!
I just want the language and the grammar and basic data types. E.g. I've 
a virtual file system in my engine. All that's related to files should 
go through this natively.
Ok, discarding sys may be not a good idea, but things like
sys.exit, sys.path, sys.dllhandle and similair should definitely not be 
touched by engine object scripts.

> For getting rid of builtin functions, why bother?

Because some of them can mess up all. I know what I'm talking about.
I should have said, getting rid of all where it is possible and 
replacing the rest with custom stuff at a low level base.

>>Can anybody give me some advice for that.
> Yes: don't.

Why?


> PS: I saw that you x-posted this to python-dev.  Please don't do that.

OK

-- 
+------------------------------------------------+
| +----------------+ WOLFGANG DRAXINGER          |
| | ,-.   DARKSTAR | lead programmer             |
| |(   ) +---------+ wdraxinger at darkstargames.de |
| | `-' / GAMES /                                |
| +----+''''''''     http://www.darkstargames.de |
+------------------------------------------------+




More information about the Python-list mailing list