|
From: Phil S. <psu...@es...> - 2001-11-01 14:13:36
|
I was hoping to do a lazy initialization thing. I'm open to suggestions as to how to do it... I haven't actually written anything yet and I'm working on writing some jython tasks for ant first. My thoughts were to create a class that implements all the dictionary things - __getitem__ etc - and populate the dictionary the first time any of these are called. By cribbing from ant I should be able to put in support for a read-only environment for unices and win32. I haven't thought writing through yet, but I figure reading will hit a large percentage of the use cases. -----Original Message----- From: bc...@wo... [mailto:bc...@wo...] Sent: Wednesday, October 31, 2001 2:26 PM To: jyt...@li... Subject: Re: [Jython-dev] jythons module os [Phil Surette] >I am planning to look into adding os.environment and os.system >support in, basically cribbing from how ant does this, but >I have not had time yet. I hope you and/or someone else find some time to look into it, it would be a valuable addition. I'm not sure what the right way to enable the os.environment should be. It isn't right to fill the os.environment dict whenever "os" is imported, that would be way to slow for all the program that never uses any enviroment variables. Any thoughts? >However, I think jnios is probably the better way to go for >you. Someone needs to finish it though. Any volunteers? regards, finn _______________________________________________ Jython-dev mailing list Jyt...@li... https://lists.sourceforge.net/lists/listinfo/jython-dev |