[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] Official joint communication from the Python Steering Council, PSF Board of Directors, and PSF Conduct WG

2020-07-20 Thread Python Steering Council
Recently, a series of discussions on this mailing list resulted in behavior that did not live up to the standards of the Python Community. The PSF Board of Directors, Python Steering Council, and the PSF Conduct Working Group would like to remind this community that our shared goal is to advance

[Python-Dev] Re: PEP 622 version 2 (Structural Pattern Matching)

2020-07-20 Thread Rob Cliffe via Python-Dev
On 16/07/2020 18:13, MRAB wrote: On 2020-07-16 17:37, Steve Holden wrote: While I understand the point of view that says that match ... : should encapsulate a sequence of indented suites, it seems to me that match/case/case/.../else has a natural affinity with try/except/except/.../finally/e

[Python-Dev] Re: PEP 387: backwards compatibility policy

2020-07-20 Thread Benjamin Peterson
On Mon, Jul 20, 2020, at 13:50, Brett Cannon wrote: > The SC has chosen to accept PEP 387! https://www.python.org/dev/peps/pep-0387/ Thank you, steering council! I am particularly grateful to Brett for pushing this PEP, in its eleventh year of existence, over the finish line. _

[Python-Dev] [RELEASE] Python 3.8.5 released as a security hotfix. 3.9.0b5, the last beta before 3.9.0, also available

2020-07-20 Thread Łukasz Langa
This is a combined release of Python 3.8.5 and 3.9.0b5. Both are significant but for different reasons. Let’s dig in! Security content in 3.8.5 We decided to release 3.8.5 ahead of schedule due to a number of security-related fixes. All details can be found in the change log

[Python-Dev] Re: PEP 387: backwards compatibility policy

2020-07-20 Thread Brett Cannon
The SC has chosen to accept PEP 387! https://www.python.org/dev/peps/pep-0387/ On Fri, Jun 12, 2020 at 2:44 PM Brett Cannon wrote: > Started at a discussion at > https://discuss.python.org/t/pep-387-backwards-compatibilty-policy/4421 > to try to finally resolve this PEP and our backwards compati

[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

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

2020-07-20 Thread Paul Ganssle
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 currently achieved

[Python-Dev] Re: How to customize CPython to a minimal set

2020-07-20 Thread Guido van Rossum
Have you considered starting with micropython? It’s made for embedded systems and fully supports Python 3 syntax. Adding sqlite3 support to it will be less work than stripping all the I/O from CPython. —Guido On Mon, Jul 20, 2020 at 06:48 Huang, Yang wrote: > > Hi, all > > There is a request to

[Python-Dev] How to customize CPython to a minimal set

2020-07-20 Thread Huang, Yang
Hi, all There is a request to run python in a Linux-based embedded resource constrained system with sqlite3 support. So many features are not required, like posixmodule, signalmodule, hashtable ... But seems there are some dependencies among the Modules/Parser/Python/Objects/Programs... Is t

[Python-Dev] Re: In case you're wondering about 3.5.10rc1

2020-07-20 Thread Miro Hrončok
On 04. 07. 20 9:01, Larry Hastings wrote: It's held up on SSL.  Ubuntu 20.04 changed some security parameter tunings, which breaks some uses of the SSL module, and approximately eight modules in the test suite.  I assume this wasn't caught on the buildbots because they don't use Ubuntu--or a

[Python-Dev] Re: PEP 622 constant value syntax idea

2020-07-20 Thread Rob Cliffe via Python-Dev
On 16/07/2020 08:16, Baptiste Carvello wrote: Hello, Le 15/07/2020 à 13:37, Mohammad Foroughi via Python-Dev a écrit : Hi, I had an idea regarding the pattern matching issue of comparing with a previous constant variable instead of assigning to a new local variable. I'm not sure if this has b

[Python-Dev] Re: PEP 622 version 2 (Structural Pattern Matching)

2020-07-20 Thread emmanuel . coirier
Emily Bowman wrote: > SPAM: Final = "spam" > then it'll throw an error. Likewise, the first time it does something > totally unexpected like insert something into what they thought held a > match pattern, it'll break their initial assumptions and hopefully get them > to read the documentation, to

[Python-Dev] Re: PEP 622 version 2 (Structural Pattern Matching)

2020-07-20 Thread emmanuel . coirier
Steven D'Aprano wrote: [...] > In any case, functional languages like Haskell, F# and ML are not the > only languages with pattern matching. Non-FP languages like C#, Swift, > Rust and Scala have it, and even Java has an extension providing pattern > matching: > http://tom.loria.fr/wiki/index.ph