a strange question in it.comp.lang...

holger krekel pyth at devel.trillke.net
Thu Jan 9 07:08:08 EST 2003


6e6op wrote:
> thanks!
> so the only way to do that is: take the src of the interpreter and
> change str object code... too much work.. the man that did it
> builded ruby ;-)) (i'm joking)

btw, it's fun changing stuff at the core level especially
the C-code is comparitively easy to read.  Of course, 
getting something like the above accepted is near
impossible.  That a good thing because otherwise
nobody would use python anymore :-)

> i'm thinking...
> the possibility to change the
> core classes (obviously not __builtins__= __mybuiltins__ )
> in some way can be useful to build a customized python,
> maybe for embedded system or
> for application like java midlet used in new mobile phones...
> or things like that.

Since python2.2 you can subclass builtin types.  This already
gets you half-way.  Have you really tried that route for your 
problem?

> not really a new platform.. i want to try an example to explain..
> the X Company build a new periferal with a mini linux embedded,
> with a short list of command and only c++ to implement application.
> a customized python, in this case can be the way to build application
> better and quickly than c++ for the X Company...

And this is not doable without core changes? Are you sure? 

cheers,

    holger





More information about the Python-list mailing list