|
PythonInterpreter and Python 11: msg#00029lang.jython.user
Recently trying to add a console to my program I found that the example that comes with Jython isn't useful if you want more than one seperate instance of a console because the state of all instanciated consoles share the same state. Trying to then rewrite the console to be able to do that ran me into some problems, the PythonConsole and ReadlineConsole Java classes (I think those are the names, not sure as I don't use them) that come with Jython suffer the same problem (but for a different reason). These console's also share each other's state and cannot be multiply instanciated because they shadow the PythonInterpreter.__init__ 'state' argument in their own constructors with a null argument, which makes all instances of those classes share the default global interpreter state. After trying every Python trick I know, I couldn't get around these problems so I rewrote the console class from scratch in Python to allow the passing in of a new system state object. So I'm not sure want to send as a bug fix for Jython, a new python only console, or rewrite the two Java classes? Any suggestions? Further I was suprised to find in my digest this morning a message from Guido saying that Python 11 is being held right here in Portland Oregon. Anyone doing a Jython presentation? -Michel ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: Looking for a telnetlib/select package for use in Jython., brian zimmer |
|---|---|
| Next by Date: | Re: Overloading !=, Oti |
| Previous by Thread: | Overloading !=, A Bewes |
| Next by Thread: | Anyone going to PyCon?, Tom |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |