Re: [Python-ideas] Use lazy loading with hashtable in python gettext module

2018-12-23 Thread Serge Ballesta via Python-ideas
Hi all, The feed back on my initial mail convinced me that it was important to allow the current behaviour of eagerly loading the whole catalog, and that keeping the files opened should also be optional. All that lead to this proposal: Features: The gettext module should be allowed

Re: [Python-ideas] Use lazy loading with hashtable in python gettext module

2018-12-18 Thread Serge Ballesta via Python-ideas
Le 18/12/2018 à 23:09, Barry Scott a écrit : On 18 Dec 2018, at 09:10, Serge Ballesta via Python-ideas mailto:python-ideas@python.org>> wrote: In a project of mine, I have used the gettext module from Python Standard Library. I have found that several tools could be used to generate the Ma

Re: [Python-ideas] Use lazy loading with hashtable in python gettext module

2018-12-18 Thread Barry Scott
> On 18 Dec 2018, at 09:10, Serge Ballesta via Python-ideas > wrote: > > In a project of mine, I have used the gettext module from Python Standard > Library. I have found that several tools could be used to generate the > Machine Object (mo) file from the source Portable Object (one): pybabe

Re: [Python-ideas] Use lazy loading with hashtable in python gettext module

2018-12-18 Thread Serge Ballesta via Python-ideas
Hi! ... > I use gettext quite extensively. I use Python's msgfmt to generate .mo files. I also use Django's compilemessage; I don't know what it uses internally, it could be an independent implementation or Python's msgfmt. Never used Django's implementation and I do not know its feature

Re: [Python-ideas] Use lazy loading with hashtable in python gettext module

2018-12-18 Thread Oleg Broytman
Hi! On Tue, Dec 18, 2018 at 10:10:51AM +0100, Serge Ballesta via Python-ideas wrote: > In a project of mine, I have used the gettext module from Python Standard > Library. I have found that several tools could be used to generate the > Machine Object (mo) file from the source Portable Object (

[Python-ideas] Use lazy loading with hashtable in python gettext module

2018-12-18 Thread Serge Ballesta via Python-ideas
In a project of mine, I have used the gettext module from Python Standard Library. I have found that several tools could be used to generate the Machine Object (mo) file from the source Portable Object (one): pybabel ( http://babel.pocoo.org/en/latest/ ), msgfmt.py from Python tools or the orig