[Python-Dev] Re: datetime module refactoring: folder vs parallel private modules

2020-07-21 Thread Antoine Pitrou
On Mon, 20 Jul 2020 19:49:38 -0700 Guido van Rossum wrote: > I would go with Ivan's second suggestion (_pydatetime.py). The Zen of > Python mentions "flat is better than nested" and a package seems overkill > here (I'm not sure why you chose a package for zoneinfo, but it looks like > it has a lit

[Python-Dev] Re: datetime module refactoring: folder vs parallel private modules

2020-07-20 Thread Guido van Rossum
I would go with Ivan's second suggestion (_pydatetime.py). The Zen of Python mentions "flat is better than nested" and a package seems overkill here (I'm not sure why you chose a package for zoneinfo, but it looks like it has a little more internal structure than a datetime package would have.) On

[Python-Dev] Re: datetime module refactoring: folder vs parallel private modules

2020-07-20 Thread Ivan Pozdeev via Python-Dev
On 20.07.2020 20:58, Paul Ganssle wrote: Hi all, I was hoping to get some feedback on a proposed refactoring of the datetime module that should dramatically improve import performance. The datetime module is implemented more or less in full both in pure Python and in C; the way that this is